← Back to team overview

graphite-dev team mailing list archive

Re: [Question #193323]: How do I configure carbon to store metrics redundantly?

 

Question #193323 on Graphite changed:
https://answers.launchpad.net/graphite/+question/193323

    Status: Open => Answered

Michael Leinartas proposed the following answer:
Let's call it server A and server B

Server A's carbon.conf has:
[carbon-relay]
  RELAY_METHOD = rules
  DESTINATIONS = localhost:2004, localhost:2024 # carbon-cache and carbon-aggregator locally
[carbon-aggregator]
  DESTINATIONS = serverB:2004

Server A's relay-rules.conf will have rules for metrics you want sent to both destinations with:
destinations = localhost:2004, serverB:2004

at the end of the file, you'll put a default rule with:
destinations = localhost:2004

To catch any metrics that weren't sent to the aggregator (and off to
serverB)


The basic thing to keep in mind with the relay in relay-rules mode is that *all* destinations you will send to must be configured in carbon.conf under [relay]. relay-rules.conf is where the metrics will get split up into one destination or the other.

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.