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:
Robert Nishihara
2018-04-02 00:34:20 -07:00
committed by Philipp Moritz
parent d3e974a9a4
commit 0fc989c6c1
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -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.