apple / swift-cluster-membership

Distributed Membership Protocol implementations in Swift
https://apple.github.io/swift-cluster-membership/
Apache License 2.0
201 stars 20 forks source link

SWIM: Remove ack incarnation, use gossip about self instead? #11

Open ktoso opened 4 years ago

ktoso commented 4 years ago

Proposal by @avolokhov


Remove incarnation from ack payload and put information about pinged instance into response payload. This will deduplicate logic of membership dissemination code and condense it in gossip payload processing.

Motivation:

Current SWIM protocol has two ways to notify about group membership: membership about everyone except pinged instance is disseminated in gossip payload, and membership about self is stored in a dedicated incarnation field. This forces us to have essentially the same membership processing code in two places. This PR removes this duplication and makes gossip payload the only way to pass group membership information.

Modifications:


Need to consider the deeper impact of such change.