I am using the batch processing example for PS 4.
I put the PS and a worker on two machines. I changed the os.environ[‘MASTER_ADDR’] = ‘localhost’
os.environ[‘MASTER_PORT’] = ‘29500’ to the machine with rank 0.
PS runs and waiting for worker. But the worker send an error:
Traceback (most recent call last):
File “/home/skh018/PycharmProjects/test_DDL_pytorch/worker1.py”, line 148, in 
run(1, world_size)
File “/home/skh018/PycharmProjects/test_DDL_pytorch/worker1.py”, line 124, in run
rpc.init_rpc(
File “/home/skh018/envs/test_DDL_pytorch/lib/python3.8/site-packages/torch/distributed/rpc/init.py”, line 90, in init_rpc
api._init_rpc_backend(backend, store, name, rank, world_size, rpc_backend_options)
File “/home/skh018/envs/test_DDL_pytorch/lib/python3.8/site-packages/torch/distributed/rpc/api.py”, line 293, in _init_rpc_backend
rpc_agent = backend_registry.init_backend(
File “/home/skh018/envs/test_DDL_pytorch/lib/python3.8/site-packages/torch/distributed/rpc/backend_registry.py”, line 94, in init_backend
return backend.value.init_backend_handler(*args, **kwargs)
File “/home/skh018/envs/test_DDL_pytorch/lib/python3.8/site-packages/torch/distributed/rpc/backend_registry.py”, line 194, in _tensorpipe_init_backend_handler
group = _init_process_group(store, rank, world_size)
File “/home/skh018/envs/test_DDL_pytorch/lib/python3.8/site-packages/torch/distributed/rpc/backend_registry.py”, line 117, in _init_process_group
group = dist.ProcessGroupGloo(store, rank, world_size, process_group_timeout)
RuntimeError: [/opt/conda/conda-bld/pytorch_1595629395347/work/third_party/gloo/gloo/transport/tcp/pair.cc:769] connect [127.0.1.1]:62374: Connection refused
I tried to specify the init_method to tcp in TensorPipeRPCBackendOption
But the error still there.