Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [maxscale]
- threads=1
- [MaxInfo]
- type=service
- router=maxinfo
- user=monitor
- passwd=EBD2F49C3B375812A8CDEBA632ED8BBC
- [MaxInfo JSON Listener]
- type=listener
- service=MaxInfo
- protocol=HTTPD
- port=4002
- [Replication]
- type=service
- router=binlogrouter
- version_string=5.6.17-log
- user=skysql
- passwd=skyvodka
- router_options=mariadb10-compatibility=1,server-id=999,user=skysql,password=skyvodka,binlogdir=/var/cache/maxscale/
- #router_options=send_slave_heartbeat=on,transaction_safety=on,semisync=1,mariadb10-compatibility=1,server-id=999,user=skysql,password=skyvodka,binlogdir=/var/lib/maxscale/
- [Replication Listener]
- type=listener
- service=Replication
- protocol=MySQLClient
- port=3306
- [MySQL Monitor]
- type=monitor
- module=mysqlmon
- servers=server1,server2
- user=skysql
- passwd=skyvodka
- monitor_interval=2000
- detect_stale_master=true
- # Service definitions
- #
- # Service Definition for a read-only service and
- # a read/write splitting service.
- #
- # ReadConnRoute documentation:
- # https://github.com/mariadb-corporation/MaxScale/blob/master/Documentation/Routers/ReadConnRoute.md
- [Read-Only Service]
- type=service
- router=readconnroute
- servers=server1
- user=skysql
- passwd=skyvodka
- router_options=slave
- # ReadWriteSplit documentation:
- # https://github.com/mariadb-corporation/MaxScale/blob/master/Documentation/Routers/ReadWriteSplit.md
- [Read-Write Service]
- type=service
- router=readwritesplit
- servers=server1
- user=skysql
- passwd=skyvodka
- max_slave_connections=100%
- # This service enables the use of the MaxAdmin interface
- # MaxScale administration guide:
- # https://github.com/mariadb-corporation/MaxScale/blob/master/Documentation/Reference/MaxAdmin.md
- [MaxAdmin Service]
- type=service
- router=cli
- # Listener definitions for the services
- #
- # These listeners represent the ports the
- # services will listen on.
- #
- [Write Connection Router]
- type=service
- router=readconnroute
- router_options=master
- servers=server1,server2
- user=skysql
- passwd=skyvodka
- enable_root_user=true
- [Read-Only Listener]
- type=listener
- service=Read-Only Service
- protocol=MySQLClient
- port=4008
- [Write-Only Listener]
- type=listener
- service=Write Connection Router
- protocol=MySQLClient
- port=4007
- [Read-Write Listener]
- type=listener
- service=Read-Write Service
- protocol=MySQLClient
- port=4006
- #[MaxAdmin Listener]
- #type=listener
- #service=MaxAdmin Service
- #protocol=maxscaled
- #socket=default
- # Internet Socket
- [CLI Inet Listener]
- type=listener
- service=MaxAdmin Service
- protocol=maxscaled
- address=0.0.0.0
- port= 3307
- [server2]
- type=server
- address=192.168.0.41
- port=5056
- protocol=MySQLBackend
- [server1]
- type=server
- address=192.168.0.41
- port=5055
- protocol=MySQLBackend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement