forked from wayslog/aster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.toml
72 lines (61 loc) · 1.52 KB
/
default.toml
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
[[clusters]]
name = "test-dns-resolver"
listen_addr = "0.0.0.0:6379"
cache_type = "redis"
servers=[
"localhost:6379",
]
[[clusters]]
name = "test-mc-standalone"
listen_addr = "0.0.0.0:7789"
hash_tag = "{}"
thread = 1
cache_type = "memcache"
servers = [
"127.0.0.1:11211:10 mc-1",
]
fetch_interval = 3600000
read_from_slave = false
ping_fail_limit = 6 # 3 times
ping_succ_interval = 1000 # 1 second
ping_interval = 5000 # 5 seconds
read_timeout = 1000
write_timeout = 1000
dial_timeout = 500
listen_proto = "tcp"
node_connections = 1
[[clusters]]
name = "test-redis-standalone"
listen_addr = "0.0.0.0:7787"
hash_tag = "{}"
cache_type = "redis"
servers = [
"127.0.0.1:6379:10 redis-1",
]
thread = 1
fetch_interval = 3600000
read_from_slave = false
ping_fail_limit = 10
ping_interval = 30000
read_timeout = 1000
write_timeout = 1000
dial_timeout = 500
listen_proto = "tcp"
node_connections = 1
[[clusters]]
name = "test-cluster"
listen_addr = "0.0.0.0:7788"
hash_tag = "{}"
thread = 1
cache_type = "redis_cluster"
servers = ["127.0.0.1:3300"]
fetch_interval = 1800000 # 1800s , 30 minutes
fetch_since_latest_cmd = 1000 # 3600s , 1 hour
read_from_slave = false
ping_fail_limit = 10
ping_interval = 300
read_timeout = 1000
write_timeout = 1000
dial_timeout = 500
listen_proto = "tcp"
node_connections = 1