def _get_connection_details(self) -> ConnectionDetails: """ Gets the coordinates on how to connect to cluster frontend node. """ assert self.ready, "Cluster is not ready, cannot get connection details" return ConnectionDetails( user_name=self.config["auth"]["ssh_user"], key_file=self.config["auth"]["ssh_private_key"], address=get_head_node_ip(self.config_file, override_cluster_name=None), )
def get_head_ip(cluster_config_file, cluster_name): """Return the head node IP of a Ray cluster.""" click.echo(get_head_node_ip(cluster_config_file, cluster_name))
def get_head_ip(cluster_config_file, cluster_name): click.echo(get_head_node_ip(cluster_config_file, cluster_name))
def get_head_ip(cluster_config_file): click.echo(get_head_node_ip(cluster_config_file))