You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by "andrewmusselman (via GitHub)" <gi...@apache.org> on 2026/09/12 06:05:25 UTC
[I] KV cache column is empty on every host (tooling-llmao)
andrewmusselman opened a new issue, #30:
URL: https://github.com/apache/tooling-llmao/issues/30
/fleet shows — under KV cache for all three servers. The column exists to surface the measured cache against the served context window, so that a max_model_len above what the cache holds — which makes vLLM hang rather than error — is visible rather than being found by reading a startup log.
Restarting the portal did not populate it.
Cause
fetch_observed builds its URL from srv.api_base, which carries a /v1 suffix. So it requests /v1/metrics, where vLLM serves metrics at the root.
Confirmed on the llmao host against the 27B:
$ curl -sS http://103.196.86.105:17140/metrics | grep -c cache_config_info
3
$ curl -sS http://103.196.86.105:17140/v1/metrics | head -c 100
{"error":"Unauthorized"}
The non-200 is caught deliberately — fetch_observed degrades to None rather than breaking the probe loop, since vLLM's metric names are not a stable API. That is right in general and means this particular mistake fails silently, with nothing in the log.
Introduced when the scrape was written against an api_base that did not yet include /v1.
Fix
Strip the suffix before appending the metrics path:
python
root = base[:-3].rstrip("/") if base.endswith("/v1") else base.rstrip("/")
resp = await client.get(f"{root}/metrics", headers=headers)
/v1/models is unaffected — that endpoint genuinely is under /v1.
Ruled out
Both halves of the change are deployed; grep -c returns 2 for kv_cache in templates/fleet.ezt and 2 for parse_kv_cache_tokens in llmao/fleet.py. So this is not a partial apply.
The scrape firing only on the transition into SERVING is also not the cause — it retries whenever kv_cache_tokens is still None, which it always is here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org
Re: [I] KV cache column is empty on every host (tooling-llmao)
Posted by "andrewmusselman (via GitHub)" <gi...@apache.org>.
andrewmusselman commented on issue #30:
URL: https://github.com/apache/tooling-llmao/issues/30#issuecomment-5735034746
Closed by https://github.com/apache/tooling-llmao/pull/38
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org
Re: [I] KV cache column is empty on every host (tooling-llmao)
Posted by "andrewmusselman (via GitHub)" <gi...@apache.org>.
andrewmusselman closed issue #30: KV cache column is empty on every host
URL: https://github.com/apache/tooling-llmao/issues/30
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org