-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add retry counter on failed reconciliation (#255)
* feat: Add retry counter on failed reconciliation If reconciliation failed, increase the Retry counter, set the NotBefore field to a future date and reschedule a retry. A Go routine handles the force retry because the system tries to reconcile only if an event tell the system to do that or with the fixed periodical Resync (which is slow for that). Because we never tracked if a MicroVM was able to boot or not, we just let the reconciler to check if the process is not there and react to the results. In case the MicroVM was not able to boot, we reported back a success on the MicroVM start step, which is not right and we can't track failed state with that. As a solution, now a step has a Verify function that will be called after Do. If the result is false, it marks the step failed. That way we can start the MicroVM, wait a bit and check if it's still running, if it's not running, the start failed. * Stop hard failing resync on boot If one fails, we can still listen on new requests and reconcile vms, if they are failing always, the retry logic will handle this. Co-authored-by: Claudia <claudiaberesford@gmail.com>
- Loading branch information
1 parent
9e0abc6
commit 6ec5c7d
Showing
35 changed files
with
388 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.