Problem
MySQL Router is bootstrapped with default settings. No max_connections limit means all MySQL server connections can be consumed by a single misbehaving client, starving cluster operations (health checks, replication, admin).
File: services/mysql-mgmt/docker_compose.yml
Fix
After mysqlrouter --bootstrap completes, inject connection limits into the generated mysqlrouter.conf:
sed -i 's/\[routing:bootstrap_rw\]/[routing:bootstrap_rw]\nmax_connections=40/' \
/opt/default/mysql_router/mysqlrouter.conf
This reserves connections for cluster operations (replication, health checks, admin).
Acceptance Criteria
Problem
MySQL Router is bootstrapped with default settings. No
max_connectionslimit means all MySQL server connections can be consumed by a single misbehaving client, starving cluster operations (health checks, replication, admin).File:
services/mysql-mgmt/docker_compose.ymlFix
After
mysqlrouter --bootstrapcompletes, inject connection limits into the generatedmysqlrouter.conf:sed -i 's/\[routing:bootstrap_rw\]/[routing:bootstrap_rw]\nmax_connections=40/' \ /opt/default/mysql_router/mysqlrouter.confThis reserves connections for cluster operations (replication, health checks, admin).
Acceptance Criteria
max_connections=40intorouting:bootstrap_rwsection ofmysqlrouter.conf