Skip to content
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

Rebalance realtime connections to be fair to the sink [JIRA: RIAK-2708] #350

Open
Vagabond opened this issue Aug 2, 2013 · 5 comments
Open

Comments

@Vagabond
Copy link

Vagabond commented Aug 2, 2013

We were supposed to add this a long time ago, but we never have.

Because realtime sources connect to sinks via a simple shuffled list of IPs, if more nodes are added to the other cluster (or if clusters are offline and then brought back online) the realtime connections are never rebalanced fairly to avoid overloading sink nodes.

Given that we know the list of IPs in the other cluster, this should not be that hard, each sink node should have at least N div M realtime connections and N rem M nodes should have one additional connection. If this is not true, kill some realtime connections and let them re-establish. We can periodically do this check, say every 5 minutes or so?

@cmeiklejohn cmeiklejohn modified the milestones: 2.0, 2.1 Mar 24, 2014
@cmeiklejohn
Copy link
Contributor

Must for 2.1.

@engelsanchez
Copy link
Contributor

Same as L0 item in MDC4 planning.

@krestenkrab
Copy link
Contributor

This is on the 2.0_repl_balance branch. Dunno why it hasn't made it onto 2.0.

@engelsanchez
Copy link
Contributor

You mean this PR @krestenkrab? #632

@kesslerm
Copy link

Trigger JIRA.

@Basho-JIRA Basho-JIRA changed the title Rebalance realtime connections to be fair to the sink Rebalance realtime connections to be fair to the sink [JIRA: RIAK-2708] Jul 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants