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)

defect

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.
Attachment #8799473 - Flags: review?(klibby) → review+
commited and RDS finally applied it
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: