Skip to content

Instantly share code, notes, and snippets.

@jhamman
Last active March 30, 2020 18:45
Show Gist options
  • Save jhamman/091347b1c8d48da6e7894b155b29d9ef to your computer and use it in GitHub Desktop.
Save jhamman/091347b1c8d48da6e7894b155b29d9ef to your computer and use it in GitHub Desktop.
dask_gateway_2.py
from dask.distributed import Client
from dask_kubernetes import KubeCluster
cluster = KubeCluster() # create cluster
cluster.scale(...) # scale cluster
client = Client(cluster) # connect Client to Cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment