forked from bluefoxah/telegramd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbiz_server.toml
69 lines (56 loc) · 1.36 KB
/
biz_server.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
# biz_server.toml
ver = "0.0.1"
#logPath = "/tmp/biz_server.log"
serverId = 1
relayIp = "127.0.0.1"
[rpcServer]
addr = "0.0.0.0:10001"
[rpcServer.rpcDiscovery]
serviceName = "biz"
nodeID = "node1"
rPCAddr = "127.0.0.1:10001"
etcdAddrs = ["http://127.0.0.1:2379"]
interval = "2s"
tTL = "10s"
#[rpcClient]
#serviceName = "sync"
#addr = "localhost:10002"
[nbfsRpcClient]
serviceName = "document"
etcdAddrs = ["http://127.0.0.1:2379"]
balancer = "round_robin"
[syncRpcClient1]
serviceName = "sync"
etcdAddrs = ["http://127.0.0.1:2379"]
balancer = "round_robin"
[syncRpcClient2]
serviceName = "sync2"
etcdAddrs = ["http://127.0.0.1:2379"]
balancer = "round_robin"
[authSessionRpcClient]
serviceName = "auth_session"
etcdAddrs = ["http://127.0.0.1:2379"]
balancer = "round_robin"
[[redis]]
name = "cache"
addr = "127.0.0.1:6379"
idle = 100
active = 100
dialTimeout = "1s"
readTimeout = "1s"
writeTimeout = "1s"
idleTimeout = "10s"
dbNum = "0"
password = ""
[[mysql]]
name = "immaster"
dsn = "root:@/nebulaim?charset=utf8mb4"
#root:1@tcp(127.0.0.1:3306)/nebulaim?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
active = 5
idle = 2
[[mysql]]
name = "imslave"
dsn = "root:@/nebulaim?charset=utf8mb4"
# root:1@tcp(127.0.0.1:3306)/nebulaim?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
active = 5
idle = 2