How do I start a ray head on a cluster?

I have a cluster without kubernetes, and it works with an nginx elb, like everytime I start an HTTP server, I start its copy on each VM and then update my nginx.conf to balance them. But how do I do that for a ray head? When I start ray heads on different VMs, the nginx elb will lead the works to different ray heads and they cannot find each other.