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 docker 100% cpu load #51

Merged
merged 3 commits into from
Feb 11, 2020
Merged

Fix docker 100% cpu load #51

merged 3 commits into from
Feb 11, 2020

Conversation

simonmicro
Copy link
Contributor

@simonmicro simonmicro commented Jan 26, 2020

This addresses issue #38 - but for docker only.

The problem is that our py-kms tries to use an invalid shell (which is provided by docker or even systemd sometimes) and therefore loops indefinitely. This patch forces docker to provide a valid shell (see here), which should be a acceptable fix for the problem.

The best solution would be to modify py-kms directly by checking at startup for a valid shell (this would then fix this bug for any problematic environment), but this can be really hard (because sometimes we would have a valid shell but e.g. the /dev/null as input).

@simonmicro simonmicro changed the title Patch 1 Fix docker 100% cpu load Jan 29, 2020
@vosdev
Copy link
Contributor

vosdev commented Feb 9, 2020

Tested & can confirm that this solves the CPU issues from #38

@SystemRage SystemRage merged commit d73d0f8 into SystemRage:master Feb 11, 2020
@SystemRage SystemRage mentioned this pull request Feb 11, 2020
@simonmicro simonmicro deleted the patch-1 branch February 11, 2020 23:50
@simonmicro simonmicro mentioned this pull request Jul 27, 2020
edgd1er added a commit to edgd1er/py-kms that referenced this pull request Apr 13, 2022
edgd1er added a commit to edgd1er/py-kms that referenced this pull request Apr 13, 2022
edgd1er added a commit to edgd1er/py-kms that referenced this pull request Apr 14, 2022
edgd1er added a commit to edgd1er/py-kms that referenced this pull request Apr 15, 2022
edgd1er pushed a commit to edgd1er/py-kms that referenced this pull request Apr 22, 2022
client: add -D to discover KMS server SystemRage#51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants