betfair / opentsp

Time Series Pipeline (TSP) is an open metric gathering and routing system.
Apache License 2.0
27 stars 5 forks source link

cmd/tsp-controller: support multi-address host attributes #27

Open masiulaniec opened 9 years ago

masiulaniec commented 9 years ago

Quoting tsp-forwarder(1):

          Host (string)
                 Server address in host:port format. If port is  not  pro-
                 vided,  it  defaults  to  4242.  The protocol used is the
                 OpenTSDB line-based telnet protocol. For load  balancing,
                 multiple  servers  may be defined using comma to separate
                 server addresses. The traffic will be sent to all  listed
                 servers,  partitioned using a hash of time series identi-
                 fier.

The "comma-separated multiple servers" case is currently broken when used with in /etc/tsp-controller/network, for example:

<aggregator host="foo.example.com:4242,bar.example.com:4242"/>

is intended to allow deploying tsp-aggregator to multiple machines for scalability reasons but is currently unsupported: tsp-controller rejects control requests with the "not an aggregator" error message.