Skip to content

Conversation

@kjnilsson
Copy link
Contributor

@kjnilsson kjnilsson commented Jun 12, 2024

Instead of relying on the complex and non-determinstic default node
selection mechanism inside peer discovery this change makes the
etcd backend implemention make the leader selection itself based on
the etcd create_revision of each entry. Although not spelled out anywhere
explicitly is likely that a property called "Create Revision" is going
to remain consistent throughout the lifetime of the etcd key.

Either way this is likely to be an improvement on the current approach.

Instead of relying on the complex and non-determinstic default node
selection mechanism inside peer discovery this change makes the
etcd backend implemention make the leader selection itself based on
the etcd create_revision of each entry. Although not spelled out anywhere
explicitly is likely that a property called "Create Revision" is going
to remain consistent throughout the lifetime of the etcd key.

Either way this is likely to be an improvement on the current approach.
As the primary mirror may sometimes fail there is now a fall back.
@kjnilsson kjnilsson force-pushed the peer-discovery-etcd-fixes branch from 5494ac6 to 5a94049 Compare June 12, 2024 14:34
@kjnilsson kjnilsson merged commit 3d10f25 into main Jun 12, 2024
@kjnilsson kjnilsson deleted the peer-discovery-etcd-fixes branch June 12, 2024 16:15
@michaelklishin
Copy link
Collaborator

@Mergifyio backport v3.13.x

@mergify
Copy link

mergify bot commented Jun 12, 2024

backport v3.13.x

✅ Backports have been created

michaelklishin added a commit that referenced this pull request Jun 12, 2024
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.

4 participants