graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #05043
Re: [Question #252963]: Failed CarbonLink query
Question #252963 on Graphite changed:
https://answers.launchpad.net/graphite/+question/252963
Denis Zhdanov proposed the following answer:
Yes, you can use another relay with REPLICATION_FACTOR=2 for that, e.g.
[relay]
LINE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
[relay0]
LINE_RECEIVER_PORT = 2003
PICKLE_RECEIVER_PORT = 2004
RELAY_METHOD = consistent-hashing
REPLICATION_FACTOR = 2
DESTINATIONS = 127.0.0.1:3004, IP2:2003
[relay1]
LINE_RECEIVER_PORT = 3003
PICKLE_RECEIVER_PORT = 3004
RELAY_METHOD = consistent-hashing
REPLICATION_FACTOR = 1
DESTINATIONS = 127.0.0.1:2014:1, 127.0.0.1:2024:2, 127.0.0.1:2034:3, 127.0.0.1:2044:4
then you need to run two relays
bin/carbon-relay.py --instance=0 start
bin/carbon-relay.py --instance=1 start
Relay0 will copy metrics both to 127.0.0.1:3004 and IP2:2003.
On 127.0.0.1:3004 relay1 will push metrics to carbon caches.
IP2:2003 - IP and port of another Graphite.
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.