-
Notifications
You must be signed in to change notification settings - Fork 33
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
Enhance/krab/cluster realtime rebalance rebase 2.0 #651
Enhance/krab/cluster realtime rebalance rebase 2.0 #651
Conversation
e1935d9
to
dbc6585
Compare
Now it works with mixed clusters. Tested with a RT only replication2_upgrade. |
This is a fix for - basho/riak#625 _[posted via JIRA by Derek Somogyi]_ |
👍 dbc6585 Mixed version test is no more broken than against the 2.0 branch. |
This implementes riak_core_cluster_serv {1,1} with new membership function on the server side to give list of {node(), {IP,Port} | unreachable} for *all* members of remote cluster. Nodes for which the cluster_serv cannot RPC to the given node yield ‘unreachable’ in stead of an IP/Port.
Use new all_members message if remote is 1,1+ For 1,0 emulate new semantics by keeping old IP:PORTs around until cluster_mgr restart. Implement new seeded sort+shuffle for result of calling cluster_mgr:get_ipaddrs_of_cluster/1.
The first tells the caller the address currently connected to. The second tells the rtsource_conn to try (if possible) to switch to an alternative connection.
Possible to lose some addresses when ConnectedAddr are early in the list. [{"127.0.0.1",10106},{"127.0.0.1",10066},{"127.0.0.1",10096},{"127.0.0.1",10076},{"127.0.0.1",10086}], ConnectedAddr: {"127.0.0.1",10066} [{"127.0.0.1",10106}], UsefulAddrs [{"127.0.0.1",10106}]
Stats function now never returns error code.
dbc6585
to
5573645
Compare
Force pushed so yet another pull request doesn't have to come in after a rebase. |
👍 5573645 Once more with feeling. |
…lance-rebase-2.0 Enhance/krab/cluster realtime rebalance rebase 2.0 Reviewed-by: lordnull
|
According to the PR notes - #651 The PR has been reviewed and approved. Closing this issue. _[posted via JIRA by Derek Somogyi]_ |
Rebase and some squash of #632.
Will start looking at mixed cluster tests as @lordnull proposed.