Skip to content

Commit a2b8cc6

Browse files
committed
basehub/binderhub: update fixme comments about resource req/lim
1 parent c24a39f commit a2b8cc6

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

helm-charts/basehub/values.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,11 @@ jupyterhub:
129129
replicas: 0
130130
userScheduler:
131131
enabled: false
132+
# FIXME: We should think about these resource requests/limits, see
133+
# https://github.com/2i2c-org/infrastructure/issues/2127.
134+
#
132135
resources:
133136
requests:
134-
# FIXME: Just unset this?
135137
cpu: 0.01
136138
memory: 64Mi
137139
limits:
@@ -145,15 +147,22 @@ jupyterhub:
145147
service:
146148
type: ClusterIP
147149
chp:
150+
# FIXME: We should think about these resource requests/limits, see
151+
# https://github.com/2i2c-org/infrastructure/issues/2127.
152+
#
148153
resources:
149154
requests:
150-
# FIXME: We want no guarantees here!!!
151-
# This is lowest possible value
152155
cpu: 0.01
153156
memory: 64Mi
154157
limits:
155158
memory: 1Gi
156159
traefik:
160+
# FIXME: We should think about these resource requests/limits, see
161+
# https://github.com/2i2c-org/infrastructure/issues/2127.
162+
#
163+
# Note if autohttps pod's aren't used anywhere by our basehub
164+
# deployments, we should simply remove this traefik configuration.
165+
#
157166
resources:
158167
requests:
159168
memory: 64Mi
@@ -450,9 +459,11 @@ jupyterhub:
450459
ports:
451460
- port: http
452461
protocol: TCP
462+
# FIXME: We should think about these resource requests/limits, see
463+
# https://github.com/2i2c-org/infrastructure/issues/2127.
464+
#
453465
resources:
454466
requests:
455-
# Very small unit, since we don't want any CPU guarantees
456467
cpu: 0.01
457468
memory: 128Mi
458469
limits:

helm-charts/binderhub/values.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,16 @@ binderhub:
3838
hub.jupyter.org/node-purpose: core
3939
resources:
4040
requests:
41-
# FIXME: We want no guarantees here!!!
42-
# This is lowest possible value
41+
# FIXME: These are basehub's defaults that may very well be worth
42+
# deviating from.
43+
#
44+
# For example, we want to avoid the proxy pod gets evicted
45+
# if the node is under memory pressure and the proxy pod is
46+
# using more memory than requested. We also want to avoid
47+
# having the proxy pod starved of CPU by a minimal request if
48+
# other pods make significant requests and get a far greater
49+
# ratio of the node's available CPU.
50+
#
4351
cpu: 0.01
4452
memory: 64Mi
4553
limits:

0 commit comments

Comments
 (0)