Closed
Bug 1308970
Opened 8 years ago
Closed 8 years ago
Switch RDS slow query log_output from TABLE to FILE
Categories
(Tree Management :: Treeherder: Infrastructure, defect, P2)
Tree Management
Treeherder: Infrastructure
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: emorley)
References
Details
Attachments
(1 file)
On RDS, `log_output` (http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_log_output) defaults to TABLE:
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.Concepts.MySQL.html
RDS supports FILE (https://aws.amazon.com/blogs/aws/amazon-rds-access-to-database-log-files/), so we should switch to it, to reduce writes to the DB, and to also benefit from the slightly more aggressive rotation, to avoid perf degradation in the case of many slow queries having been logged.
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8799473 -
Flags: review?(klibby)
Updated•8 years ago
|
Attachment #8799473 -
Flags: review?(klibby) → review+
Comment 2•8 years ago
|
||
commited and RDS finally applied it
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 3•8 years ago
|
||
Many thanks :-)
I've run 2x `CALL mysql.rds_rotate_slow_log;` on each of {prototype, stage, prod} to purge the old table-based logs.
You need to log in
before you can comment on or make changes to this bug.
Description
•