Skip to content

Make it possible to configure different interfaces for scheduler and workers #207

Description

@ogrisel

I am using creating SLURMCluster(cores=8, memory="24 GB", interface="ib0") on the cluster front node that has an infiniband with IPv4 address on ib0. However I cannot create workers with scale as the ib0 interface on the worker nodes have no IPv4 addresses:

Traceback (most recent call last):
  File "/scratch/ogrisel/miniconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/scratch/ogrisel/miniconda3/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/scratch/ogrisel/miniconda3/lib/python3.7/site-packages/distributed/cli/dask_worker.py", line 259, in <module>
    go()
  File "/scratch/ogrisel/miniconda3/lib/python3.7/site-packages/distributed/cli/dask_worker.py", line 255, in go
    main()
  File "/scratch/ogrisel/miniconda3/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/scratch/ogrisel/miniconda3/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/scratch/ogrisel/miniconda3/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/scratch/ogrisel/miniconda3/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/scratch/ogrisel/miniconda3/lib/python3.7/site-packages/distributed/cli/dask_worker.py", line 206, in main
    host = get_ip_interface(interface)
  File "/scratch/ogrisel/miniconda3/lib/python3.7/site-packages/distributed/utils.py", line 169, in get_ip_interface
    raise ValueError("interface %r doesn't have an IPv4 address" % (ifname,))
ValueError: interface 'ib0' doesn't have an IPv4 address

However those worker nodes have a working IPv4 address on interface ib1.

Would it be possible to configure different interfaces for the workers and the scheduler?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions