-
Notifications
You must be signed in to change notification settings - Fork 1
/
proxysql.cnf
57 lines (52 loc) · 1.42 KB
/
proxysql.cnf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
datadir="/var/lib/proxysql"
admin_variables=
{
admin_credentials="admin:admin"
mysql_ifaces="0.0.0.0:6032"
refresh_interval=2000
}
mysql_variables=
{
threads=4
max_connections=2048
default_query_delay=0
default_query_timeout=36000000
have_compress=true
poll_timeout=2000
interfaces="0.0.0.0:6033;/tmp/proxysql.sock"
default_schema="information_schema"
stacksize=1048576
server_version="5.7"
connect_timeout_server=10000
monitor_history=60000
monitor_connect_interval=200000
monitor_ping_interval=200000
ping_interval_server_msec=10000
ping_timeout_server=200
commands_stats=true
sessions_sort=true
autocommit_false_is_transaction=true
init_connect="SET SESSION TX_ISOLATION='READ-COMMITTED'"
monitor_username="app"
monitor_password="password"
enforce_autocommit_on_reads=true
free_connections_pct=100
}
mysql_servers =
(
{ address="db1" , port=3306 , hostgroup=10, max_connections=3 }
)
mysql_users =
(
{ username = "app" , password = "*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19" , default_hostgroup = 10 , active = 1 }
)
mysql_query_rules =
(
{
rule_id=100
active=1
proxy_port=6033
destination_hostgroup=10
apply=1
}
)