How to find deadlock process in RDS My SQL and set alarm notification?

0

My customers encounter the problem of SQL process deadlock when using RDS MySQL, I would like to know how to find these processes in RDS MySQL and set up alarm notification when triggered?

質問済み 2年前1731ビュー
1回答
0

Hi, To identify deadlocks on a database, please enable the innodb_print_all_deadlock and innodb_deadlock_detect parameter in the parameter group to log all deadlocks to errorlog. The INFORMATION_SCHEMA INNODB_TRX table can be queried. This gives you precise details about every running transaction in INNODB, including waits. Next, you can get error logs through Cloudwatch log, and filter keywords for alarm notification.

AWS
回答済み 2年前

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

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

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

関連するコンテンツ