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

resource consumer - prevent consumeCPU/Mem processes from becoming zombies upon exit #17031

Merged
merged 1 commit into from
Nov 10, 2015

Conversation

xelalexv
Copy link

@xelalexv xelalexv commented Nov 9, 2015

While looking into issue #16425, I noticed that the consumeCPU and consumeMem processes remain as zombies once they exit, and pile up. This is because Wait() is not called on the corresponding exec.cmds. While I'm sure this is not the cause for issue #16425, I still thought this should be straightened out.

@k8s-bot
Copy link

k8s-bot commented Nov 9, 2015

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain to ixdy.

1 similar comment
@k8s-bot
Copy link

k8s-bot commented Nov 9, 2015

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain to ixdy.

@k8s-github-robot
Copy link

Labelling this PR as size/XS

@k8s-github-robot k8s-github-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 9, 2015
@ixdy
Copy link
Member

ixdy commented Nov 9, 2015

ok to test

@ixdy
Copy link
Member

ixdy commented Nov 9, 2015

it looks like ConsumeCPU and ConsumeMem are both called in goroutines, so we could maybe just change the Start to a Run command and not need Wait at all.

@k8s-bot
Copy link

k8s-bot commented Nov 10, 2015

GCE e2e build/test failed for commit a556f69d7dd943031ee64813886fcd0a7e98febd.

@xelalexv
Copy link
Author

Yes, I did not see that. Run instead of Wait also fixes the problem, and is actually better. Changed accordingly.

@k8s-bot
Copy link

k8s-bot commented Nov 10, 2015

GCE e2e test build/test passed for commit ac9484b.

@wojtek-t wojtek-t assigned piosz and unassigned ixdy Nov 10, 2015
@wojtek-t
Copy link
Member

@piosz - can you please take a look?

@piosz
Copy link
Member

piosz commented Nov 10, 2015

LGTM, thanks for the fix. Did you have a chance to build a new Docker image with your changes and then test it?

@piosz piosz added ok-to-merge lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Nov 10, 2015
@k8s-github-robot
Copy link

Continuous integration appears to have missed, closing and re-opening to trigger it

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Nov 10, 2015

GCE e2e test build/test passed for commit ac9484b.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

k8s-github-robot pushed a commit that referenced this pull request Nov 10, 2015
@k8s-github-robot k8s-github-robot merged commit efa5907 into kubernetes:master Nov 10, 2015
@xelalexv xelalexv deleted the issue16425 branch November 10, 2015 14:59
@xelalexv
Copy link
Author

@piosz Sorry for the late reply. I built the Docker image and pushed it into my local Docker registry, then pointed the HPA e2e tests to use that. I verified that in the running pods, no more consume-cpu zombies remain, so fix is effective.

@piosz
Copy link
Member

piosz commented Nov 16, 2015

Thank you @xelalexv!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants