How to set Destination up for replicated data

Asked by Juan

Hi,

I'm trying to find a way to specify the destination for the replicated data when setting REPLICATION_FACTOR up

e.g. Let's say I have carbon-relay sending data to two carbon-cache instances 10.0.0.2:2004 and 10.0.0.3:2004 and I want to setup the replication so it sends the replicated data to two new instances 10.0.0.4:2004 and 10.0.0.5:2004.

Is it possible at all?

Regards,
JD

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#1

You can do that using two more relays - https://gist.github.com/deniszh/ab5163e0271c8d43c446c50c0e076d20
But usually is much easier to have 4 hosts behind single relay with RF=2

Revision history for this message
Del Otto (zombie343) said :
#2

Denis,
  Why are 4 hosts and 1 relay needed with RF=2? I expected you to say 1 relay host and 2 cache hosts, but you said 4 hosts. I am very confused. Please elaborate? Thank you!

Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#3

TC wanted to increased RF when scaling up from 2 nodes to 4. You can or use 2 tier relays or just have 4 hosts and RF=2

Revision history for this message
Del Otto (zombie343) said :
#4

Thank you Denis!

Is there a benefit to 2 tiers of carbon relay?

Can a VIP load-balance two carbon relays that connect to another tier ifv2 rekays? (Double redundancy)

Basically, in your 1-relay 4-cache example, how can we build some redundancy into one tier 1 relay or 2 tiers of relays?

Can you help with this problem?

Provide an answer of your own, or ask Juan for more information if necessary.

To post a message you must log in.