forked from vicanso/pingap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpingap.toml
50 lines (43 loc) · 978 Bytes
/
pingap.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
[basic]
error_template = ""
pid_file = "/tmp/pingap.pid"
upgrade_sock = "/tmp/pingap_upgrade.sock"
threads = 1
work_stealing = true
grace_period = "3m"
graceful_shutdown_timeout = "10s"
log_level = "info"
[upstreams.charts]
addrs = ["127.0.0.1:5000"]
algo = "hash:cookie"
health_check = "http://charts/ping?connection_timeout=3s&pingap"
connection_timeout = "10s"
total_connection_timeout = "30s"
read_timeout = "10s"
idle_timeout = "2m"
write_timeout = "10s"
tcp_idle = "2m"
tcp_interval = "1m"
tcp_probe_count = 100
tcp_recv_buf = "4kb"
[upstreams.diving]
addrs = ["127.0.0.1:5001"]
[locations.lo]
upstream = "charts"
path = "/"
host = ""
proxy_set_headers = ["name:value"]
proxy_add_headers = ["name:value"]
rewrite = ""
plugins = ["pingap:requestId", "stats"]
[servers.test]
addr = "0.0.0.0:6188"
access_log = "tiny"
locations = ["lo"]
tcp_idle = "2m"
tcp_interval = "1m"
tcp_probe_count = 100
# tcp_fast_open = 10
[plugins.stats]
value = "/stats"
category = "stats"