← Back to team overview

graphite-dev team mailing list archive

Re: [Question #228472]: DESTINATIONS vs CARBONLINK_HOSTS in a cluster

 

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

Xabier de Zuazo proposed the following answer:
@anatolijd

That's just how the Consistent Hashing works. If you remove a node from
the array, only the keys in this node will need to be remapped. The
others stay in the same place.

In this case, with graphite, you remove "localhost" instances from the
ring, which you've checked before (with CARBONLINK_HOSTS). So the
results are the same.

http://en.wikipedia.org/wiki/Consistent_hashing
http://www.paperplanes.de/2011/12/9/the-magic-of-consistent-hashing.html

@bluke you are right. You need to put local instances in
CARBONLINK_HOSTS.

carbon-relay & carbon-aggregator => DESTINATIONS
graphite-web => CARBONLINK_HOSTS (local instances) + CLUSTER_SERVERS (other graphite-webs)

Hashing results are the same.

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