Sean Harkins
03/30/2021, 7:43 PMDaskExecutor
is dynamically creating these temporary clusters https://github.com/PrefectHQ/prefect/blob/05cac2372c57a93ea72b05e7c844b1e115c01047/src/prefect/executors/dask.py#L213 on a per flow basis so I’m unsure how I can obtain the scheduler’s address (and dashboard link) without some hook here in the Prefect code?
In an ideal world I would like to have the Dask scheduler’s public address and dashboard link reported as part of the Flow logs in Prefect UI. Any suggestions are greatly appreciated.Jim Crist-Harif
03/30/2021, 8:18 PMdistributed.dashboard.link
(https://docs.dask.org/en/latest/configuration-reference.html#distributed.dashboard.link) which can template that out. If you're fine setting that up properly, then I'd be happy to add a log line with the dashboard link during dask executor startup.Sean Harkins
03/30/2021, 9:05 PMhost
information used here. I believe the scheduler.address will report the host
from the private subnet range https://github.com/dask/distributed/pull/3429/files. For example, my scheduler logs show the private ip rather than the public ENI.
distributed.scheduler - INFO - Scheduler at: <tcp://10.0.115.40:8786>
distributed.scheduler - INFO - dashboard at: :8787
I guess this might be a deeper question on how to report the public ip for the container where the scheduler is running rather than it’s private ip.Jim Crist-Harif
03/30/2021, 9:09 PMSean Harkins
03/30/2021, 9:12 PMdask.config.set({"distributed.dashboard.link": "http://{host}:{port}/status"})
won’t my resulting dashboard_link be <http://10.0.114.40:8786/status>
?Jim Crist-Harif
03/30/2021, 9:14 PMSean Harkins
03/30/2021, 9:23 PMSean Harkins
03/30/2021, 9:42 PMdask-cloudprovider
in more detail, it looks like much of this logic is already handled. https://github.com/dask/dask-cloudprovider/blob/main/dask_cloudprovider/aws/ecs.py#L190-L213 But given this, you should be able to use dashboard_link
and assume the correct address. Where would this be logged? In the Flow log directly?Jim Crist-Harif
03/30/2021, 9:42 PMSean Harkins
03/30/2021, 9:43 PMSean Harkins
04/01/2021, 1:45 AMJim Crist-Harif
04/01/2021, 1:54 AMSean Harkins
04/01/2021, 1:56 AMpangeo-forge
for context.Jim Crist-Harif
04/01/2021, 2:01 AMJim Crist-Harif
04/01/2021, 2:01 AMMarvin
04/01/2021, 2:02 AMJim Crist-Harif
04/01/2021, 2:03 AM