forked from CodisLabs/codis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ini
40 lines (28 loc) · 1.73 KB
/
config.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
##### Properties below are for dashboard and proxies
# zookeeper or etcd
coordinator=zookeeper
# Use comma "," for multiple instances. If you use etcd, you should also use this property.
zk=192.168.0.123:2181
product=test
# This addr is used for codis's proxies and commands, which should be host:port, host can not be 0.0.0.0 or omited.
# The address/port which is listened by dashborad service whose host can be omited depends on the "--addr" in its start command arguments.
dashboard_addr=192.168.0.123:18087
password=
##### Properties below are only for proxies
# Proxy will ping-pong backend redis periodly to keep-alive
backend_ping_period=5
# If there is no request from client for a long time, the connection will be droped. Set 0 to disable.
session_max_timeout=1800
# Buffer size for each client connection.
session_max_bufsize=131072
# Number of buffered requests for each client connection.
# Make sure this is higher than the max number of requests for each pipeline request, or your client may be blocked.
session_max_pipeline=1024
# If proxy don't send a heartbeat in timeout millisecond which is usually because proxy has high load or even no response, zk will mark this proxy offline.
# A higher timeout will recude the possibility of "session expired" but clients will not know the proxy has no response in time if the proxy is down indeed.
# So we highly recommend you not to change this default timeout and use Jodis(https://github.com/CodisLabs/jodis)
# which watches the available proxies and will skip the offline proxy or add new online proxy automatically.
# If you are not using Java in client, you can DIY a zk watcher accourding to Jodis source code.
zk_session_timeout=30000
##### must be different for each proxy
proxy_id=proxy_1