mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 07:34:30 +08:00
Don't use 127.0.0.1 for local ip address. (#1596)
* Don't use 127.0.0.1 for ip address. * Update test
This commit is contained in:
committed by
Philipp Moritz
parent
d3e974a9a4
commit
0fc989c6c1
@@ -1365,9 +1365,8 @@ def _init(address_info=None,
|
||||
# In this case, we launch a scheduler, a new object store, and some
|
||||
# workers, and we connect to them. We do not launch any processes that
|
||||
# are already registered in address_info.
|
||||
# Use the address 127.0.0.1 in local mode.
|
||||
node_ip_address = ("127.0.0.1" if node_ip_address is None
|
||||
else node_ip_address)
|
||||
if node_ip_address is None:
|
||||
node_ip_address = ray.services.get_node_ip_address()
|
||||
# Use 1 local scheduler if num_local_schedulers is not provided. If
|
||||
# existing local schedulers are provided, use that count as
|
||||
# num_local_schedulers.
|
||||
|
||||
Reference in New Issue
Block a user