Skip to content

Commit cf9745d

Browse files
committed
example.conf: document config options and peculiarities of our config format
- All options except `Backends: []` have default values - The config must be valid JSON (*) * Except it may have a single shell-style (#) comment block at the top
1 parent 87ba2a7 commit cf9745d

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

example.conf

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
2+
#
3+
# A single shell-style (#) comment block may appear at the top of the file
4+
# and will be stripped off. However, the remainder of the file must be valid JSON.
5+
# (So the `//` comments below will cause it to fail)
6+
#
7+
# NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
8+
{
9+
// Listen port
10+
"Port": 8080,
11+
12+
// Your preferred GOMAXPROCS setting; if you wish to override it in config
13+
// rather than the environment.
14+
"MaxProcs": 0,
15+
16+
// Graphite, "host:port", to send zipper's metrics to.
17+
"GraphiteHost": "",
18+
19+
// Interval seconds to send zipper's own metrics.
20+
"IntervalSec": 60,
21+
22+
// Number of 100ms buckets to track request distribution in. Used to build
23+
// 'carbon.zipper.hostname.requests_in_0ms_to_100ms' metric and friends.
24+
// Requests beyond the last bucket are logged as slow (default of 10 implies "slow" is >1 second).
25+
"Buckets": 10,
26+
27+
// Maximum total backend requesting timeout in ms. ( How long we may spend making requests. )
28+
"TimeoutMs": 10000,
29+
30+
// Timeout, in ms, once the final backend has been contacted. ( [Effectively] How long we'll wait for the slowest response. )
31+
"TimeoutMsAfterAllStarted": 2000,
32+
33+
// Number of concurrent requests to any given backend - default is no limit.
34+
// If set, you likely want >= MaxIdleConnsPerHost
35+
"ConcurrencyLimitPerServer": 0,
36+
37+
// Control http.MaxIdleConnsPerHost. Large values can lead to more idle
38+
// connections on the backend servers which may bump into limits; tune with care.
39+
"MaxIdleConnsPerHost": 100,
40+
41+
// "http://host:port" array of instances of carbonserver stores
42+
// This is the *ONLY* config element that MUST be specified.
43+
"Backends":
44+
[
45+
"http://10.0.0.1:8080",
46+
"http://10.0.0.2:8080",
47+
"http://192.168.0.100:8080",
48+
"http://192.168.0.200:8080",
49+
"http://192.168.1.212:8080"
50+
]
51+
}

0 commit comments

Comments
 (0)