How to get head node id

How can I get the head node id? I noticed there is a github issue for this, but not sure if there is any workaround.

The best way you can do is to get the head node IP (usually a driver IP) and call ray.experimental.state.api.list_nodes() and find the matching node_id for the node ip

1 Like