You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the health_status events emitted by podman is too noisy.
That is, health_status event is emitted for each health check attempts . I think it should only be emitted when ever there is a change in health_status status of a container.
Docker handles this case in better way. Docker is emitting different events (exec_create and exec_die) for health check attempts and only emit health_status event whenever there is an actual status/state change.
In the above way other applications which implements docker/podman service discovery can safely and easly depend on docker/podman for service discovery
For eg: tools like Traefik proxy implements docker/podman service discovery by reloading confiuration for every health_status event.
Because of the noisy behaviour, there will be considerable CPU resource utilization if we try to use tools like Traefik along with podman.
I am not raising this bug report just because podman is not implementing docker's behaviour, but I believe docker is handling this case in better way than podman
As a secure container runtime, I see very big opportunity for Podman . Bugs like this will prevent people from switching to podman .
I found this issue while using Coolify along with podman where considerable CPU resource is wasted due to this bug
Emit event only if there is a change in health_status
Fixescontainers#24003Resolvescontainers#24005 (comment)
Pass additional isChanged flag to event creation function
Fix health check events for docker api
Signed-off-by: Harish Karumuthil <[email protected]>
Issue Description
health_status
events emitted by podman is too noisy.health_status
event is emitted for each health check attempts . I think it should only be emitted when ever there is a change inhealth_status
status of a container.exec_create
andexec_die
) for health check attempts and only emithealth_status
event whenever there is an actual status/state change.As a secure container runtime, I see very big opportunity for Podman . Bugs like this will prevent people from switching to podman .
I found this issue while using Coolify along with podman where considerable CPU resource is wasted due to this bug
Steps to reproduce the issue
Steps to reproduce the issue
cd for-podman
podman-compose up -d
podman events --format json | jq -r '[.time, .Name, .Status, .health_status] | @tsv'
Describe the results you received
The output I am seeing is given below.
In the above , we can see that most of the
health_status
events are duplicates. ( doesn't contain any new information )Describe the results you expected
I am expecting the
health_status
event only when there is a status/change changepodman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
My OS
Additional information
No response
The text was updated successfully, but these errors were encountered: