Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save freddielunchbird/09f292c2f356a7f8ebb1089440519faf to your computer and use it in GitHub Desktop.
Save freddielunchbird/09f292c2f356a7f8ebb1089440519faf to your computer and use it in GitHub Desktop.
mysql query rules
{
"result": [{
"errorMessage": "",
"proxysql": {
"hostname": "10.10.10.13",
"port": 6032
},
"query_rules": [{
"active": "1",
"apply": "1",
"cache_ttl": "NULL",
"client_addr": "NULL",
"delay": "NULL",
"destination_hostgroup": "10",
"digest": "NULL",
"error_msg": "NULL",
"flagIN": "0",
"flagOUT": "NULL",
"log": "NULL",
"match_digest": "NULL",
"match_pattern": "^SELECT .* FOR UPDATE",
"mirror_flagOUT": "NULL",
"mirror_hostgroup": "NULL",
"negate_match_pattern": "0",
"proxy_addr": "NULL",
"proxy_port": "NULL",
"reconnect": "NULL",
"replace_pattern": "NULL",
"retries": "NULL",
"rule_id": "100",
"schemaname": "NULL",
"timeout": "NULL",
"username": "NULL"
}, {
"active": "1",
"apply": "1",
"cache_ttl": "NULL",
"client_addr": "NULL",
"delay": "NULL",
"destination_hostgroup": "20",
"digest": "NULL",
"error_msg": "NULL",
"flagIN": "0",
"flagOUT": "NULL",
"log": "NULL",
"match_digest": "NULL",
"match_pattern": "^SELECT .*",
"mirror_flagOUT": "NULL",
"mirror_hostgroup": "NULL",
"negate_match_pattern": "0",
"proxy_addr": "NULL",
"proxy_port": "NULL",
"reconnect": "NULL",
"replace_pattern": "NULL",
"retries": "NULL",
"rule_id": "200",
"schemaname": "NULL",
"timeout": "NULL",
"username": "NULL"
}, {
"active": "1",
"apply": "1",
"cache_ttl": "NULL",
"client_addr": "NULL",
"delay": "NULL",
"destination_hostgroup": "10",
"digest": "NULL",
"error_msg": "NULL",
"flagIN": "0",
"flagOUT": "NULL",
"log": "NULL",
"match_digest": "NULL",
"match_pattern": ".*",
"mirror_flagOUT": "NULL",
"mirror_hostgroup": "NULL",
"negate_match_pattern": "0",
"proxy_addr": "NULL",
"proxy_port": "NULL",
"reconnect": "NULL",
"replace_pattern": "NULL",
"retries": "NULL",
"rule_id": "300",
"schemaname": "NULL",
"timeout": "NULL",
"username": "NULL"
}]
}, {
"errorMessage": "",
"proxysql": {
"hostname": "10.10.10.14",
"port": 6032
},
"query_rules": [{
"active": "1",
"apply": "1",
"cache_ttl": "NULL",
"client_addr": "NULL",
"delay": "NULL",
"destination_hostgroup": "10",
"digest": "NULL",
"error_msg": "NULL",
"flagIN": "0",
"flagOUT": "NULL",
"log": "NULL",
"match_digest": "NULL",
"match_pattern": "^SELECT .* FOR UPDATE",
"mirror_flagOUT": "NULL",
"mirror_hostgroup": "NULL",
"negate_match_pattern": "0",
"proxy_addr": "NULL",
"proxy_port": "NULL",
"reconnect": "NULL",
"replace_pattern": "NULL",
"retries": "NULL",
"rule_id": "100",
"schemaname": "NULL",
"timeout": "NULL",
"username": "NULL"
}, {
"active": "1",
"apply": "1",
"cache_ttl": "NULL",
"client_addr": "NULL",
"delay": "NULL",
"destination_hostgroup": "20",
"digest": "NULL",
"error_msg": "NULL",
"flagIN": "0",
"flagOUT": "NULL",
"log": "NULL",
"match_digest": "NULL",
"match_pattern": "^SELECT .*",
"mirror_flagOUT": "NULL",
"mirror_hostgroup": "NULL",
"negate_match_pattern": "0",
"proxy_addr": "NULL",
"proxy_port": "NULL",
"reconnect": "NULL",
"replace_pattern": "NULL",
"retries": "NULL",
"rule_id": "200",
"schemaname": "NULL",
"timeout": "NULL",
"username": "NULL"
}, {
"active": "1",
"apply": "1",
"cache_ttl": "NULL",
"client_addr": "NULL",
"delay": "NULL",
"destination_hostgroup": "10",
"digest": "NULL",
"error_msg": "NULL",
"flagIN": "0",
"flagOUT": "NULL",
"log": "NULL",
"match_digest": "NULL",
"match_pattern": ".*",
"mirror_flagOUT": "NULL",
"mirror_hostgroup": "NULL",
"negate_match_pattern": "0",
"proxy_addr": "NULL",
"proxy_port": "NULL",
"reconnect": "NULL",
"replace_pattern": "NULL",
"retries": "NULL",
"rule_id": "300",
"schemaname": "NULL",
"timeout": "NULL",
"username": "NULL"
}]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment