Closed Bug 924490 Opened 11 years ago Closed 11 years ago

Upgrade buildbot in scl3 to MySQL 5.6

Categories

(Data & BI Services Team :: DB: MySQL, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: scabral, Assigned: scabral)

References

Details

Upgrade to MySQL 5.6
buildbot2 is out of the load balancer. First step is defragging:

mysql> \! ls -lrth /var/lib/mysql/buildbot/steps.MY* /var/lib/mysql/buildbot/builds.MY*
-rw-rw---- 1 mysql mysql  29G Oct 17 08:01 /var/lib/mysql/buildbot/steps.MYI
-rw-rw---- 1 mysql mysql  49G Oct 17 08:01 /var/lib/mysql/buildbot/steps.MYD
-rw-rw---- 1 mysql mysql 2.6G Oct 17 08:01 /var/lib/mysql/buildbot/builds.MYI
-rw-rw---- 1 mysql mysql 1.5G Oct 17 08:01 /var/lib/mysql/buildbot/builds.MYD
mysql> optimize table buildbot.builds; optimize table buildbot.steps;
the builds defrag is complete, only took 4 minutes:

[root@buildbot2.db.scl3 buildbot]# ls -rlth builds.*
-rw-rw---- 1 mysql mysql 8.8K Mar 20  2012 builds.frm
-rw-rw---- 1 mysql mysql 770M Oct 17 08:05 builds.MYD
-rw-rw---- 1 mysql mysql 1.4G Oct 17 08:05 builds.MYI 

We reclaimed about 2.6G of space there.
[root@buildbot2.db.scl3 buildbot]# ls -lrth steps.*
-rw-rw---- 1 mysql mysql 8.7K Mar 20  2012 steps.frm
-rw-rw---- 1 mysql mysql  11G Oct 17 09:58 steps.MYI
-rw-rw---- 1 mysql mysql  25G Oct 17 09:58 steps.MYD

We reclaimed 36G of space. Nice!
buildbot2 has been upgraded and put back into the load balancer.
The bad news is that we had to fail over buildbot today due to a tree closure (see bug 928521).

The good news is we can do maintenance on this machine now!
Committed revision 76771 to be puppetized with MySQL 5.6.
buildbot1 has been upgraded and is back in the load balancer as read-only.
Assignee: server-ops-database → scabral
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: mozilla.org → Data & BI Services Team
You need to log in before you can comment on or make changes to this bug.