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

Anatoliy Dobrosynets proposed the following answer:
Yes, graphite-web fetchData algorythm you described is correct.

My only concern was ConsistentHashRing.
Is it really that smart to return the same value for a given key, despite the 
fact it's hash_ring has been generated on differnt base ?

I couldn't believe that if 
   DESTINATIONS     = ['10.4.0.1:a', '10.4.0.1:b', '10.4.0.2:c', '10.4.0.2:d']
   carbon-relay routes metric to any carbon-cache at host-1,
   and host-1 webapp has CARBONLINK_HOSTS = ['10.4.0.1:a', '10.4.0.1:b']
then this is always True for any metric:
   ConsistentHashRing(DESTINATIONS).get_host(metric) == 
ConsistentHashRing(CARBONLINK_HOSTS).get_host(metric)

Today I made more tests and got really impressed -
https://gist.github.com/anatolijd/5611927 .

I don't understand this magic but I've got the evidence of the faith now
:)

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

_______________________________________________
Mailing list: https://launchpad.net/~graphite-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~graphite-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to