mirror of
https://github.com/wassname/ray.git
synced 2026-09-10 12:38:43 +08:00
change kubernetes examples to use Deployment (#3909)
This commit is contained in:
committed by
Robert Nishihara
parent
d06d9fc5d7
commit
8f6bd6cece
@@ -9,7 +9,9 @@ import time
|
||||
import ray
|
||||
|
||||
if __name__ == "__main__":
|
||||
ray.init(redis_address="{}:6379".format(socket.gethostbyname("ray-head")))
|
||||
# Note that if you run this script on a non-head node, then you must
|
||||
# replace "localhost" with socket.gethostbyname("ray-head").
|
||||
ray.init(redis_address="localhost:6379")
|
||||
|
||||
# Wait for all 4 nodes to join the cluster.
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user