init
This commit is contained in:
70
target/comet.toml
Normal file
70
target/comet.toml
Normal file
@@ -0,0 +1,70 @@
|
||||
env="debug"
|
||||
|
||||
[log]
|
||||
Level="debug"
|
||||
Mode="console"
|
||||
Path=""
|
||||
Display="json"
|
||||
|
||||
[Trace]
|
||||
ServiceName=""
|
||||
Gen128Bit=true
|
||||
[Trace.Sampler]
|
||||
Type="const"
|
||||
Param=1.0
|
||||
[Trace.Reporter]
|
||||
LogSpans=true
|
||||
LocalAgentHostPort="172.16.101.130:6831"
|
||||
|
||||
[reg]
|
||||
schema = "im"
|
||||
srvName = "comet"
|
||||
regAddrs = "127.0.0.1:2379"
|
||||
|
||||
[logicRPCClient]
|
||||
schema = "im"
|
||||
srvName = "logic"
|
||||
dial = "1s"
|
||||
timeout = "1s"
|
||||
|
||||
[RPCServer]
|
||||
Network = "tcp"
|
||||
Addr = ":3109"
|
||||
Timeout = "1s"
|
||||
KeepAliveMaxConnectionIdle = "60s"
|
||||
KeepAliveMaxConnectionAge = "2h"
|
||||
KeepAliveMaxMaxConnectionAgeGrace = "20s"
|
||||
KeepAliveTime = "60s"
|
||||
KeepAliveTimeout = "20s"
|
||||
|
||||
[tcp]
|
||||
bind = [":3101"]
|
||||
sndbuf = 4096
|
||||
rcvbuf = 4096
|
||||
keepalive = false
|
||||
reader = 32
|
||||
readBuf = 1024
|
||||
readBufSize = 8192
|
||||
writer = 32
|
||||
writeBuf = 1024
|
||||
writeBufSize = 8192
|
||||
|
||||
[websocket]
|
||||
bind = [":3102"]
|
||||
tlsOpen = false
|
||||
tlsBind = [":3103"]
|
||||
certFile = "../../cert.pem"
|
||||
privateFile = "../../private.pem"
|
||||
|
||||
[protocol]
|
||||
timer = 32
|
||||
timerSize = 2048
|
||||
svrProto = 10
|
||||
cliProto = 5
|
||||
handshakeTimeout = "8s"
|
||||
minHeartbeat = "5s"
|
||||
maxHeartbeat = "10s"
|
||||
|
||||
[bucket]
|
||||
size = 32
|
||||
channel = 1024
|
||||
69
target/logic.toml
Normal file
69
target/logic.toml
Normal file
@@ -0,0 +1,69 @@
|
||||
env="debug"
|
||||
|
||||
[log]
|
||||
Level="debug"
|
||||
Mode="console"
|
||||
Path=""
|
||||
Display="json"
|
||||
|
||||
[Trace]
|
||||
ServiceName=""
|
||||
Gen128Bit=true
|
||||
[Trace.Sampler]
|
||||
Type="const"
|
||||
Param=1.0
|
||||
[Trace.Reporter]
|
||||
LogSpans=true
|
||||
LocalAgentHostPort="172.16.101.130:6831"
|
||||
|
||||
[reg]
|
||||
schema = "im"
|
||||
srvName = "logic"
|
||||
regAddrs = "127.0.0.1:2379"
|
||||
|
||||
[node]
|
||||
heartbeat = "4m"
|
||||
heartbeatMax = 2
|
||||
|
||||
[backoff]
|
||||
maxDelay = 300
|
||||
baseDelay = 3
|
||||
factor = 1.8
|
||||
jitter = 0.3
|
||||
|
||||
[RPCServer]
|
||||
Network = "tcp"
|
||||
Addr = ":3119"
|
||||
Timeout = "1s"
|
||||
KeepAliveMaxConnectionIdle = "60s"
|
||||
KeepAliveMaxConnectionAge = "2h"
|
||||
KeepAliveMaxMaxConnectionAgeGrace = "20s"
|
||||
KeepAliveTime = "60s"
|
||||
KeepAliveTimeout = "20s"
|
||||
|
||||
|
||||
[CometRPCClient]
|
||||
schema = "im"
|
||||
srvName = "comet"
|
||||
dial = "1s"
|
||||
timeout = "1s"
|
||||
|
||||
[kafka]
|
||||
topic = "goim-push-topic"
|
||||
brokers = ["127.0.0.1:9092"]
|
||||
|
||||
[redis]
|
||||
network = "tcp"
|
||||
addr = "127.0.0.1:6379"
|
||||
active = 60000
|
||||
idle = 1024
|
||||
dialTimeout = "200ms"
|
||||
readTimeout = "500ms"
|
||||
writeTimeout = "500ms"
|
||||
idleTimeout = "120s"
|
||||
expire = "30m"
|
||||
|
||||
[[apps]]
|
||||
appId = "dtalk"
|
||||
authUrl = "http://127.0.0.1:18002/user/login"
|
||||
timeout = "1s"
|
||||
Reference in New Issue
Block a user