Will enabling slow query logging require RDS instance reboot?

0

Hello everyone,

I have question concerning slow query logging. Right now, in our RDS instance we do have error logging enabled but not slow query logging. I saw, only that this enabled by setting slow_query_log to 1. Is this equivalent to selecting in the modify section, under the log exports the "Slow query log" because in this case, if I am not mistaken, the db instance it is rebooted.

Thank you in advance!

Miltos

4 Risposte
1

Hello.

There is no need to restart RDS if the only setting is to output slow query logs.
a

If you want to output to CloudWatch Logs, you need to check Slow Query from the RDS changes section to reflect the changes.
According to the documentation, there doesn't seem to be any downtime, but we recommend that you try it in a verification environment before making any changes to your production environment.
b

profile picture
ESPERTO
con risposta 4 mesi fa
profile picture
ESPERTO
verificato 4 mesi fa
1

Hi,

slow_query_log is a dynamic parameter. You can change it without rebooting the instance. But you need a DB reboot, if you are currently using default parameter group, you need to create a new parameter group with the slow_query_log parameter set to 1 and assign the parameter group and DB instance reboot is required.

Joseph
con risposta 4 mesi fa
1

Just adding my test results, even modifying the instance with a new custom parameter group with slow_query_log = 1 (dynamic) did not reboot the instance. It is nice! Enter image description here

Joseph
con risposta 4 mesi fa
0

Thank you a lot. You are right It was tested and indeed setting the value to 1 in the existing custom parameter group and enabling the export to cloudwatch from the modify section. Did not require reboot of the RDS instance

con risposta 4 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande