0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

メモ:AlibabaCloud DataVを使うときのMySQL設定

Posted at

AlibabaCloud DataVとはこんな感じのダッシュボード機能。

d1.jpg

このグラフひとつひとつにSQLが記載されているのですが、
最短1秒間隔でクエリを投げることが可能。

当然、コネクションをそれなりに使ったり、接続待ちでタイムアウトが起きたりする。

なので、状況に応じて以下の値を変更する必要あり。

parameter value
max connection 1000以上
wait_timeout 288000
connect_timeout 288000

上記値はサンプルだが、たくさんのSQLが走るとSQLクライアントまで切断されてしまうので、
connect_timeoutも変更した方がベター。。

ここら辺をつかって調査

SHOW GLOBAL STATUS
SHOW PROCESSLIST;
show global variables like '%timeout%';
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?