-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DaskKubernetesEnvironment expose dask scheduler dashboard #3412
Comments
I think you're missing a space in the above, should be If that doesn't work we'll need to delve deeper, but I think that should fix it. |
thanks @jcrist that was definitely wrong. Unfortunately it didn't solve the problem: no service was created, so no loadbalancer with externalIP to connect to. Any ideas of what I could try next? |
Hmmm, I'm not sure. My first guess is that the config isn't being set properly, and so isn't picked up by the job that creates the cluster. You might debug this by adding an def on_start():
# log things of interest here.
# untested, and you might want to log more stuff here, not sure
import os
import dask.config
from prefect.utilities.logging import get_logger
logger = get_logger()
dask_envs = [k for k in os.environ if k.startswith("DASK")]
logger.info("Dask environment vars: %s", dask_envs)
logger.info("Dask kubernetes config: %s", dask.config.get("kubernetes"))
flow.environment.on_start = on_start |
Closing as stale. Note that |
Current behavior
DaskKubernetesEnvironment
doesn't expose the dask scheduler dashboard.Proposed behavior
Exposing the dashboard is very useful for debugging and checking the cluster status.
dask-kubernetes
allows this to happen by settingdask.config.set({"kubernetes.scheduler-service-type": "LoadBalancer"})
. It creates a service for clients and workers to connect to (dask/dask-kubernetes#259 (comment)).In
DaskKubernetesEnvironment:scheduler_spec_file
I do the following:Doesn't work because no LoadBalancer service gets created.
The text was updated successfully, but these errors were encountered: