-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
44 lines (44 loc) · 1.02 KB
/
config.yml
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
app: PLACEHOLDER # should be overrided
ginMode: "debug"
httpPort: 80
grpcPort: 8000
promPort: 8080
jaegerUrl: ""
dbConfig:
dsn: root:password@tcp(127.0.0.1:3306)/PLACEHOLDER?charset=utf8mb4&parseTime=True&loc=Local
maxIdleConns: 3
maxOpenConns: 10
localCacheConfig:
expirationSeconds: 600
redisConfig:
addrs: "127.0.0.1:7000"
password: "pass.123"
db: 0
poolSize: 10
maxRetries: 3
expirationSeconds: 900
useCuckoo: true
cuckoo:
capacity: 600000
bucketSize: 2
maxIterations: 20
bloom:
# 0.01% error rate requires 14 hash functions and 20.16 bits per item
errorRate: 0.0001
capacity: 600000
publisher:
purchaseResultTopicMaxlen: 5000
natsConfig:
clusterID: "test-cluster"
url: "nats://127.0.0.1:4222"
clientID: "" # will be randomly generated if not specified
subscriber:
queueGroup: PLACEHOLDER # should be overrided
durableName: PLACEHOLDER # should be overrided
count: 3
rpcEndpoints:
authSvcHost: ""
productSvcHost: ""
serviceOptions:
rps: 1000
timeoutSecond: 10