Module kv_router

Module kv_router 

Source

Modules§

approx
Approximate KV Indexer
indexer
KV RadixTree
metrics_aggregator
protocols
publisher
recorder
scheduler
scoring
Scoring functions for the KV router.
sequence
KV Cache Sequence Management for LLM Inference
subscriber
Background processes for the KV Router including event consumption and snapshot uploads.

Structs§

KvPushRouter
KvRouter
A KvRouter only decides which worker you should use. It doesn’t send you there. TODO: Rename this to indicate it only selects a worker, it does not route.
KvRouterConfig
KV Router configuration parameters
RouterConfigOverride
Override configuration for router settings that can be specified per-request
RouterConfigOverrideBuilder
Builder for RouterConfigOverride.

Enums§

Indexer
RouterConfigOverrideBuilderError
Error type for RouterConfigOverrideBuilder

Constants§

ACTIVE_SEQUENCES_SUBJECT
KV_EVENT_SUBJECT
KV_HIT_RATE_SUBJECT
KV_METRICS_ENDPOINT
KV_METRICS_SUBJECT
PREFILL_SUBJECT
RADIX_STATE_BUCKET
RADIX_STATE_FILE
ROUTER_CLEANUP_LOCK
ROUTER_SNAPSHOT_LOCK

Traits§

WorkerSelector
A trait that users can implement to define custom selection logic