Skip to content

Alternative approach to guarantee primary updates for next reconiliation #2820

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

Open
csviri opened this issue May 28, 2025 · 0 comments
Open
Milestone

Comments

@csviri
Copy link
Collaborator

csviri commented May 28, 2025

In v5.1 we provided a feature that guarantees primary update for next reconiliation:
https://javaoperatorsdk.io/blog/2025/05/22/how-to-guarantee-allocated-values-for-next-reconciliation/
using an additional cache.

An alternative approach would be without cache, to do the update the same way (this with optimistic locking) , just without caching the resource explicitly. Instead, polling the cache until the a new resource version is recieved.

The pros of this approach is simplicity, and we might argue that also a little bit memory efficient, but since in practice the additional cached resource is quickly evicted. On other other side if the informer watch looses connection, it might take some time to fully sync again, so the polling of the cache could extend the reconiliation time.

@csviri csviri added this to the 5.x milestone May 28, 2025
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