Page MenuHomePhabricator

Improve external storage MySQL configuration for connection spikes
Closed, ResolvedPublic

Description

To mitigate overload during switchover and in case of memcached failures improving the connections and thread pool.

Event Timeline

Change 284662 had a related patch set uploaded (by Volans):
Add parameter to specify larger threadpools

https://gerrit.wikimedia.org/r/284662

Change 284666 had a related patch set uploaded (by Volans):
MariaDB: separate external storage my.cnf

https://gerrit.wikimedia.org/r/284666

Change 284662 abandoned by Volans:
Add parameter to specify larger threadpools

https://gerrit.wikimedia.org/r/284662

Change 284666 merged by Volans:
MariaDB: separate external storage my.cnf

https://gerrit.wikimedia.org/r/284666

Executed successfully (and verified) on active ES DBs in eqiad:

sudo salt 'es101*' cmd.run 'mysql --defaults-file=/root/.my.cnf -A -BN -e"SET GLOBAL thread_pool_size=40"'
sudo salt 'es101*' cmd.run 'mysql --defaults-file=/root/.my.cnf -A -BN -e"SET GLOBAL thread_pool_max_threads=2000"'
sudo salt 'es101*' cmd.run 'mysql --defaults-file=/root/.my.cnf -A -BN -e"SET GLOBAL max_connections=10000"'

Executed successfully:

sudo salt -E 'es201[1-9]' cmd.run 'mysql --defaults-file=/root/.my.cnf -A -BN -e"SET GLOBAL thread_pool_size=40"'
sudo salt -E 'es201[1-9]' cmd.run 'mysql --defaults-file=/root/.my.cnf -A -BN -e"SET GLOBAL thread_pool_max_threads=2000"'
sudo salt -E 'es201[1-9]' cmd.run 'mysql --defaults-file=/root/.my.cnf -A -BN -e"SET GLOBAL max_connections=10000"'