ankaios icon indicating copy to clipboard operation
ankaios copied to clipboard

Recognize stopped workloads immediately

Open christoph-hamm opened this issue 1 year ago • 1 comments

Description

At the moment the Ankaios agent calls podman ps once every second and uses this result to check if podman/podman-kube workloads are still running. Hence it could take one seconds between an application stopping and Ankaios being informed about the state change.

To be immediately informed, once a workload stops, Ankaios agent can get the PID of the workload from the podman ps result and use pidfd_open to get a file descriptor, which can be waited on using select, poll or epoll.

Final result

Summary

To be filled when the final solution is sketched.

christoph-hamm avatar Nov 30 '23 11:11 christoph-hamm