Skip to content

Enhance/krab/cluster realtime rebalance otp#632

Closed
lixen wants to merge 30 commits into
2.0from
enhance/krab/cluster-realtime-rebalance-otp
Closed

Enhance/krab/cluster realtime rebalance otp#632
lixen wants to merge 30 commits into
2.0from
enhance/krab/cluster-realtime-rebalance-otp

Conversation

@lixen
Copy link
Copy Markdown
Contributor

@lixen lixen commented Oct 27, 2014

Real-time rebalance as described in
https://gist.github.com/krestenkrab/4b1a493469ff28ba5b9d

macintux and others added 28 commits October 24, 2014 12:00
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.
@jonmeredith
Copy link
Copy Markdown
Contributor

aka RIAK-1181 - will smart commits work it out...

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.
@lordnull
Copy link
Copy Markdown
Contributor

lordnull commented Jan 6, 2015

Code looks clean. Could use a rebase. when I rebased it on top of 2.0, it did so cleanly. It passes the appropriate r_t; however there doesn't appear to be any mixed version cluster tests for this.

@runesl
Copy link
Copy Markdown

runesl commented Jan 7, 2015

Thanks for reviewing. We'll add a mixed source cluster test.

@lixen
Copy link
Copy Markdown
Contributor Author

lixen commented Jan 8, 2015

Is it possible to change target branch for a PR?

@lixen lixen closed this Jan 8, 2015
@seancribbs seancribbs deleted the enhance/krab/cluster-realtime-rebalance-otp branch April 1, 2015 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants