Closed
Bug 766438
Opened 13 years ago
Closed 13 years ago
Audit log rotation/purge on MySQL instances
Categories
(Data & BI Services Team :: DB: MySQL, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mpressman, Assigned: mpressman)
Details
Now that we are utilizing more master/master setups and especially with hosts that
| Assignee | ||
Updated•13 years ago
|
Assignee: server-ops-database → mpressman
Comment 1•13 years ago
|
||
I agree, but the best way to do this IMO is to use expire_logs_days, which on some machines is set to 60. I prefer to set it to 10, and just went through ALL the puppet config files and set it to 10 where it was 60.
That won't change running instances, but that's just logging into machines and doing a SHOW GLOBAL STATUS LIKE 'expire%';
| Assignee | ||
Comment 2•13 years ago
|
||
I'm with you on expire, but what about issues like webdev where users load and reload entire databases? I've got a script that runs in the background and manages the logs. It looks at slaves to determine which logs are no longer needed. I just figured we've seen quite a bit of disk warnings due to log buildup. I'm sure this is in relation to the volume of hosts being setup and us not knowing exactly how there being used. This would effectively remove the log rotation provided via mysql or system utilities.
Or if you think this is overkill and we can just treat those instances as one-offs I'm good with that too.
| Assignee | ||
Comment 3•13 years ago
|
||
Closing this out as it seems that the hosts that have alerted are behaving themselves. The only other host I see with issues is puppetdashboard1, however I found that the expire_logs_days was inadvertently set to 10 when I'm sure it was intended to be 1.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: mozilla.org → Data & BI Services Team
You need to log in
before you can comment on or make changes to this bug.
Description
•