-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add cache for podman ps #87
Conversation
Issue-Id: #1
Issue-Id: #1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finished with the review of the code. There were some small findings that I directly fixed. The fixes are in single commits s.t. they can be reverted if you don't agree with them.
What we definitely have to take care of is the bug with the pod states in case one of the pods in a workloads disappears (see below for details).
I still need to review the tests for the podman_cli.
Issue-Id: #1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review finished, findings documented.
Issue-Id: #1 Co-authored-by: Kaloyan <36224699+krucod3@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Issues: #1
Currently for each podman and podman-kube workload the Ankaios agent calls the command
podman ps
once per second.This needs a lot CPU resources.
The Ankaios agent shall cache podman ps result, and use the result for all podman workloads.
Definition of Done
The PR shall be merged only if all items mentioned in
CONTRIBUTING.md
have been followed. In case an item is not applicable as described, please provide a short explanation in the description.