https://dagster.io/ logo
#dagster-kubernetes
Title
# dagster-kubernetes
m

marcos

01/31/2023, 7:38 PM
Has anyone deploying open source Dagster on kubernetes had to deal with increasing shared memory size (shm) of the job container? I am using GKE with the helm chart and figuring out where to pass through values to increase the
shm
size.
a

Andrea Giardini

01/31/2023, 7:40 PM
Here you go:
Copy code
extra_tags["dagster-k8s/config"]["pod_spec_config"]["volumes"] = [
            {
                "name": "shm-volume",
                "empty_dir": {"medium": "Memory", "size_limit": "10Gi"},
            }
        ]
        extra_tags["dagster-k8s/config"]["container_config"] = {
            "resources": {
                "limits": {"<http://nvidia.com/gpu|nvidia.com/gpu>": "1"},
            },
            "volume_mounts": [{"mountPath": "/dev/shm", "name": "shm-volume"}],
        }
🥳 1
m

marcos

01/31/2023, 7:40 PM
@Andrea Giardini you saved me so much time! Thank you
🎉 1
s

Sean Han

03/07/2023, 12:54 AM
Thanks a lot from 1 month later, it is useful for me as well!
🎉 1
a

Andrea Giardini

03/07/2023, 7:37 PM
Happy to hear. @daniel do we have a place to put these kinds of snippets? An example section in the docs or something like that maybe?
d

daniel

03/07/2023, 7:38 PM
My default for useful snippets that don't necessarily fit naturally into the docs is to make a Github discussion and answer it
These are also searchable at discuss.dagster.io although the UI is a bit clunky
a

Andrea Giardini

03/07/2023, 7:38 PM
That’s a good suggestion. I will do that
4 Views