Created
March 30, 2020 18:39
-
-
Save jhamman/9c3ac0f196f9cc406a3c790a95136f23 to your computer and use it in GitHub Desktop.
dask_k8s.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
containers = [ | |
{ | |
"args": [ | |
"dask-worker", "--nthreads", "1", | |
"--memory-limit", "14GB", | |
], | |
"resources": { | |
"limits": {"cpu": 1, "memory": "14G"}, | |
"requests": {"cpu": 1, "memory": "14G"}, | |
}, | |
} | |
] | |
dask.config.set(**{"kubernetes.worker-template.spec.containers": containers}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment