Page MenuHomePhabricator

Tune MySQL innodb settings on CI slaves
Closed, DeclinedPublic

Description

To speed up MySQL we will switch its datadir to tmpfs (T96230).

We run MySQL/innodb with the stock settings which are not ideal and are running 5.5.41-0ubuntu0.14.04.1.

The MySQL documentation has a whole chapter about Optimizing InnoDB Disk I/O and found some more at http://www.tocker.ca/2013/11/04/reducing-mysql-durability-for-testing.html

Other things that come to mind:

  • disable the binary log
  • get rid of some fsync()

@ori mentionned libeatmydata , not sure it is worth the added layer.

Event Timeline

hashar raised the priority of this task from to Needs Triage.
hashar updated the task description. (Show Details)
hashar added subscribers: hashar, Aklapper, ori.
Krinkle triaged this task as Medium priority.Apr 21 2015, 3:22 PM
Krinkle set Security to None.
Krinkle moved this task from Untriaged to Backlog on the Continuous-Integration-Infrastructure board.
Krinkle removed a project: Tracking-Neverending.

On CI slaves, MySQL now has its data on a tmps directory

Krinkle claimed this task.
Krinkle subscribed.

MySQL performance doesn't seem to be an issue at the moment. tmpfs cut it down by an order of magnitude. For simplicity sake, probably best not to deviate too much from defaults settings.