lmcache coordinator#
lmcache coordinator 命令启动 LMCache MP 协调器,这是一个独立的 HTTP 服务,用于跟踪部署中的 MP 服务器实例。MP 服务器向其注册并发送定期心跳;协调器会逐出任何心跳超时的实例,该超时时间由 --instance-timeout 指定。
It is the preferred form of python -m lmcache.v1.mp_coordinator, which still
works and accepts the same flags. The process runs in the foreground; stop it
with Ctrl-C.
lmcache coordinator [options]
快速开始#
lmcache coordinator \
--host 0.0.0.0 --port 9300 \
--instance-timeout 30 \
--health-check-interval 10
选项#
标志 |
描述 |
|---|---|
|
协调器 HTTP 服务器的绑定地址(默认: |
|
HTTP 端口(默认值: |
|
在没有心跳的情况下,经过多少秒后实例被逐出(默认值: |
|
健康检查扫描之间的秒数; |
|
L2 逐出扫描之间的秒数; |
|
每个周期逐出的跟踪键的比例(按计数), |
|
当使用量达到配额的这个比例时会触发逐出, |
|
每个 KV 块的令牌数:CacheBlend 匹配单元以及用于将固定的 |
|
用于固定密钥解析的令牌哈希算法;必须与 MP 服务器的 |
|
Index stored chunk content so |
|
Positions between CacheBlend match probes; |
|
HTTP服务器在关闭空闲连接之前保持连接打开的秒数。必须大于MP服务器的心跳间隔(默认``5``),否则心跳请求可能会遇到关闭的连接并失败,错误信息为``服务器在未发送响应的情况下断开连接``(默认值: |
|
Disable OpenTelemetry metrics. Metrics are enabled by default. |
|
Push metrics to the specified OTLP gRPC endpoint. When unset, Prometheus
pull mode exposes |
配置#
Every flag is optional; an unset flag keeps the built-in default listed above.
Prometheus pull mode reuses the coordinator's existing HTTP server; it does not
start a second server or reserve a separate Prometheus port. Metrics-disabled
and OTLP push modes both return HTTP 404 from the local /metrics route.
See 多服务器协调 for the active eviction loop.
The coordinator drives fleet-wide L2 eviction by calling each MP
server's DELETE /l2 endpoint, documented at
缓存对象和预取.
请参阅 多服务器协调 以了解协调器的架构、注册协议和 HTTP API。