mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[GH-ISSUE #2514] [Usage]: Inconsistent cluster_id default between master and store client #666
Labels
No labels
ascend
auto-closed
bug
bug
CI/Build
Common
documentation
enhancement
feature request
good first issue
help wanted
high priority
MetaX
nightly-failure
pull-request
PyTorch Backend
question
RFC
Roadmap
stale
Store
Tests
Transfer Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/Mooncake#666
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mzygQAQ on GitHub (Jun 17, 2026).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/2514
Originally assigned to: @mzygQAQ on GitHub.
Describe your usage question
When starting mooncake_master without --cluster_id and without MC_STORE_CLUSTER_ID env var, the master registers in etcd with key:
However, when mooncake_store_service.py (the Python store service with REST API) starts in HA mode, it fails with:
The expected key uses "mooncake_cluster" as the cluster_id (matching DEFAULT_CLUSTER_ID = "mooncake_cluster" in types.h), but the client is looking up "mooncake" instead.
Checking the installed Python extension by pip3:
Note: The static library built from current HEAD:
The current source code has DEFAULT_CLUSTER_ID = "mooncake_cluster" (types.h:106), and the static library built from the same source correctly contains "mooncake_cluster". But the installed wheel's store.so does NOT contain
"mooncake_cluster" - only "mooncake" and "mooncake-store/".
This suggests the installed Python wheel was built from an older version where DEFAULT_CLUSTER_ID was just "mooncake" (without "_cluster"). Could you confirm what the correct DEFAULT_CLUSTER_ID should be and whether a new wheel
should be published?
Before submitting a new issue...
@github-actions[bot] commented on GitHub (Jun 17, 2026):
Thanks for opening this issue, @mzygQAQ!
30590325A maintainer will triage this when possible. To help us respond faster, please include:
Useful links: Documentation · Contributing guide
@mzygQAQ commented on GitHub (Jun 18, 2026):
@Icedcoco commented on GitHub (Jun 18, 2026):
Thanks for the detailed check. Your analysis looks right.
The intended default
cluster_idismooncake_cluster, matchingDEFAULT_CLUSTER_IDintypes.h. The mismatch you observed is caused by the released wheelmooncake-transfer-engine-non-cuda 0.3.11.post1still using the older client-side fallback valuemooncake.This has already been fixed on
mainby #2244, which changed the HA client fallback to useDEFAULT_CLUSTER_IDinstead of the hardcodedmooncake. A new wheel should be published to include this fix.Before the new wheel is available, the workaround is to set the cluster id explicitly on both master and client side, for example:
or pass the equivalent
--cluster_id=mooncake_clusterwhen startingmooncake_master.With both sides using the same
cluster_id, the client should look upmooncake-store/mooncake_cluster/master_viewand discover the HA master correctly.@mzygQAQ commented on GitHub (Jun 18, 2026):
thanks !