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

fix: fix docker exec zombies #99

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

xzchaoo
Copy link
Contributor

@xzchaoo xzchaoo commented Mar 28, 2024

Which issue does this PR close?

Closes #

Rationale for this change

We previously used timeout to wrap the command to be executed to prevent the command from hanging and not exiting due to various reasons.
However, it was found that in Alpine-based containers, if process 1 does not have the ability to recycle zombie processes, timeout will cause zombie processes to be generated.
Eventually causing the container to OOM.

Therefore, we need to add detection logic and use timeout to wrap the command to be executed only when ensuring that the target container has the ability to recycle zombie processes.

What changes are included in this PR?

Are there any user-facing changes?

How does this change test

@xzchaoo xzchaoo added the bug Something isn't working label Mar 28, 2024
@xzchaoo xzchaoo requested a review from jsy1001de March 28, 2024 08:29
@xzchaoo xzchaoo self-assigned this Mar 28, 2024
Copy link
Collaborator

@jsy1001de jsy1001de left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xzchaoo xzchaoo merged commit a3edd7e into traas-stack:main Mar 28, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants