-
Notifications
You must be signed in to change notification settings - Fork 218
Leader election #411
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
Comments
@shawkins I added this to 3.3 milestone for now. To summarize it to my understanding there are two cases when running multiple instances of operators is happening and/or desirable, and leader election makes sure only one of them is actively reconciling, thus other than leader instances don't execute reconcilers:
In summary there is one design question:
|
Maybe the strategy should be configurable i.e. the framework would support event replication but let users activate or deactivate it depending on their needs? |
Yes, a feature flag would be nice for that, agree. |
Just one more note, in both cases, if an operator becomes the leader will need reconcile all the resources anyways. Since there is no info how long the other "leader before" was down. |
Fixes #411 Co-authored-by: Chris Laprun <[email protected]>
Fixes #411 Co-authored-by: Chris Laprun <[email protected]>
Fixes #411 Co-authored-by: Chris Laprun <[email protected]>
Fixes #411 Co-authored-by: Chris Laprun <[email protected]>
Related to #409 are there plans to add leader election functionality similar to https://docs.openshift.com/container-platform/4.7/operators/operator_sdk/osdk-leader-election.html to the java operator sdk?
The text was updated successfully, but these errors were encountered: