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

Support eventual consistency #298

Open
3 tasks
windsource opened this issue Jun 19, 2024 · 2 comments
Open
3 tasks

Support eventual consistency #298

windsource opened this issue Jun 19, 2024 · 2 comments
Labels
enhancement New feature or request. Issue will appear in the change log "Features"
Milestone

Comments

@windsource
Copy link
Contributor

windsource commented Jun 19, 2024

Description

When applying a new manifest, currently Ankaios has a fixed number of retries when the start fails and after that finally gives up. The workload remains in state Pending, subState StartingFailed. There can be different reasons why the start fails like

  • cannot pull image (registry not available, image not found, not authorized, ...)
  • invalid options passed to either commandOptions or commandArgs
  • Folder not existing when mouting volumes
  • etc.

While some of the problems cannot be solved without changing the manifest (e.g. invalid options) others might disappear after some time (e.g. registry not available or folder not existing).

Some users expect that Ankaios constantly tries to reach the desired that and also that Ankaios provides the result of the latest try (e.g. Podman error message).

Goals

  • Ankaios should constantly try to reach the desired state.
  • The interval between the retries shall be increased over time with a jitter (maybe same strategy as K8S).
  • ank get workloads shall provide the latest result.
  • ank apply shall return after the first attempt

Final result

Summary

To be filled when the final solution is sketched.

Tasks

  • Task 1
  • Task 2
  • ...
@windsource windsource added the enhancement New feature or request. Issue will appear in the change log "Features" label Jun 19, 2024
@windsource
Copy link
Contributor Author

windsource commented Jun 21, 2024

Maybe we can also have an optional maximum time before Ankaios stops to reach desired state. The parameter could be part of a config file (see #302).

@krucod3 krucod3 added this to the v0.6 milestone Jun 26, 2024
@inf17101
Copy link
Contributor

inf17101 commented Jun 26, 2024

Builds upon #67 (PR #137)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request. Issue will appear in the change log "Features"
Projects
None yet
Development

No branches or pull requests

3 participants