|
|
|
|
@ -40,79 +40,30 @@ mysql_variables=
|
|
|
|
|
sessions_sort=true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# defines all the MySQL servers
|
|
|
|
|
mysql_servers =
|
|
|
|
|
(
|
|
|
|
|
# {
|
|
|
|
|
# address = "127.0.0.1" # no default, required . If port is 0 , address is interpred as a Unix Socket Domain
|
|
|
|
|
# port = 3306 # no default, required . If port is 0 , address is interpred as a Unix Socket Domain
|
|
|
|
|
# hostgroup = 0 # no default, required
|
|
|
|
|
# status = "ONLINE" # default: ONLINE
|
|
|
|
|
# weight = 1 # default: 1
|
|
|
|
|
# compression = 0 # default: 0
|
|
|
|
|
# },
|
|
|
|
|
# {
|
|
|
|
|
# address = "/var/lib/mysql/mysql.sock"
|
|
|
|
|
# port = 0
|
|
|
|
|
# hostgroup = 0
|
|
|
|
|
# },
|
|
|
|
|
{
|
|
|
|
|
address="127.0.0.1"
|
|
|
|
|
port=21891
|
|
|
|
|
port=3306
|
|
|
|
|
hostgroup=0
|
|
|
|
|
max_connections=200
|
|
|
|
|
},
|
|
|
|
|
# { address="127.0.0.2" , port=3306 , hostgroup=0, max_connections=5 },
|
|
|
|
|
{ address="127.0.0.1" , port=21892 , hostgroup=1 },
|
|
|
|
|
{ address="127.0.0.1" , port=21893 , hostgroup=1 }
|
|
|
|
|
# { address="127.0.0.2" , port=3306 , hostgroup=1 },
|
|
|
|
|
# { address="127.0.0.3" , port=3306 , hostgroup=1 },
|
|
|
|
|
# { address="127.0.0.4" , port=3306 , hostgroup=1 },
|
|
|
|
|
# { address="/var/lib/mysql/mysql.sock" , port=0 , hostgroup=1 }
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# defines all the MySQL users
|
|
|
|
|
mysql_users:
|
|
|
|
|
(
|
|
|
|
|
# {
|
|
|
|
|
# username = "username" # no default , required
|
|
|
|
|
# password = "password" # default: ''
|
|
|
|
|
# default_hostgroup = 0 # default: 0
|
|
|
|
|
# active = 1 # default: 1
|
|
|
|
|
# },
|
|
|
|
|
{
|
|
|
|
|
username = "root"
|
|
|
|
|
password = ""
|
|
|
|
|
password = "root"
|
|
|
|
|
default_hostgroup = 0
|
|
|
|
|
max_connections=1000
|
|
|
|
|
default_schema="test"
|
|
|
|
|
# active = 1
|
|
|
|
|
},
|
|
|
|
|
{ username = "vegaicm" , password = "password" , default_hostgroup = 0 , active = 1 },
|
|
|
|
|
{ username = "user1" , password = "password" , default_hostgroup = 0 , active = 0 }
|
|
|
|
|
active = 1
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#defines MySQL Query Rules
|
|
|
|
|
mysql_query_rules:
|
|
|
|
|
(
|
|
|
|
|
{
|
|
|
|
|
rule_id=1
|
|
|
|
|
active=1
|
|
|
|
|
match_pattern="^SELECT .* FOR UPDATE$"
|
|
|
|
|
destination_hostgroup=0
|
|
|
|
|
apply=1
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
rule_id=2
|
|
|
|
|
active=1
|
|
|
|
|
match_pattern="^SELECT"
|
|
|
|
|
destination_hostgroup=1
|
|
|
|
|
apply=1
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|