Skip to content

Pause LMCache mutations after replica transport failures - #3443

Open
matrixarkai wants to merge 1 commit into
codex/lmcache-inventory-startup-retryfrom
codex/lmcache-replica-write-cooldown
Open

matrixarkai wants to merge 1 commit into
codex/lmcache-inventory-startup-retryfrom
codex/lmcache-replica-write-cooldown

Conversation

@matrixarkai

Copy link
Copy Markdown
Owner

Changes

  • Pause remote replica mutations for one second after transport failure. A healthy replica keeps serving requests independently.
  • Distinguish an unsent batch from a batch with no confirmed receipt. Unsent payloads consume no recovery capacity. Potentially written payloads remain charged until resolved.
  • Report write availability in the adapter status.

Local WSL validation

  • All 33 Python tests passed.
  • With 12 queued store batches and an injected 40 ms delay per attempt at a disconnected replica, mutation attempts fell from 24 to one. The failed replica's queue drained in 0.35 seconds instead of 8.20 seconds. The healthy replica accepted all 96 writes.
  • A CPU vLLM worker stored 12 new KV chunks on the healthy replica during the outage. After reconnecting, two new chunks were stored on both replicas. The restored replica alone served those two chunks on replay, and the vLLM output matched.
  • Across two healthy 12,288-block runs, store p95 was 61–71 ms before and 64–73 ms with the change. Sampled adapter peak PSS during store was about 571 MiB in all four runs.

Builds on #3442.

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