Skip to content

vllm.distributed.mooncake_store

Shared configuration and setup for EC and KV Mooncake Store clients.

Classes:

Functions:

MooncakeStoreConfig dataclass

Configuration for MooncakeDistributedStore.

mode selects the topology: embedded (each rank contributes global_segment_size in-process) or standalone-store (rank contributes 0; an external mooncake_client process owns the pool and the SSD tier).

_parse_size(value)

Parse storage size strings with units: GB, MB, KB, B.

setup_mooncake_store(store, config, local_hostname, engine=None)

Initialize a native Store, preserving explicit tenant configuration.

engine is an existing Mooncake TransferEngine (the object returned by TransferEngine.get_engine()). When it is set, the store client uses that engine instead of creating its own.

Parameters:

  • store

    (Any) –

    Native MooncakeDistributedStore.

  • config

    (MooncakeStoreConfig) –

    Store topology and connection settings.

  • local_hostname

    (str) –

    Hostname, or host:port, advertised for this client.

  • engine

    (Any | None, default: None ) –

    Inner TransferEngine to reuse. None creates one inside setup.

Raises:

  • RuntimeError –

    Store setup failed, or this Mooncake build cannot reuse an existing TransferEngine.