Migrate the loaders from the tmpfs workaround to a real in memory emptydir
the emptyDir can be be backed by in-memory storage: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir
IIRC, the feature was not available when we started deploying on kube so we used the local-storage using a tmpfs as a workaround.
The result is the space used by a local-persistent volume is not visible in the pod properties and not easily tunable.
Using this kind of in-memory ephemeral volumes will allow to manage more precisely the space allocation of the loaders and more importantly to have a clear vision of the resource consumption of the pods (it's considered as memory consumption).
Designs
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Vincent Sellier changed title from migrating the loader from tmpfs workaround to a real in memory emptydir to Migrate the loaders from the tmpfs workaround to a real in memory emptydir
changed title from migrating the loader from tmpfs workaround to a real in memory emptydir to Migrate the loaders from the tmpfs workaround to a real in memory emptydir
- Guillaume Samson assigned to @guillaume
assigned to @guillaume
- Antoine R. Dumont changed the description
changed the description
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@cd468fe9
mentioned in commit swh/infra/ci-cd/swh-charts@cd468fe9
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@efc4afb9
mentioned in commit swh/infra/ci-cd/swh-charts@efc4afb9
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@1ebd7ca8
mentioned in commit swh/infra/ci-cd/swh-charts@1ebd7ca8
- Guillaume Samson mentioned in merge request swh/infra/ci-cd/swh-charts!507 (merged)
mentioned in merge request swh/infra/ci-cd/swh-charts!507 (merged)
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@fa02d79f
mentioned in commit swh/infra/ci-cd/swh-charts@fa02d79f
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@ed56ed34
mentioned in commit swh/infra/ci-cd/swh-charts@ed56ed34
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@a36e491b
mentioned in commit swh/infra/ci-cd/swh-charts@a36e491b
- Owner
The new tmp volume are deployed on the
add-forge-now
loaders in staging environment.
Two afn requests have been processed successfully.
The/tmp
partition is space limited:ᐅ for afn in $(kbs get po -n swh-cassandra -l app=loader-add-forge-now | awk 'NR>1{print $1}') do echo $afn ; kbs exec $afn -n swh-cassandra -c loaders -- df -hT /tmp;done loader-add-forge-now-6696b45587-mlhj2 Filesystem Type Size Used Avail Use% Mounted on tmpfs tmpfs 5.0G 4.0K 5.0G 1% /tmp loader-add-forge-now-6696b45587-n8lvk Filesystem Type Size Used Avail Use% Mounted on tmpfs tmpfs 5.0G 4.0K 5.0G 1% /tmp loader-add-forge-now-6696b45587-wlct4 Filesystem Type Size Used Avail Use% Mounted on tmpfs tmpfs 5.0G 4.0K 5.0G 1% /tmp
1 - Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@1cf54d2a
mentioned in commit swh/infra/ci-cd/swh-charts@1cf54d2a
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@50010c7c
mentioned in commit swh/infra/ci-cd/swh-charts@50010c7c
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@50010c7c
mentioned in commit swh/infra/ci-cd/swh-charts@50010c7c
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@c0624418
mentioned in commit swh/infra/ci-cd/swh-charts@c0624418
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@5d4087be
mentioned in commit swh/infra/ci-cd/swh-charts@5d4087be
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@a638ce27
mentioned in commit swh/infra/ci-cd/swh-charts@a638ce27
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@a638ce27
mentioned in commit swh/infra/ci-cd/swh-charts@a638ce27
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@ba0dbf4e
mentioned in commit swh/infra/ci-cd/swh-charts@ba0dbf4e
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@ba0dbf4e
mentioned in commit swh/infra/ci-cd/swh-charts@ba0dbf4e
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@5af18ffc
mentioned in commit swh/infra/ci-cd/swh-charts@5af18ffc
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@854e4a6a
mentioned in commit swh/infra/ci-cd/swh-charts@854e4a6a
- Owner
Here is the loaders memory usage of the last 7 days in staging:
Here are the loaders configurations:
ᐅ awk 'NR==141||NR>140&&NR<489&&(/^\s{2,4}[a-z-]+:$/|| /limitedMemory|tmpEphemeralStorage|sizeLimit/||/^\s{6}enabled/)' \ swh/values/staging/swh-cassandra.yaml loaders: deployments: add-forge-now: limitedMemory: 10Gi tmpEphemeralStorage: sizeLimit: 5Gi add-forge-now-slow: limitedMemory: 10Gi tmpEphemeralStorage: sizeLimit: 5Gi arch: enabled: false [...] pubdev: enabled: false rpm: enabled: false save-bulk: svn: limitedMemory: 25Gi tmpEphemeralStorage: sizeLimit: 15Gi
I forgot to modify the save-bulk loader.
Edited by Guillaume Samson - Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@7a285c19
mentioned in commit swh/infra/ci-cd/swh-charts@7a285c19
- Owner
Here are the loaders configurations:
ᐅ awk 'NR==141||NR>140&&NR<494&&(/^\s{2,4}[a-z-]+:$/|| /limitedMemory|tmpEphemeralStorage|sizeLimit/||/^\s{6}enabled/)' \ swh/values/staging/swh-cassandra.yaml loaders: deployments: add-forge-now: limitedMemory: 10Gi tmpEphemeralStorage: sizeLimit: 5Gi add-forge-now-slow: limitedMemory: 10Gi tmpEphemeralStorage: sizeLimit: 5Gi arch: enabled: false aur: enabled: false archive: enabled: false bioconductor: enabled: false bzr: enabled: false cran: enabled: false cvs: limitedMemory: 8Gi tmpEphemeralStorage: sizeLimit: 5Gi content: enabled: false directory: enabled: false git: limitedMemory: 20Gi tmpEphemeralStorage: sizeLimit: 15Gi git-checkout: limitedMemory: 8Gi tmpEphemeralStorage: sizeLimit: 5Gi hg-checkout: enabled: false svn-export: enabled: false limitedMemory: 1Gi debian: enabled: false deposit: limitedMemory: 18Gi tmpEphemeralStorage: sizeLimit: 15Gi golang: enabled: false save-code-now: limitedMemory: 15Gi tmpEphemeralStorage: sizeLimit: 10Gi maven: enabled: false mercurial: enabled: false npm: enabled: false oneshot: limitedMemory: 25Gi tmpEphemeralStorage: sizeLimit: 15Gi opam: enabled: false pypi: enabled: false pubdev: enabled: false rpm: enabled: false save-bulk: limitedMemory: 15Gi tmpEphemeralStorage: sizeLimit: 10Gi svn: limitedMemory: 25Gi tmpEphemeralStorage: sizeLimit: 15Gi
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@283ffd9f
mentioned in commit swh/infra/ci-cd/swh-charts@283ffd9f
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@d01ca268
mentioned in commit swh/infra/ci-cd/swh-charts@d01ca268
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@3a692d96
mentioned in commit swh/infra/ci-cd/swh-charts@3a692d96
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@3fc88c7c
mentioned in commit swh/infra/ci-cd/swh-charts@3fc88c7c
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@08adee70
mentioned in commit swh/infra/ci-cd/swh-charts@08adee70
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@3f1d06b1
mentioned in commit swh/infra/ci-cd/swh-charts@3f1d06b1
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@414e16e9
mentioned in commit swh/infra/ci-cd/swh-charts@414e16e9
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@651d3539
mentioned in commit swh/infra/ci-cd/swh-charts@651d3539
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@9efd7e44
mentioned in commit swh/infra/ci-cd/swh-charts@9efd7e44
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@f55c0cf7
mentioned in commit swh/infra/ci-cd/swh-charts@f55c0cf7
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@29832c1d
mentioned in commit swh/infra/ci-cd/swh-charts@29832c1d
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@0acc5bb5
mentioned in commit swh/infra/ci-cd/swh-charts@0acc5bb5
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@0caa15fc
mentioned in commit swh/infra/ci-cd/swh-charts@0caa15fc
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@ba20dea7
mentioned in commit swh/infra/ci-cd/swh-charts@ba20dea7
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@b2f98c02
mentioned in commit swh/infra/ci-cd/swh-charts@b2f98c02
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@62843d8a
mentioned in commit swh/infra/ci-cd/swh-charts@62843d8a
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@94fbc32c
mentioned in commit swh/infra/ci-cd/swh-charts@94fbc32c
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@c3a520df
mentioned in commit swh/infra/ci-cd/swh-charts@c3a520df
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@f9168a05
mentioned in commit swh/infra/ci-cd/swh-charts@f9168a05
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@dfcf6345
mentioned in commit swh/infra/ci-cd/swh-charts@dfcf6345
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@140653a3
mentioned in commit swh/infra/ci-cd/swh-charts@140653a3
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@a3f13347
mentioned in commit swh/infra/ci-cd/swh-charts@a3f13347
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@7330bce7
mentioned in commit swh/infra/ci-cd/swh-charts@7330bce7
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@c57e87f3
mentioned in commit swh/infra/ci-cd/swh-charts@c57e87f3
- Guillaume Samson mentioned in commit swh/infra/ci-cd/swh-charts@a4ead7d9
mentioned in commit swh/infra/ci-cd/swh-charts@a4ead7d9