Closed
Bug 1311873
Opened 9 years ago
Closed 7 years ago
buildbot DB maintenance should use transactions
Categories
(Release Engineering :: General, defect, P5)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: nthomas, Unassigned)
Details
It chunks up deletion of 10000 builds at a time, but doesn't commit the changes after each chunk, so the DB keeps track of state from the very start of the job to the end.
There's a verbose log at
bm81:/builds/buildbot/db_maint/test-for-transactions.log
The code is at
http://hg.mozilla.org/build/tools/file/default/buildfarm/maintenance/cleanup_db.py
Comment 1•9 years ago
|
||
Do we gain anything by doing this?
| Reporter | ||
Comment 2•9 years ago
|
||
There's no known bustage from this, it's the result of reading
https://dev.mysql.com/doc/refman/5.6/en/converting-tables-to-innodb.html#innodb-convert-transactions
and realizing we run a 2.5 hour cleanup job every week. I can't find anything of concern in newrelic for the two buildbot db hosts (eg no memory or load spikes).
Updated•9 years ago
|
Priority: -- → P5
| Assignee | ||
Updated•9 years ago
|
Component: Tools → General
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•