Skip to content

Rolling my own exponential backoff #2506

Closed Answered by camilamacedo86
mogsie asked this question in Support
Discussion options

You must be logged in to vote

Hi @mogsie,

I understand that the error that you are facing is the object has been modified, please apply your changes to the latest version and try again which is indicative of a conflict due to concurrent updates on the same Kubernetes resource. When this happens, your reconciler will fail and, by default, will immediately requeue the request, potentially exacerbating the problem.

Implementing a denyBefore map, as you described, can help introduce an intentional delay before requeueing. This can give other concurrent operations a chance to complete and thus reduce the chances of subsequent conflicts.

The ideal approach to sort out this scenario is fetch the resource before update as it …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by camilamacedo86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants