Example CNF
Da wiki.gienne.cloud.
Versione del 19 ott 2018 alle 16:05 di Admin (Discussione | contributi)
# Global parameters # # Complete list of configuration options: # https://mariadb.com/kb/en/mariadb-enterprise/mariadb-maxscale-22-mariadb-maxscale-configuration-usage-scenarios/ [maxscale] threads=1 # Server definitions # # Set the address of the server to the network # address of a MariaDB server. # [vm-glmasgalt001] type=server address=10.88.253.14 port=3306 protocol=mariadbbackend [vm-glmasgalt002] type=server address=10.88.253.19 port=3306 protocol=mariadbbackend [vm-glmasgalt003] type=server address=10.88.253.20 port=3306 protocol=mariadbbackend # Monitor for the servers # # This will keep MaxScale aware of the state of the servers. # MariaDB Monitor documentation: # https://mariadb.com/kb/en/mariadb-enterprise/mariadb-maxscale-22-mariadb-monitor/ [MariaDB-Monitor] type=monitor module=galeramon servers=vm-glmasgalt003,vm-glmasgalt002,vm-glmasgalt001 user=maxuser password=orione monitor_interval=1000 [GaleraService] type=service servers=vm-glmasgalt003,vm-glmasgalt002,vm-glmasgalt001 router=readwritesplit user=maxuser password=orione # This service enables the use of the MaxAdmin interface # MaxScale administration guide: # https://mariadb.com/kb/en/mariadb-enterprise/mariadb-maxscale-22-maxadmin-admin-interface/ [MaxAdmin-Service] type=service router=cli # Listener definitions for the services # # These listeners represent the ports the # services will listen on. # [GaleraListener] type=listener service=GaleraService protocol=mariadbclient port=3360 [GaleraMonitor] type=monitor module=galeramon servers=vm-glmasgalt001 user=maxuser password=orione [MaxAdmin-Listener] type=listener service=MaxAdmin-Service protocol=maxscaled address=localhost port=6603