Skip to content
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

Remember there is no perfect failure detector #1

Open
SchSeba opened this issue Mar 28, 2019 · 0 comments
Open

Remember there is no perfect failure detector #1

SchSeba opened this issue Mar 28, 2019 · 0 comments
Assignees

Comments

@SchSeba
Copy link
Collaborator

SchSeba commented Mar 28, 2019

@MikeSpreitzer I move the issue here to have a better visibility

Leader election does not guarantee that only one instance thinks it is leader at a time. While normally at most one is active at a time, there are corner cases in which there can be multiple active at once. This is not a bug in leader election that we can expect to be fixed; it is a consequence of a fundamental problem in distributed systems.

The kubernetes API machinery supports a very limited repertoire of ACID transactions. One is to create an object if and only if there is not already an object of the same kind, namespace, and name. That means we can use an object as a lock on any sort of thing that can be named.

In https://github.com/MikeSpreitzer/kube-examples/tree/add-kos/staging/kos#the-ipam-controller you will see an example of using this to allocate IP addresses.

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

No branches or pull requests

1 participant