docker run -it --name mysql_router -e MYSQL_HOST=192.168.0.179 -v ~/mysqlrouter.conf:/tmp/mysqlrouter.conf -p 6446-6447:6446-6447 -d cnbbx/mysql-router mysqlrouter
[DEFAULT]
connect_timeout = 30
read_timeout = 30
[logger]
level = INFO
[routing:read_write]
bind_address = 0.0.0.0:6446
mode = read-write
destinations = 192.168.0.178:3306
max_connections = 1000
max_connect_errors = 100
client_connect_timeout = 9
[routing:read_only]
bind_address = 0.0.0.0:6447
mode = read-only
destinations = 192.168.0.178:3306
max_connections = 1000
max_connect_errors = 100
client_connect_timeout = 9
[keepalive]
interval = 60
Content type
Image
Digest
Size
90.8 MB
Last updated
over 7 years ago
docker pull cnbbx/mysql-router