mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[PR #1326] [MERGED] [Store][Feature]: add task manager component #2160
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#2160
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/1326
Author: @zhongzhouTan-coder
Created: 1/5/2026
Status: ✅ Merged
Merged: 1/7/2026
Merged by: @stmatengss
Base:
main← Head:feature/task-manager📝 Commits (10+)
2c53b9b[Store]: initialize the basic task data structureb4d39a7[Store]: implement the task managerb15ad60[Store]: change the mutex to custom mutext26a8fd9[Store]: implement copy and move, query task api7dec5a0[Store]: change the task manager lock to be sharedf219b3b[Store]: change the task to struct when submit078aacc[Store]: add fetch tasks api4cb60be[Store]: add metrics for query and fetch task apib533286[Store]: add update task status apicad1934[Store]: rename the updateTask api and add pending and processing task limit📊 Changes
31 files changed (+2441 additions, -52 deletions)
View changed files
📝
mooncake-integration/store/store_py.cpp(+104 -1)📝
mooncake-store/include/client_service.h(+48 -0)📝
mooncake-store/include/dummy_client.h(+9 -0)📝
mooncake-store/include/master_client.h(+50 -0)📝
mooncake-store/include/master_config.h(+110 -1)📝
mooncake-store/include/master_metric_manager.h(+36 -0)📝
mooncake-store/include/master_service.h(+71 -1)📝
mooncake-store/include/pyclient.h(+10 -0)📝
mooncake-store/include/real_client.h(+32 -0)📝
mooncake-store/include/rpc_service.h(+14 -0)📝
mooncake-store/include/rpc_types.h(+67 -1)📝
mooncake-store/include/segment.h(+11 -1)➕
mooncake-store/include/task_manager.h(+234 -0)📝
mooncake-store/include/types.h(+14 -0)📝
mooncake-store/include/utils.h(+0 -1)📝
mooncake-store/src/CMakeLists.txt(+1 -0)📝
mooncake-store/src/client_service.cpp(+26 -0)📝
mooncake-store/src/dummy_client.cpp(+16 -0)📝
mooncake-store/src/master.cpp(+101 -40)📝
mooncake-store/src/master_client.cpp(+81 -0)...and 11 more files
📄 Description
Description
For the review purpose, we just split the large pr to three small pr.
refer to the origin pr: https://github.com/kvcache-ai/Mooncake/pull/1278
In order to support the dynamic replica adjustment, we need to support replica move and copy first, so we implement the basic replica copy and move features.
The detailed architecture design in the RFC: https://github.com/kvcache-ai/Mooncake/issues/1159
Features in this pr:
create_copy_taskapi to create copy taskcreate_move_taskapi to create move taskquery_taskapi to monitor task statusfetchTasksapi for client to poll tasksmarkTaskToCompleteapi for client to report task statusType of Change
How Has This Been Tested?
Checklist
Co-authors
Co-authored-by: Chen Jinlong chenjinlong.cjl@alibaba-inc.com
Co-authored-by: Vincent Gao vincentbo@linux.alibaba.com
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.