Closed
Bug 766524
Opened 12 years ago
Closed 12 years ago
runs_logs table getting huge on production
Categories
(Tree Management Graveyard :: TBPL, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: scabral, Unassigned)
References
Details
Is there a data expiration strategy for runs_logs? https://bugzilla.mozilla.org/show_bug.cgi?id=703967 refers to the builders table, but on production, the runs_logs table is 100G right now.
Comment 1•12 years ago
|
||
Bug 703967 is about both the runs table and the builders table.
runs_logs uses |REFERENCES runs(buildbot_id) ON DELETE CASCADE| so should be resolved by that I presume?
(http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/file/tip/schema.sql)
Depends on: 703967
Reporter | ||
Comment 2•12 years ago
|
||
Hrm, the problem is that DROP PARTITION isn't a delete, so there would be orphaned rows.
It probably makes more sense to not bother with partitioning on the runs table....but to put an index on (endtime) and then the delete won't be so slow. We will need to defragment the tables to reclaim space.
Reporter | ||
Comment 3•12 years ago
|
||
Can we do this soon, please? the runs_logs table is 102G.
Is this something we can do - put the index on, so the delete isn't so slow? and can we schedule a time when we can defragment the table, to free up space? Maybe July 4?
Comment 4•12 years ago
|
||
(In reply to Sheeri Cabral [:sheeri] from comment #3)
> Can we do this soon, please?
We're happy for this to happen as soon as possible, however it's not anything we can do ourselves - we were waiting on bug 703967.
Reporter | ||
Comment 5•12 years ago
|
||
moving to that bug.
Comment 6•12 years ago
|
||
Fixed by bug 703967
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•10 years ago
|
Product: Webtools → Tree Management
Assignee | ||
Updated•10 years ago
|
Product: Tree Management → Tree Management Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•