mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[PR #1219] [CLOSED] [Store] Delete useless meta from http metadata server #2083
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#2083
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?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/Mooncake/pull/1219
Author: @stmatengss
Created: 12/16/2025
Status: ❌ Closed
Base:
main← Head:refactor_metadata_server📝 Commits (10+)
b56dbf2[Store] Delete useless meta from http metadata server0bc7cceupdate3a42c5bupdate158bc76Merge branch 'main' into refactor_metadata_servercddaafcupdate2a2b0a2Merge branch 'main' into refactor_metadata_servercea4970Merge branch 'main' into refactor_metadata_serverce80efa[Store] Optimize HTTP metadata server health checks (#1484)283ccd7[Store] Format code with clang-format-20 (#1489)abb53d4[Store] Remove trailing whitespace in rpc_service.cpp (#1490)📊 Changes
6 files changed (+170 additions, -40 deletions)
View changed files
📝
mooncake-store/include/http_metadata_server.h(+21 -0)📝
mooncake-store/include/master_config.h(+10 -0)📝
mooncake-store/include/rpc_service.h(+2 -0)📝
mooncake-store/src/http_metadata_server.cpp(+107 -0)📝
mooncake-store/src/master.cpp(+19 -40)📝
mooncake-store/src/rpc_service.cpp(+11 -0)📄 Description
Description
Adds periodic health monitoring to the HTTP metadata server to automatically clean up stale segment metadata. The HTTP metadata server is initialized after the
WrappedMasterServiceis created, allowing it to query segment status and remove metadata for segments that no longer exist.Key changes:
GetAllSegments()method toWrappedMasterServiceto expose segment information for health checksWrappedMasterServicecreation in the non-HA path, passing theshared_ptr<WrappedMasterService>directly for health monitoringHttpMetadataServerthat periodically (every 10 minutes) checks segments and cleans up metadata for segments that no longer existenable_http_metadata_server,http_metadata_server_port,http_metadata_server_host) toMasterServiceSupervisorConfigha_helperfiles (replaced by new HA backend abstraction), integrated with newshared_ptr-basedWrappedMasterService, and preserved new NoF segment methodsModule
mooncake-store)Type of Change
How Has This Been Tested?
Verified code compiles and passes
clang-format-20formatting checks.Checklist
./scripts/code_format.shbefore submitting.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.