Our 1Tb tempdir can sometimes be completely used by mysqld, resulting in disk-full and query errors. This can be due to lots of mid-size queries, or couple of very big queries.
We have a 5Tb raid drive I could use to expand this tempdir.
The manual says the /etc/my.cnf --tmpdir
option can be set to a list of several paths, and that it can spread the load effectively.
If I set --tmpdir=/my1TbTemp/:/my5TbTemp/
I am wondering how mysqld will manage these two tempdirs. If the 1Tb disk is nearly full: will mysqld nicely switch to the 5Tb drive?
I've run some tests on a small virtual machine, but I'm not sure I can fully replicate the behavior of our production machine.