-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plans on RR (round robin) implementation? #474
Comments
this is why TBH i never really understood why anyone would want "true" round robin. my understanding of that is that it effectively routes metrics randomly, so all endpoints would see all metric names but the values for each metric would be sprayed around randomly. IIRC that's why i left it in the readme, to see if anyone would ask about it. Very few people have asked for it. (you and one person in #23 (comment) to which i replied it's implemented, and i don't remember why i said that. maybe i was referring to consistent hashing, because i think sometimes those terms are used interchangeably) |
I'd rather consider true RR here as this would mean that IO of go-carbon would be spread more evenly. As I understand it (that wasn't explained in the docs) consistent hashing means that specific prefix would always be sent to the same destination, which leaves room for IO imbalance. In our case, as we reached the SSD throughout limit, the disk IO is the bottleneck, hence the concern of actually addressing IO scaling. It does indeed means same metric would be "sprayed" across multiple hosts. I have done some testing on very junky setup (using nginx as dumb UDP LB) and I've seen no problems with that. Use of carbonapi allows easily querying of multiple hosts containing the same metric and merging it into one response. I also seen no performance issues there, arguably performance would be even better as the read bottleneck in most cases is also IO. |
it's not by prefix, but by hash of the full metricname. it generally results in a very even spread across all backends. (though there is 1 edge case where it doesn't, there is a bug about that - I think maybe that was #335 ). If anyone opens a PR with RR support, i would review (and hopefully merge) it. |
Round Ronbin has been on README for who knows how long (according to git blame since 2014 28dc6e0). However since then it is "not implemented".
Graphite (and go-carbon/carbonapi) work amazingly well with data written completely in RR fashion (as in same metric points being written in RR way to multiple destination hosts), it would be great if carbon-relay-ng actually would have RR functionality to spread metrics across many hosts.
In our use-case it is something we are looking to do right now as we reached capacity of SSD write throughput on single carbon server, and managing metrics assignments (using matching mechanism) is going to be one hell of manual work on 1000s of already existing metrics.
The text was updated successfully, but these errors were encountered: