mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[PR #287] [MERGED] Add LRU in MasterService, complexity O(1) #1452
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#1452
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/287
Author: @zhaoyongke
Created: 4/23/2025
Status: ✅ Merged
Merged: 5/15/2025
Merged by: @xiaguan
Base:
main← Head:main📝 Commits (10+)
00c660aFix nvmeof build issuefb71e56Merge branch 'kvcache-ai:main' into main16d6f17Merge branch 'kvcache-ai:main' into main731d23eAdd LRU in Master Service, complexity O(1)b9a348bMove Macros to CMake Optionse86054afix lru build options14af70cNow we can setup LRU_MAX_CAPACITY with cmake commands8492d1fRefactoring LRU to EvictionStrategy Class7d2f451Add tests of eviction strategyae3d416fix build issues📊 Changes
10 files changed (+280 additions, -3 deletions)
View changed files
📝
CMakeLists.txt(+1 -1)📝
mooncake-common/common.cmake(+10 -0)➕
mooncake-store/include/eviction_strategy.h(+99 -0)📝
mooncake-store/include/master_metric_manager.h(+1 -0)📝
mooncake-store/include/master_service.h(+5 -0)📝
mooncake-store/src/master_metric_manager.cpp(+6 -0)📝
mooncake-store/src/master_service.cpp(+20 -1)📝
mooncake-store/tests/CMakeLists.txt(+4 -0)➕
mooncake-store/tests/eviction_strategy_test.cpp(+134 -0)📝
mooncake-transfer-engine/CMakeLists.txt(+0 -1)📄 Description
We found mooncake store will discard all the put() requests after its capacity reaches the max. This case is not applicable in our online service. We solved this via LRU( Least Recently Used) algorithm.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.