1 | /*
|
2 |
|
3 | Required Variables:
|
4 |
|
5 | port: StatsD Cluster Proxy listening port [default: 8125]
|
6 | mgmt_port: StatsD Cluster Proxy telnet management port [default: 8126]
|
7 | mgmt_address: address to run the management TCP interface on [default: 0.0.0.0]
|
8 | nodes: list of StatsD instances
|
9 | host: address of an instance of StatsD
|
10 | port: port that this instance is listening on
|
11 | adminport: port that this instance is listening on for the admininterface
|
12 |
|
13 | Optional Variables:
|
14 |
|
15 | host: address to listen on over UDP [default: 0.0.0.0]
|
16 | address_ipv6: defines if the listen address is an IPv4 or IPv6 address [true or false, default: false]
|
17 | checkInterval: health status check interval [default: 10000]
|
18 | cacheSize: size of the cache to store for hashring key lookups [default: 10000]
|
19 | forkCount: number of child processes (cluster module), number or 'auto' for utilize all cpus [default:0]
|
20 | server: the server to load. The server must exist by name in the directory
|
21 | servers/. If not specified, the default udp server will be loaded.
|
22 | Note: This will still send to the backends via udp regardless of the
|
23 | server type for the proxy
|
24 | * example for tcp server:
|
25 | "./servers/tcp"
|
26 |
|
27 | */
|
28 | {
|
29 | nodes: [
|
30 | {host: '127.0.0.1', port: 8127, adminport: 8128},
|
31 | {host: '127.0.0.1', port: 8129, adminport: 8130},
|
32 | {host: '127.0.0.1', port: 8131, adminport: 8132}
|
33 | ],
|
34 | server: './servers/udp',
|
35 | host: '0.0.0.0',
|
36 | port: 8125,
|
37 | mgmt_port: 8126,
|
38 | forkCount: 0,
|
39 | checkInterval: 1000,
|
40 | cacheSize: 10000
|
41 | }
|