mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-12-02 03:47:41 +08:00
43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
[cetus]
|
|
# For mode-switch
|
|
daemon = true
|
|
disable-sharding-mode=true
|
|
|
|
# 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
|
|
|
|
# Admin Configuration
|
|
admin-address=0.0.0.0:7001
|
|
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-size=10485760
|
|
long-query-time=100
|
|
|
|
# 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
|
|
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
|