uber-archive / statsrelay

A consistent-hashing relay for statsd and carbon metrics
Other
101 stars 28 forks source link

Add tags to statsrelay config file #10

Closed sloppyfocus closed 9 years ago

sloppyfocus commented 9 years ago

This change modifies config file parsing to allow statsrelay addresses to be "tagged". Tags make it possible for different addresses to occupy the same portion of the hash ring, so that moving statsrelay shards or changing IP addresses will not result in every key being rehashed.

eskil commented 9 years ago

A few magic numbers that could be defines/consts. Otherwise looks good.

JeremyGrosser commented 9 years ago

I think this is okay... I really hate the way ketama does config stuff and want to rip it out into something more flexible long term, but I agree this is useful enough to warrant just hacking it together for now.