lmcache ping#
The lmcache ping command is a liveness check for an LMCache KV cache
server or a vLLM serving engine.
# Ping the KV cache server (default: http://localhost:8080)
lmcache ping kvcache
# Ping the serving engine (default: http://localhost:8000)
lmcache ping engine --url http://localhost:8000
======= Ping KV Cache ========
Status: OK
Round trip time (ms): 3.42
==============================
ping kvcache checks the /healthcheck endpoint; ping engine checks
/health.
Options#
Flag |
Description |
|---|---|
|
Target to ping (positional, required). |
|
Server URL. Defaults to |
|
Output format: |
|
Save metrics to a file (format follows |
|
Suppress stdout output. Exit code only. |
JSON Output#
lmcache ping kvcache --format json
{
"title": "Ping KV Cache",
"metrics": {
"status": "OK",
"round_trip_time_ms": 3.42
}
}
Exit Codes#
Code |
Meaning |
|---|---|
|
Server is reachable (HTTP 200). |
|
Connection failure or non-200 response. |