Repository navigation
[Conductor] Add KV event manager and HTTP API - #4292
Merged
Merged
Conversation
Fifth slice of the Mooncake Conductor upstreaming series, on top of the zmq subscriber. Wires the ingest path into the prefix index and exposes the query surface, and produces the mooncake_conductor binary. Co-authored-by: Misak2333 <jzxscp173@163.com> Co-authored-by: Chase-Rong <lolopop.rong@gmail.com>
Accept named LoRA metadata and full-prefix MLA/sink attention events while retaining context, block-size, group and window guards. Co-authored-by: Misak2333 <jzxscp173@163.com> Co-authored-by: Chase-Rong <lolopop.rong@gmail.com>
Chase-Rong
self-requested a review
September 23, 2026 09:18
Represent cache presence and cumulative query results as npu, cpu_local, cpu_share, and disk, with a single advancing prefix cursor per rank. Replace the old gpu/cpu response fields, including rank_matches. Co-authored-by: Misak2333 <jzxscp173@163.com> Co-authored-by: Chase-Rong <lolopop.rong@gmail.com>
Collaborator
|
Thanks for this slice. The indexer restructuring (four storage tiers with nested cumulative-prefix query semantics), the handler lifecycle design ( |
… helpers Extract map lookup and scalar/array parsing into an internal reader shared by the vLLM, SGLang and Mooncake decoders. Co-authored-by: Misak2333 <jzxscp173@163.com> Co-authored-by: Chase-Rong <lolopop.rong@gmail.com>
Collaborator
|
LGTM. In the latest commit, an inconsistency caused by sglang changing |
Chase-Rong
approved these changes
Sep 29, 2026
8 of 36 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fifth slice of the Mooncake Conductor upstreaming series, on top of the zmq subscriber. Wires the ingest path into the prefix index and exposes the query surface, and produces the mooncake_conductor binary:
src/main.cpp: resolves the log level, parses the config, starts the manager and HTTP server, then waits for SIGINT/SIGTERM.
Two adaptations were needed against the merged common layer, both beyond the mechanical namespace nesting:
main.cpp consumed a LogLevel enum that no longer exists. [Build] conductor: build skeleton and common layer #3825 replaced it with LogLevelConfig, which already reports glog's own values, so the four-case switch collapses to two assignments.
Parsing helpers come from mooncake-common rather than being reimplemented: medium normalization uses AsciiToLower (ascii_string.h) instead of a local std::tolower transform, which also drops a locale-sensitive path from a comparison against ASCII literals, and the cache-group check uses TryParseInteger<int64_t> (integer_parser.h). Both substitutions were checked against the previous local implementations over 6470 inputs, including every single byte, the medium spellings the call sites compare against, signed and unsigned int64 boundaries and overflow, embedded NULs, and padded and whitespace-wrapped forms.
yalantinglibs is guarded with if(NOT TARGET yalantinglibs::yalantinglibs): the top-level build already provides it through mooncake-common, and its config.cmake mutates an imported target owned by the parent scope, so it cannot run twice.
Verified: builds standalone and under the top-level configuration, and conductor_test passes (169 tests across 34 suites, up from 113 across 25).
Module
mooncake-transfer-engine)mooncake-store)mooncake-conductor)mooncake-reshard)mooncake-ep)mooncake-pg)mooncake-integration)mooncake-p2p-store)mooncake-wheel)mooncake-common)mooncake-rl)Type of Change
How Has This Been Tested?
Test commands:
# Example: bash scripts/run_ci_test.shTest results:
Checklist
./scripts/code_format.shAI Assistance Disclosure