relay-rules and consistent hashing
Hello,
I have 4 carbon-cache on two hosts and one relay.
How can I, with one relay, send all a.* metrics with consistent-hashing to the two carbon-caches on hosta.
All metrics b.* with consistent-hashing to the two other carbon-caches ?
I was thinking of
---carbon.conf
[relay]
...
RELAY_METHOD = rules
DESTINATIONS = hosta:2004:
---relay-rules.conf
[metrica]
pattern = ^a.*
destinations = hosta:2004:
[metricb]
pattern = ^b.*
destinations = hostb:2004:
but with this configuration, the same metric is send to the two caches on the same host (as if REPLICATION_
One other solution might be 3 relays for 4 carbon-caches (but it's a lot of relays imho)
---carbon.conf
[relay:a]
...
RELAY_METHOD = rules
DESTINATIONS = hosta:2004:
[relay:b]
PICKLE_
...
RELAY_METHOD = consistent-hashing
DESTINATIONS = hosta:2004:
[relay:c]
PICKLE_
...
RELAY_METHOD = consistent-hashing
DESTINATIONS = hostb:2004:
---relay-rules.conf
[metrica]
pattern = ^a.*
destinations = localhost:2114
[metricb]
pattern = ^b.*
destinations = localhost:2214
What are your opinions ?
Regards
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Graphite Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: