-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
80 lines (72 loc) · 1.32 KB
/
config.yaml
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
73
74
75
76
77
78
79
80
# IrishMan config
# 2020.03.18
# server config
server:
bind: 0.0.0.0:8080
readtimeout: 15
writetimeout: 15
# Published&Subscribe server config
pubsub:
bind: 0.0.0.0:9000
readtimeout: 15
writetimeout: 15
# metrics config
metrics:
bind: 0.0.0.0:8000
interval: 1000
readtimeout: 15
writetimeout: 15
# etcd config
etcd:
host: 115.29.201.122:2389
format: json
timeout: 2
# resource named
resource:
upstreamlist: UpstreamList
uplist: UpList
downlist: DownList
# kv bolt DB
nutsdb:
path: ./src/NutsDBStorage
tag:
up: Up
down: Down
successcode: SCode
failurecode: FCode
healthcheck: HC
upstreamlist: UpstreamList
# upstream config
upstream:
etcdprefix: Upstream
reserved:
- all
- healthcheck
- upstream
- somethingElse
# health check config
healthcheck:
etcdprefix: HealthCheck
template:
status: running
checkProtocol: http
checkPath: /
health:
interval: 3000
successTime: 3
successTimeout: 3000
successStatus:
- 200
- 302
unhealth:
interval: 4500
failuresTime: 3
FailuresTimeout: 2000
failuresStatus:
- 429
- 404
- 500
- 501
- 502
- 503
- 504