Skip to content

Recover LMCache inventory after a replica returns - #3442

Open
matrixarkai wants to merge 1 commit into
codex/lmcache-batch-store-rollbackfrom
codex/lmcache-inventory-startup-retry
Open

matrixarkai wants to merge 1 commit into
codex/lmcache-batch-store-rollbackfrom
codex/lmcache-inventory-startup-retry

Conversation

@matrixarkai

Copy link
Copy Markdown
Owner

Changes

  • Allow LMCache to start after a temporary transport failure during the initial inventory scan. Retry that datanode in the background and expose readiness in the adapter status.
  • Treat reads as misses and decline writes and deletes until the full inventory has been counted. A returning datanode rejoins without restarting LMCache.
  • Report an unsupported inventory endpoint as a configuration error.

Local WSL validation

  • All 31 adapter and blob tests passed.
  • Two datanodes retained 144 MiB each from eight CPU vLLM prompts. LMCache started in 4.28 seconds with one datanode disconnected. The surviving datanode served all eight expected L2 chunks.
  • After reconnecting the second datanode, it recovered 144 MiB in 1.60 seconds. The original datanode was then disconnected, and the returned datanode served all eight expected chunks. The vLLM results matched the cold outputs.
  • A separate restart loaded 98,304 retained blobs across 24 clients and three datanodes in 3.43 seconds. Every payload matched, and eviction preserved the full capacity limit.
  • LMCache stayed live during startup with both inventory endpoints offline. An adapter waiting for a datanode also shut down cleanly.

Builds on #3441.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants