|
@@ -47,7 +47,7 @@ mysql_servers =
|
|
{
|
|
{
|
|
address="mysql1"
|
|
address="mysql1"
|
|
port=3307
|
|
port=3307
|
|
- hostgroup=1
|
|
|
|
|
|
+ hostgroup=0
|
|
max_connections=200
|
|
max_connections=200
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -63,9 +63,27 @@ mysql_users:
|
|
{
|
|
{
|
|
username = "monitoruser"
|
|
username = "monitoruser"
|
|
password = "monitorpass"
|
|
password = "monitorpass"
|
|
- default_hostgroup = 1
|
|
|
|
|
|
+ default_hostgroup = 0
|
|
max_connections=1000
|
|
max_connections=1000
|
|
default_schema="application"
|
|
default_schema="application"
|
|
active = 1
|
|
active = 1
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
+
|
|
|
|
+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
|
|
|
|
+ }
|
|
|
|
+)
|