Skip to content

Commit ca8663b

Browse files
committed
hetzner: Run imagecleaner more aggressively
The reason we had to revert jupyterhub#3228 was that the image cache was growing big, and so was the buildkit cache. So this meant images were being stored in *three* places: 1. the buildkit cache (dind) 2. the image cache (dind) 3. the containerd store (by kubernetes, when it pulls) 1 and 2 were both set to about 300, so this caused the disk to fill up. Here, I more aggressively prune the image cache, as it is simply not used when buildkit is used. Once I verify this works ok, I'll turn on buildkit building again and we see how it goes.
1 parent 014e118 commit ca8663b

File tree

4 files changed

+0
-25
lines changed

4 files changed

+0
-25
lines changed

config/curvenote.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,6 @@ binderhub:
188188
# # maxAge: 1 hour since we're just testing
189189
# maxAge: 3600
190190

191-
imageCleaner:
192-
# TODO: priorityClassName: binderhub-core
193-
enabled: true
194-
# Use 40GB as upper limit, size is given in bytes
195-
imageGCThresholdHigh: 40e9
196-
imageGCThresholdLow: 30e9
197-
imageGCThresholdType: "absolute"
198191

199192
cryptnono:
200193
enabled: true

config/hetzner-2i2c-bare.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,6 @@ binderhub:
103103
hosts:
104104
- hub.2i2c-bare.mybinder.org
105105

106-
imageCleaner:
107-
# Use 300GB as upper limit, size is given in bytes
108-
imageGCThresholdHigh: 300e9
109-
imageGCThresholdLow: 100e9
110-
imageGCThresholdType: "absolute"
111-
# don't cordon single-node cluster while cleaning
112-
cordon: false
113-
114106
grafana:
115107
ingress:
116108
hosts:

config/hetzner-2i2c.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ binderhub:
9797
- hub.2i2c.mybinder.org
9898

9999
imageCleaner:
100-
# Use 300GB as upper limit, size is given in bytes
101-
imageGCThresholdHigh: 300e9
102-
imageGCThresholdLow: 100e9
103-
imageGCThresholdType: "absolute"
104100
# don't cordon single-node cluster while cleaning
105101
cordon: false
106102

config/ovh2.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,6 @@ binderhub:
8585
userScheduler:
8686
nodeSelector: *coreNodeSelector
8787

88-
imageCleaner:
89-
# Use 40GB as upper limit, size is given in bytes
90-
imageGCThresholdHigh: 40e9
91-
imageGCThresholdLow: 30e9
92-
imageGCThresholdType: "absolute"
93-
9488
grafana:
9589
nodeSelector: *coreNodeSelector
9690
ingress:

0 commit comments

Comments
 (0)