Skip to content

Instantly share code, notes, and snippets.

@Geesu
Created February 27, 2017 20:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Geesu/e05e0f50c0464b558cc435d8140de5ea to your computer and use it in GitHub Desktop.
# MaxScale documentation on GitHub:
# https://github.com/mariadb-corporation/MaxScale/blob/master/Documentation/Documentation-Contents.md
# Global parameters
#
# Complete list of configuration options:
# https://github.com/mariadb-corporation/MaxScale/blob/master/Documentation/Getting-Started/Configuration-Guide.md
[maxscale]
threads=auto
syslog=0
maxlog=1
log_warning=1
log_notice=1
log_info=1
log_debug=1
# Server definitions
#
# Set the address of the server to the network
# address of a MySQL server.
#
[server1]
type=server
address=172.30.0.192
port=3306
protocol=MySQLBackend
# Monitor for the servers
#
# This will keep MaxScale aware of the state of the servers.
# MySQL Monitor documentation:
# https://github.com/mariadb-corporation/MaxScale/blob/master/Documentation/Monitors/MySQL-Monitor.md
[MySQL Monitor]
type=monitor
module=mysqlmon
servers=server1
user=maxscale
passwd=6uaq7JAUV8cA
monitor_interval=10000
# 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
[MaxAdmin Listener]
type=listener
service=MaxAdmin Service
protocol=maxscaled
socket=default
# The Replication Proxy service
[replication-service]
type=service
router=binlogrouter
user=maxscale
passwd=6uaq7JAUV8cA
router_options=server-id=1000,binlogdir=/var/lib/maxscale/binlogs,mariadb10-compatibility=1,transaction_safety=1,version_string=10.1.20-log
# The Avro conversion service
[avro-service]
type=service
router=avrorouter
source=replication-service
router_options=avrodir=/var/lib/maxscale/avro,filestem=mysqld-bin,start_index=1211
user=cdc_user
password=7vbr8KBVW9dB
# The listener for the replication-service
[replication-listener]
type=listener
service=replication-service
protocol=MySQLClient
port=3306
#The client listener for the avro-service
[avro-listener]
type=listener
service=avro-service
protocol=CDC
port=4001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment