Skip to content

Commit

Permalink
Set a CPU limit for user pods in UToronto
Browse files Browse the repository at this point in the history
#2445
had an outage because a node was taken out by having its
8 CPU be fully utilized. This restricts a single user from
being able to do that. Multiple users running heavy stuff still
can, but this is an improvement!
  • Loading branch information
yuvipanda committed Mar 30, 2023
1 parent cd4b280 commit c7ee78e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/clusters/utoronto/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ jupyterhub:
ongoing basis. To reach the support site, please visit: <a href="https://act.utoronto.ca/jupyterhub-support">https://act.utoronto.ca/jupyterhub-support/</a>.
</div>
singleuser:
cpu:
# Each node has about 8 CPUs total, and if we limit users to no more than
# 4, no single user can take down a full node by themselves. We have to
# set the guarantee to *something*, otherwise it is set to be equal
# to the limit!
limit: 4
guarantee: 0.01
memory:
limit: 2G
guarantee: 1G
Expand Down

0 comments on commit c7ee78e

Please sign in to comment.