-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproxysql.cnf.example
77 lines (66 loc) · 1.42 KB
/
proxysql.cnf.example
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
datadir="/var/lib/proxysql"
errorlog="/var/lib/proxysql/proxysql.log"
admin_variables=
{
admin_credentials="radmin:tztz"
stats_credentials="ststs:ztztz"
mysql_ifaces="0.0.0.0:6032"
admin-web_enabled=true
web_enabled=true
}
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:3306" #6033"
default_schema="information_schema"
stacksize=1048576
server_version="5.5.30"
connect_timeout_server=3000
monitor_username="monitor"
monitor_password="23456fv"
monitor_history=600000
monitor_connect_interval=60000
monitor_ping_interval=10000
monitor_read_only_interval=1500
monitor_read_only_timeout=500
ping_interval_server_msec=120000
ping_timeout_server=500
commands_stats=true
sessions_sort=true
connect_retries_on_failure=10
}
mysql_servers =
(
{
address="8.4.3.2"
port=3306
hostgroup=0
max_connections=400
}
)
mysql_users:
(
{
username = "xx1" # no default , required
password = "xyz!n" # default: ''
default_hostgroup = 0 # default: 0
active = 1 # default: 1
}
)
mysql_query_rules =
(
{
# SELECT xxx LIMIT ?,?
rule_id=150
active=1
digest="0x546f69afd7019043"
destination_hostgroup=0
apply=1
cache_ttl=20000
}
)