2i2c-org / infrastructure

Infrastructure for configuring and deploying our community JupyterHubs.
https://infrastructure.2i2c.org
BSD 3-Clause "New" or "Revised" License
103 stars 63 forks source link

Binder services running out of memory #4454

Closed jnywong closed 2 months ago

jnywong commented 2 months ago

Context

I keep running into OOM errors when trying to build this environment.yml.

I have tried building this environment some of our available binder services, e.g.

and run into the same error:

Step 39/50 : RUN TIMEFORMAT='time: %3R' bash -c 'time ${MAMBA_EXE} env update -p ${NB_PYTHON_PREFIX} --file "binder/environment.yml" && time ${MAMBA_EXE} clean --all -f -y && ${MAMBA_EXE} list -p ${NB_PYTHON_PREFIX} '
 ---> Running in 5ef5962be9b5
Channels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... bash: line 1:     8 Killed                  ${MAMBA_EXE} env update -p ${NB_PYTHON_PREFIX} --file "binder/environment.yml"
time: 36.818
 ---> Removed intermediate container 5ef5962be9b5
The command '/bin/sh -c TIMEFORMAT='time: %3R' bash -c 'time ${MAMBA_EXE} env update -p ${NB_PYTHON_PREFIX} --file "binder/environment.yml" && time ${MAMBA_EXE} clean --all -f -y && ${MAMBA_EXE} list -p ${NB_PYTHON_PREFIX} '' returned a non-zero code: 137

I've also checked Grafana and I can see pods getting killed :(

Screenshot 2024-07-19 at 11 49 32

Proposal

No response

Updates and actions

No response

sgibson91 commented 2 months ago

I reverted PR #4416 to see if that unblocks you and reopened #4371 for further refinement

yuvipanda commented 2 months ago

Closed as @sgibson91's revert fixed it! Thanks @sgibson91!