forked from netstao/connect-pool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pool.ini
43 lines (42 loc) · 1.74 KB
/
pool.ini
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
[redis]
;the min connection num
pool_min = 2
;the max connection num
pool_max = 30
;the log file path
log_file = /tmp/phpcpredis.log
;the num of TCP connections release every idel_time cycles
recycle_num = 2
;In this period of time,if no process use this connection ,the TCP connection will release
idel_time = 2
;max query package len,exceed will throw exception
max_read_len = 1048576
;run as daemonize
daemonize = 1
;If the num of connection to max, whether to use the queue buffer, set to 0 throw an exception
use_wait_queue = 1
;the get_disable_list() function returns the maximum number of IP
max_fail_num = 1
;just the pool_server process port
port = 6254
[mysql]
;the min connection num(最小连接数)
pool_min = 2
;the max connection num(最大连接数)
pool_max = 30
;the log file path(日志文件)
log_file = /tmp/phpcpmysql.log
;the num of TCP connections release every idel_time cycles(连接空闲后的回收力度,值越大回收的越快,但是会造成更多的消耗)
recycle_num = 2
;In this period of time,if no process use this connection ,the TCP connection will release(空闲连接回收的发呆时间 单位秒)
idel_time = 2
;;max query package len,exceed will throw exception(最大转发的数据包,超过跑异常5M)
max_read_len = 5242880
;run as daemonize(是否开启守护进程化)
daemonize = 1
;If the num of connection to max, whether to use the queue buffer, set to 0 throw an exception(连接都被占用后,再获取连接是否使用队列缓冲,设置为0直接抛异常)
use_wait_queue = 1
;the get_disable_list() function returns the maximum number of IP(get_disable_list函数最多返回多少个失效结点,防止网络抖动踢掉所有的机器)
max_fail_num = 1
;just the pool_server process port(端口)
port = 6253