MySQL TMPDIR on tmpfs doens't work with ALTER TABLE on large tables

Bug #1616987 reported by Matthew Treinish
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Confirmed
Medium
Unassigned

Bug Description

Trove deploys mysql's tmpdir onto /tmp with a tmpfs however this causes issues with MySQL when you do an ALTER TABLE on a large table if you don't have enough ram the operation will fail. There is no way to workaround this because the end user doesn't know the fs layout of the instance. (I'm also not sure the trove api exposes this config option) My only way to workaround this issue has been to rewrite the sql to avoid using an alter table on these tables.

We should add an option to deploy the tmpdir on real disk so that people can run operations that require more space than you have free ram on the instance.

Revision history for this message
Amrith Kumar (amrith) wrote :

This is another manifestation of the fact that only one cinder volume is attached to an instance.

Changed in trove:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Matthew Treinish (treinish) wrote :

FWIW, you can still make this work with a single volume, you just need a subdir on the 1 volume to dedicate to tmp for mysql.

Revision history for this message
Amrith Kumar (amrith) wrote :

I've tried the change that Matt just suggested by faking the template. Turns out that the directory must exist for this to work. This will therefore need some changes to the guest; and since it must get configuration from the host, the ripple is non-trivial.

Working on a fix, it isn't just a change to the template.

Changed in trove:
assignee: nobody → Amrith (amrith)
Amrith Kumar (amrith)
Changed in trove:
assignee: Amrith Kumar (amrith) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.