Skip to content

[Conductor] Add Go RPC client and C ABI bindings - #5426

Merged
Chase-Rong merged 3 commits into
kvcache-ai:mainfrom
TokenShot:go-api
Nov 21, 2026
Merged

Chase-Rong merged 3 commits into
kvcache-ai:mainfrom
TokenShot:go-api

Conversation

@TokenShot

@TokenShot TokenShot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add a Go API reference for the mooncake_conductor client, covering how to build the crate, integrate it into a Cargo project, and use it for prefix-cache queries and publisher registration.

The reference includes:

  • Build prerequisites, CMake options, and linking requirements.
  • A quick-start example covering registration, queries, service inspection, and cleanup.
  • Client lifecycle, configuration defaults, request/response types, hash profiles, and error handling.
  • Cache-hit semantics, blocking behavior, concurrency limits, and timeout considerations.

Link the new reference from the Rust API index and Conductor design overview.

Suggested Merge Priority

  • P2 — Normal

Module

  • Mooncake Conductor (mooncake-conductor)
  • Docs

Type of Change

  • Documentation update

How Has This Been Tested?

Test commands:

git diff-tree --check 3410cd3^ 3410cd3

Test results:

  • Whitespace check passed.
  • Documentation build and Rust examples were not run.
  • Pre-commit was not run because it is not available on PATH.

Checklist

  • The commit includes a Signed-off-by trailer matching the author.
  • I have updated the documentation.
  • I have performed a self-review of all changed lines.
  • I have run pre-commit on the files changed in this PR and all hooks pass.

AI Assistance Disclosure

  • AI tools were used.

Codex assisted with drafting this PR description.

@github-actions github-actions Bot added run-ci CI/Build Mooncake Conductor Changes related to mooncake-conductor size/L 1001+ changed lines (additions + deletions) labels Nov 11, 2026
Signed-off-by: w00593015 <wanghaibo33@huawei.com>
Chase-Rong and others added 2 commits November 20, 2026 14:57
ConductorClient::Setup rejected every non-positive timeout, so a negative
value, which previously disabled the ylt timer, started failing with
INVALID_PARAMS for Python, Rust, and C callers.

Accept negative timeouts again and clamp them to -1 so ylt's nanosecond
conversion cannot overflow. Keep rejecting 0, which expires at once, and
values above INT64_MAX / 1000000 ms.

- Go maps a negative Duration to -1 instead of returning InvalidParams.
- Rust rounds sub-millisecond durations up, so a nonzero Duration never
  becomes the rejected 0 ms.
- Document the accepted range in the C and C++ headers and the Rust
  ClientConfig.
- Cover 0, out-of-range, -1, and INT64_MIN in the C ABI test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Chase Rong <lolopop.rong@gmail.com>
RegisteredService embedded ServiceConfig and carried RootDigest at the top
level. Rust ServiceInfo, the Python services dict, and Go ContextView all
keep root_digest inside the hash profile.

Give RegisteredService its own fields with a ResolvedHashProfile, and share
the C-to-Go hash profile conversion between ListServices and GetGlobalView.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Chase Rong <lolopop.rong@gmail.com>
@Chase-Rong Chase-Rong added run-ci and removed run-ci labels Nov 20, 2026
@Chase-Rong
Chase-Rong merged commit a9cd823 into kvcache-ai:main Nov 21, 2026
72 of 75 checks passed
jfeng18 added a commit to jfeng18/Mooncake that referenced this pull request Nov 22, 2026
…presence

* upstream/main: (58 commits)
  [Doc] Add logos and links to the ecosystem integration directory (kvcache-ai#5686)
  [TE] Make tebench warmup configurable and reduce workload-loop overhead (kvcache-ai#5698)
  [Bugfix][Store] Fix stale client record helper in HA tests (kvcache-ai#5725)
  [Conductor] Add Go RPC client and C ABI bindings (kvcache-ai#5426)
  [TENT] Add an array entry point for synchronous transfers (kvcache-ai#5525)
  [Doc] Document Mooncake Store HA design and recovery boundaries (kvcache-ai#5695)
  [CI/Build] Support independent Ascend NPU hotfix releases (kvcache-ai#5705)
  [TransferEngine] Support UBoE via URMA RM mode in UB Transport (kvcache-ai#5644)
  [Store] Bound batch OpLog pruning with a paced background worker (kvcache-ai#5432)
  [Bugfix][TENT] Read interval timestamps from the monotonic clock (kvcache-ai#5689)
  [Store] Build batch OpLog JSON and Base64 payloads once (kvcache-ai#5558)
  [Bugfix][Store] Validate and reserve segment OpLog entries before mutation (kvcache-ai#5555)
  [Store] Allow DrainJob to migrate hard-pinned objects (kvcache-ai#5673)
  [Store] Read an offset allocator record with one I/O, batched under io_uring (kvcache-ai#5473)
  [TENT] Drain the NVLink stream before freeing a sub-batch (kvcache-ai#5361)
  [Bugfix][Store] Protect pending bucket registrations during concurrent offload (kvcache-ai#5337)
  [Bugfix][Store] Recheck leases after LOCAL_DISK reads (kvcache-ai#5228)
  [Store][TE] Add Ascend standalone single-segment routing to classic and TENT (kvcache-ai#5417)
  fix: disable randomized Go heap base in NPU wheel build (kvcache-ai#5538)
  [TENT] Add a built-in TPU adapter backed by a pluggable buffer provider (kvcache-ai#5371)
  ...
jfeng18 added a commit to jfeng18/Mooncake that referenced this pull request Nov 22, 2026
…d-put-eviction

* upstream/main:
  [Doc] Add logos and links to the ecosystem integration directory (kvcache-ai#5686)
  [TE] Make tebench warmup configurable and reduce workload-loop overhead (kvcache-ai#5698)
  [Bugfix][Store] Fix stale client record helper in HA tests (kvcache-ai#5725)
  [Conductor] Add Go RPC client and C ABI bindings (kvcache-ai#5426)
  [TENT] Add an array entry point for synchronous transfers (kvcache-ai#5525)
jfeng18 added a commit to jfeng18/Mooncake that referenced this pull request Nov 22, 2026
…t-injection

* upstream/main:
  [Doc] Add logos and links to the ecosystem integration directory (kvcache-ai#5686)
  [TE] Make tebench warmup configurable and reduce workload-loop overhead (kvcache-ai#5698)
  [Bugfix][Store] Fix stale client record helper in HA tests (kvcache-ai#5725)
  [Conductor] Add Go RPC client and C ABI bindings (kvcache-ai#5426)
  [TENT] Add an array entry point for synchronous transfers (kvcache-ai#5525)
jfeng18 added a commit to jfeng18/Mooncake that referenced this pull request Nov 24, 2026
…le-filter-hotfix

* upstream/main: (68 commits)
  [Build] Build Mooncake core wheels with the CPython stable ABI (kvcache-ai#5664)
  [TransferEngine] Add disconnect_all_peers for Ascend Direct transport (kvcache-ai#5362)
  [Doc] Update C++ Store RPC and metadata design docs (kvcache-ai#5582)
  [Bugfix][TransferEngine] Fix UB transport submit watermark using wrong per-endpoint channel count (kvcache-ai#5748)
  [TENT][Store] Run Mooncake Store over TENT UB, with a test-only loopback URMA adapter (kvcache-ai#5703)
  [Store] Add versioned route presence validation (kvcache-ai#5616)
  [Bugfix][Store-RS] Prevent invalid puts from evicting objects (kvcache-ai#5729)
  [Integration][TE] Support non-blocking whole-batch and vectorized status checks with BatchID validation (kvcache-ai#5674)
  [Bugfix][Store] Preserve successor in-memory runtime index (kvcache-ai#5643)
  [Bugfix][Store-RS] Wait for elastic allocation reclamation (kvcache-ai#5593)
  [TENT] fabric: use getCudaPointerInfo() for HMEM device lookup (kvcache-ai#5708)
  [Doc] Add the Enflame logo to supported hardware (kvcache-ai#5743)
  [Doc] Add logos and links to the ecosystem integration directory (kvcache-ai#5686)
  [TE] Make tebench warmup configurable and reduce workload-loop overhead (kvcache-ai#5698)
  [Bugfix][Store] Fix stale client record helper in HA tests (kvcache-ai#5725)
  [Conductor] Add Go RPC client and C ABI bindings (kvcache-ai#5426)
  [TENT] Add an array entry point for synchronous transfers (kvcache-ai#5525)
  [Doc] Document Mooncake Store HA design and recovery boundaries (kvcache-ai#5695)
  [CI/Build] Support independent Ascend NPU hotfix releases (kvcache-ai#5705)
  [TransferEngine] Support UBoE via URMA RM mode in UB Transport (kvcache-ai#5644)
  ...

# Conflicts:
#	mooncake-store-rs/crates/mooncake-store-route/src/mesh/directory.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/Build documentation Improvements or additions to documentation Mooncake Conductor Changes related to mooncake-conductor run-ci size/L 1001+ changed lines (additions + deletions)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants