Skip to content

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

Closed

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?

Activity

  1. guillaumeeb commented on Dec 7, 2018

    @guillaumeeb
    Member

    I think you can specify Scheduler interface by using ip kwarg, and then interface will only apply to worker. So something like

    cluster = SlurmCluster(..., ip=ib0schedulerIP, interface='ib1')

    But Scheduler needs to listen on the good interface.

    Another option may be to make Scheduler listen on every interface using ip='' IIRC.

  2. guillaumeeb commented on Jan 14, 2019

    @guillaumeeb
    Member

    @ogrisel I'm closing this as I believe you should be able to make it work with my first answer. Feel free to reopen if it does not work.

  3. jernsting commented on Dec 16, 2019

    @jernsting

    This seems to be still a problem for me. The usage of the ip= parameter is not working in my setup. The ip address in the SLURMCluster() address is still the same.

  4. lesteve commented on Dec 17, 2019

    @lesteve
    Member

    Which version of dask-jobqueue are you using? If you are using dask-jobqueue 0.7, you may want to try using host instead of ip:

    cluster = SLURMCluster(..., host=ib0schedulerIP, interface='ib1')
  5. MaximilianHoffmann commented on May 31, 2020

    @MaximilianHoffmann

    I have a related problem?

    cluster = SLURMCluster(n_workers=100,cores=24,
                           processes=1,
                           memory="64GB", host="172.16.59.141"   ,walltime="04:00:00", interface='em1')
    

    results in

    ValueError: interface 'em1' doesn't have an IPv4 address
    
  6. lesteve commented on Jun 1, 2020

    @lesteve
    Member

    If you install the development version of Dask-Jobqueue you can specify a different interface for the Dask workers and the Dask scheduler using something like #382 (comment).

    If you still have a problem with IPv4, please open a separate issue with the full stack-trace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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