Skip to content

Commit 1e21390

Browse files
authored
[fix] Bind Mooncake master RPC to configured host (Ascend#136)
This PR updates Mooncake bootstrap to pass the host from `master_server_address` into `mooncake_master` via `--rpc_address`, in addition to the existing `--rpc_port`. This fixes IPv6 deployments where mooncake_master previously bound RPC to the default `0.0.0.0`, while clients connected through the IPv6 host configured in `master_server_address`, causing connection refused errors. Signed-off-by: 0oshowero0 <o0shower0o@outlook.com>
1 parent 7264205 commit 1e21390

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

transfer_queue/storage/bootstrap/mooncake_bootstrap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def initialize_mooncake_storage(conf: DictConfig) -> subprocess.Popen | dict | N
100100
f"Host and port are required (e.g., host:port)."
101101
)
102102

103+
master_server_host = master_server_parsed.hostname
103104
master_server_port = str(master_server_parsed.port)
104105

105106
# Read offload configuration from config
@@ -112,6 +113,7 @@ def initialize_mooncake_storage(conf: DictConfig) -> subprocess.Popen | dict | N
112113
"-default_kv_lease_ttl=999999",
113114
"-default_kv_soft_pin_ttl=999999",
114115
"--allow_evict_soft_pinned_objects=false",
116+
f"--rpc_address={master_server_host}",
115117
f"--rpc_port={master_server_port}",
116118
]
117119

0 commit comments

Comments
 (0)