Revision 6c91b4d93e3784b9222fab4044b4320cee9b3d90 authored by Elliot Blackburn on 02 April 2019, 10:39:04 UTC, committed by Elliot Blackburn on 02 April 2019, 10:39:04 UTC
1 parent 5fd5213
Raw File
exampleProxyConfig.js
/*

Required Variables:

  port:             StatsD Cluster Proxy listening port [default: 8125]
  mgmt_port:        StatsD Cluster Proxy telnet management port [default: 8126]
  mgmt_address:     address to run the management TCP interface on [default: 0.0.0.0]
  nodes:            list of StatsD instances
     host:          address of an instance of StatsD
     port:          port that this instance is listening on
     adminport:     port that this instance is listening on for the admininterface

Optional Variables:

  host:             address to listen on over UDP [default: 0.0.0.0]
  address_ipv6:     defines if the listen address is an IPv4 or IPv6 address [true or false, default: false]
  checkInterval:    health status check interval [default: 10000]
  cacheSize:        size of the cache to store for hashring key lookups [default: 10000]
  forkCount:        number of child processes (cluster module), number or 'auto' for utilize all cpus [default:0]
  server:           the server to load. The server must exist by name in the directory
                    servers/. If not specified, the default udp server will be loaded.
                    Note: This will still send to the backends via udp regardless of the
                    server type for the proxy
                    * example for tcp server:
                    "./servers/tcp"

*/
{
nodes: [
{host: '127.0.0.1', port: 8127, adminport: 8128},
{host: '127.0.0.1', port: 8129, adminport: 8130},
{host: '127.0.0.1', port: 8131, adminport: 8132}
],
server: './servers/udp',
host:  '0.0.0.0',
port: 8125,
mgmt_port: 8126,
forkCount: 0,
checkInterval: 1000,
cacheSize: 10000
}
back to top