Page MenuHomePhabricator

MySQL tuning on CI slaves (tracking)
Closed, ResolvedPublic

Description

Since we switched the MediaWiki tests from sqlite (on tmpfs) to MySQL, the build time has increased significantly. This task track tasks to boost MySQL performances.

Event Timeline

hashar raised the priority of this task from to Needs Triage.
hashar updated the task description. (Show Details)
hashar subscribed.

In addition to using tmpfs for the mysqld.datadir (T96230), there seems to be quite a lot of information online about using tmpfs for mysqld.tmpdir.

I'm not sure to what extent our use of MySQL involves it reaching out to the tmpdir, but considering that that is disk-bound on Ubuntu by default, we may want to create consider switching the mysql tmpdir to tmpfs as well. Let's try T96230 first, though.

In addition to mysql datadir and mysql tmpdir, another thing that I read a fair bit online is using engine=MEMORY. http://dev.mysql.com/doc/refman/5.5/en/memory-storage-engine.html

I imagine that with datadir on tmpfs, using the MEMORY engine shouldn't matter much though. I'd rather we stick to InnoDB and other engines for predictable behaviour.

I gave engine=MEMORY a quick try on https://gerrit.wikimedia.org/r/#/c/199633/ but eventually gave up because that engine does not support BLOB/TEXT columns so the installer fail initializing such tables (ex: user).

Krinkle triaged this task as Medium priority.Apr 17 2015, 12:17 PM
Krinkle set Security to None.
Krinkle moved this task from Untriaged to Backlog on the Continuous-Integration-Infrastructure board.
Krenair renamed this task from MySQL tunning on CI slaves (tracking) to MySQL tuning on CI slaves (tracking).Apr 21 2015, 4:53 PM
Krenair subscribed.
hashar lowered the priority of this task from Medium to Low.Oct 6 2015, 12:37 PM
Krinkle claimed this task.