バックアップ目的で、MySQL の一方向レプリケーションを使用して複数のサーバーをセットアップしています。これらのスレーブの 1 つに問題があります。正確に 10 分ごとに接続が失われ、問題なく再接続されます。エラー ログの例:
121216 18:05:49 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000002' at position 782733912
121216 18:05:49 [ERROR] Slave I/O: error reconnecting to master 'repl@127.0.0.1:5002' - retry-time: 60 retries: 86400, Error_code: 2013
121216 18:06:49 [Note] Slave: connected to master 'repl@127.0.0.1:5002',replication resumed in log 'mysql-bin.000002' at position 782733912
121216 18:15:49 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
121216 18:15:49 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000002' at position 822218944
121216 18:15:49 [ERROR] Slave I/O: error reconnecting to master 'repl@127.0.0.1:5002' - retry-time: 60 retries: 86400, Error_code: 2013
121216 18:16:49 [Note] Slave: connected to master 'repl@127.0.0.1:5002',replication resumed in log 'mysql-bin.000002' at position 822218944
121216 18:25:49 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
121216 18:25:49 [Note] Slave I/O thread: Failed reading log event, reconnecting to retry, log 'mysql-bin.000002' at position 850106111
121216 18:25:49 [ERROR] Slave I/O: error reconnecting to master 'repl@127.0.0.1:5002' - retry-time: 60 retries: 86400, Error_code: 2013
したがって、すべてが機能しますが、エラー ログにはメッセージがあふれています。
さまざまな MySQL 設定を調べましたが、10 分または 600 秒に設定されているものはありません。
FWIW、レプリケーションは AutoSSH を使用して SSH トンネル経由で機能します。sshd_config を調べましたが、タイムアウト設定も表示されません。
どの設定を調べる必要がありますか?