Skip to content

Feature request - Display worker names in the Dask web UI #4878

@simaster123

Description

@simaster123

@mrocklin recommended I raise this here. I asked on stackoverflow whether it is possible to display the worker names in the Dask web UI. As of right now, the workers are only listed by their IP addresses, not the names given to them, despite assigning names during their creation. Copied from my stackoverflow question (https://stackoverflow.com/questions/56299817/possible-to-display-worker-names-in-dask-web-ui/56418241#56418241):

When I create the workers (in a Python script), I do set the name:

import dask
import dask.dataframe as dd
from dask.distributed import Client as Dask_Client
from distributed import Worker

dask_client = Dask_Client('192.168.0.162:8786')
loop = IOLoop.current()
t = threading.Thread(target=loop.start, daemon=True)
t.start()
w = Worker('tcp://192.168.0.162:8786', loop=loop, name=socket.gethostname())
w.start()  

And the worker name does appear when I run print(json.dumps(dask_client.scheduler_info(), sort_keys=True, indent=4)) -- excerpt below:

"tcp://192.168.0.198:39619": {
      "host": "192.168.0.198",
      "id": "alana1",
      "last_seen": 1558707665.9223647,
      "local_directory": "[omitted]",
      "memory_limit": 8243511296,
      "metrics": {
          "cpu": 4.0,
          "executing": 0,
          "in_flight": 0,
          "in_memory": 330,
          "memory": 245129216,
          "num_fds": 26,
          "read_bytes": 3020.000227124918,
          "ready": 0,
          "time": 1558707665.9237077,
          "write_bytes": 3484.3077504469734
      },
      "name": "alana1",
      "ncores": 4,
      "resources": {},
      "services": {
          "bokeh": 37993,
          "nanny": 35817
      },
      "type": "Worker"

In the above example, I was hoping the name "alana1" would appear in the Dask web UI instead of what does appear: "tcp://192.168.0.198:39619"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions