cetus/doc/proxy.conf.example

43 lines
1.0 KiB
Plaintext
Raw Normal View History

2018-03-06 14:00:39 +08:00
[cetus]
# For mode-switch
daemon = true
disable-sharding-mode=true
2018-03-06 14:00:39 +08:00
# Loaded Plugins
plugins=proxy,admin
# Proxy Configuration, For eaxmlpe: MySQL master and salve host ip are both 192.0.0.1
proxy-address=0.0.0.0:6001
proxy-backend-addresses=192.0.0.1:3306
proxy-read-only-backend-addresses=192.0.0.1:3307
2018-03-06 14:00:39 +08:00
# Admin Configuration
admin-address=0.0.0.0:7001
2018-03-06 14:00:39 +08:00
admin-username=admin
admin-password=admin
# Backend Configuration, use test db and username created
default-db=testdb
default-username=cetus_app
default-pool-size=100
max-resp-len=10485760
long-query-time=100
2018-03-06 14:00:39 +08:00
# File and Log Configuration, put log in /data and marked by proxy port, /data/cetus needs to be created manually and has rw authority for cetus os user
max-open-files = 65536
pid-file = cetus6001.pid
plugin-dir=lib/cetus/plugins
log-file=/data/cetus/cetus_6001.log
2018-03-06 14:00:39 +08:00
log-level=debug
# Check salve delay
disable-threads=false
check-slave-delay=true
slave-delay-down=5
slave-delay-recover=1
# For trouble
keepalive=true
verbose-shutdown=true
log-backtrace-on-crash=true