Repository navigation
mon: add connection scoring and a score-based leader election system - #32336
Closed
gregsfortytwo wants to merge 65 commits into
Closed
gregsfortytwo wants to merge 65 commits into
gregsfortytwo wants to merge 65 commits into
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR moves us much closer to properly supporting stretched Ceph clusters which
will safely survive under netsplit conditions. It:
and -reliable monitor to be leader)
Reviewers, this is probably readable either all in one go, or by patch, EXCEPT that I rewrote the ConnectionTracker implementation and left it in the history. Developer documentation added near the end of the history may be a useful aid to understanding.
I also don't want to merge the last few test patches but have left them in so you can see what's been done.
This passed a monthrash test run with the CONNECTIVITY mode: http://pulpito.ceph.com/gregf-2019-12-18_14:37:57-rados:monthrash-wip-elector-1218-distro-basic-smithi/
Both CONNECTIVITY and CLASSIC modes passed the simple netsplit test, but checking the teuthology log you can see the CLASSIC mode generally took 6 seconds (ie, an election cycle) to run every command during the netsplit, whereas CONNECTIVITY ran at normal speed. http://pulpito.ceph.com/gregf-2019-12-18_12:00:57-netsplit-wip-elector-1217-2-distro-basic-smithi/
I am now working on a (smaller) follow-on PR that will place monitors into the CRUSH map, and force any PG peering to have replicas across the appropriate CRUSH bucket (basically, different datacenters), unless the cluster decides it has been netsplit (in which case the in-quorum monitor group and its associated OSDs wins). That will include more extensive netsplit testing, since normal RADOS ops will be able to go through.
Todo:
Show available Jenkins commands
jenkins retest this pleasejenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard backendjenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox