Seeing logs of dask workers

别来无恙 提交于 2020-05-30 10:13:17

问题


I'm having trouble changing the temporary directory in Dask. When I change the temporary-directory in dask.yaml for some reason Dask is still writing out in /tmp (which is full). I now want to try and debug this, but when I use client.get_worker_logs() I only get INFO output.

I start my cluster with

from dask.distributed import LocalCluster, Client

cluster = LocalCluster(n_workers=1, threads_per_worker=4, memory_limit='10gb')

client = Client(cluster)

I already tried adding distributed.worker: debug to the distributed.yaml, but this doesn't change the output. I also check I am actually changing the configuration by calling dask.config.get('distributed.logging')

What am I doing wrong?


回答1:


By default LocalCluster silences most logging. Try passing the silence_logs=False keyword

cluster = LocalCluster(..., silence_logs=False)


来源:https://stackoverflow.com/questions/58014417/seeing-logs-of-dask-workers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!