Beispiel #1
0
def setup_address():
    ip = ray.util.get_node_ip_address()
    port = find_free_port()
    return f"tcp://{ip}:{port}"
Beispiel #2
0
def get_address_and_port() -> Tuple[str, int]:
    """Returns the IP address and a free port on this node."""
    addr = ray.util.get_node_ip_address()
    port = find_free_port()

    return addr, port
Beispiel #3
0
 def find_free_port(self):
     """Finds a free port on the current node."""
     return find_free_port()