lmcache server#
The lmcache server command launches the standalone LMCache
Multi-Process (MP) server, which exposes a configurable ZMQ or gRPC request
endpoint and an HTTP frontend (status, healthcheck, cache-clear, checksum
APIs). It is the server that lmcache describe, lmcache ping kvcache,
lmcache kvcache, and lmcache bench server talk to.
Note
This command requires the full lmcache installation with CUDA
extensions. It is not available in the lightweight lmcache-cli
package.
lmcache server [options]
Quick start#
lmcache server \
--host 0.0.0.0 --port 5555 \
--l1-size-gb 100 \
--eviction-policy LRU
Options#
The server composes its arguments from several configuration modules — the multiprocess server, the storage manager (L1 / L2 adapters / eviction), the HTTP frontend, and the Prometheus / telemetry observability layer. The full, authoritative list is large and evolves with the runtime, so consult:
lmcache server --help
Commonly used flags include:
Flag |
Description |
|---|---|
|
Request transport exposed by the server (default: |
|
Bind address for the server. |
|
Request-transport port. |
|
KV cache chunk size in tokens. |
|
L1 (CPU/DRAM) cache capacity in GB. |
|
L1 eviction policy ( |
|
L1 fill ratio at which eviction begins. |
|
Fraction of L1 cleared per eviction cycle. |
|
Base number of request worker threads. |
|
gRPC dispatch threads (used only with |
|
Register with an MP coordinator at this base URL (e.g.
|
|
IP the coordinator should reach this server at (defaults to the outbound IP). |
|
Seconds between heartbeats ( |
|
Stream cache store/access/delete events to the coordinator, feeding the key directory (fleet-wide placement tracking), L2 usage/quota tracking and eviction, and the blend index behind fleet CacheBlend matching. |
|
Seconds between cache-event batch flushes ( |
|
Cache-event transport (default |
|
Comma-separated Kafka bootstrap servers. Required with
|
|
Kafka topic receiving cache events (default |
|
Seconds one flush waits for broker acknowledgement ( |
|
Enable P2P KV cache sharing and advertise this server’s
transfer-channel endpoint to peers (e.g. |
|
Address the transfer-channel server binds to. Defaults to
|
|
Deadline for a peer lookup before it counts as a miss (default |
|
Deadline for a peer KV read before it counts as a failure
(default |
|
Transfer-channel implementation for P2P reads (default |
|
Enable trace recording: |
|
Destination for recorded |
L2 adapters, observability, and Prometheus exporters are configured through
their own flag groups; see lmcache server --help for the complete set.