-
Notifications
You must be signed in to change notification settings - Fork 60
OOMKilled during init-persistent-home on a devworkspace image with lots of files in /home/tooling #1404
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
Comments
Hello @isuftin thank you for reporting this issue. For the time being could you try setting / creating:
in your cluster? |
@dkwon17 - We hacked that configuration in to a live deployment and it seems to have done the trick. Our issue is that we are deploying this in OpenShift through ArgoCD and after doing a bit of research, I don't see a way to set this as part of an overall deployment override. In our deployment, the DWOC is a child of CheCluster and with that, I can't find a way in their API to coax this during a redeploy. |
@dkwon17 - Figured it out. I had to match the name CheCluster deploys the DWOC under, which is |
Thank you for confirming @isuftin. Please reopen the issue if you'd like some further improvement for editing the init container memory limit |
Description
As we grow our development team's custom UDI, we're beginning to also grow /home/tooling. Currently, /home/tooling is about 1.1G with lots of small files (this includes a virtualenv with a bunch of libraries installed and nvm with AWS CDK and some other tooling installed).
When attempting to deploy a new workspace with this image, the
init-persistent-home
container keeps getting OOMKilled.The initContainers spec on the cluster has a memoryLimit of 128Mi and a requests memoryLimit of 64Mi. This is not something we set and I don't believe this can be set.
stow is known to eat up a large amount of memory when it works against a bunch of tiny files.
But being that we can't set the initContainer's memory limit from the CheCluster config or from a devfile, is there something that can be done to alleviate this?
How To Reproduce
Unfortunately I don't have an exact recipe for creating a large enough developer image for testing. We install:
With Ansible, we also use ansiible-galaxy to install Ansible collections:
Expected behavior
The init-persistent-home container runs without being OOMKilled
Additional context
We run this via OpenShift DevSpaces Operator 3.19.0 and DevWorkspace operator 0.32.1
Example of error output:
The text was updated successfully, but these errors were encountered: