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回答
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
エキスパート
回答済み 4ヶ月前
profile picture
エキスパート
レビュー済み 4ヶ月前
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
回答済み 4ヶ月前
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
回答済み 4ヶ月前
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

回答済み 4ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ