Inference Operator v3.2.0 ignores l2CacheBackend: redis, hardcodes LMCACHE_REMOTE_URL=sagemaker-hyperpod://...
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- aws, kubernetes, python, redis
- Ambito
- cloud, databases, infrastructure
Direzione di ricerca
Inizia riproducendo la InferenceEndpointConfig e ispeziona il worker pod renderizzato con il comando kubectl jsonpath fornito. Traccia il modo in cui l’operatore gestisce l2CacheBackend, l2CacheLocalUrl e worker.environmentVariables; il lavoro è completo quando Redis produce LMCACHE_REMOTE_URL=redis://..., il worker segnala un backend LMCache integro e il percorso di deployment di tieredstorage è documentato o chiarito.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Environment
- EKS add-on
amazon-sagemaker-hyperpod-inferencev1.3.0-eksbuild.1 (latest available inap-northeast-1) - Inference Operator image
hyperpod-inference-operator:v3.2.0 - Worker image
lmcache/vllm-openai:v0.4.7(LMCache 0.4.7, vLLM 0.23.0) - Instance type
ml.g7e.4xlarge, HyperPod EKS-orchestrated cluster
What happened
Setting kvCacheSpec.l2CacheSpec.l2CacheBackend: redis (with l2CacheLocalUrl: redis://...:6379) in the InferenceEndpointConfig has no effect. The operator instead injects into the worker pod:
LMCACHE_REMOTE_URL=sagemaker-hyperpod://$(NODE_IP):9200
LMCACHE_EXTRA_CONFIG={"sagemaker_hyperpod_shared_memory_name": "ai_toolkit_cache"}
The redis value from the CRD is silently dropped — the operator never emits LMCACHE_REMOTE_URL=redis://.... Attempting to override LMCACHE_REMOTE_URL via worker.environmentVariables does not work either: those LMCACHE_* entries do not appear in the rendered pod (the operator strips/overrides them).
Because the worker is forced onto the sagemaker-hyperpod connector, and that connector requires a host-side ai-toolkit daemon (POSIX shared memory /ai_toolkit_cache + TCP :9200) which is not present on the cluster, LMCache enters degraded mode and the L2 cache never stores anything:
LMCache ERROR: Failed to initialize shared memory: [Errno 22] Invalid argument: '/ai_toolkit_cache'
LMCache WARNING: Health check failed: RemoteBackendHealthCheck(sagemaker-hyperpod://<NODE_IP>:9200)
LMCache WARNING: HealthMonitor: System unhealthy, entering degraded mode
LMCache WARNING: LMCache is unhealthy, skipping store operation
... LMCache hit tokens: 0 (External prefix cache hit rate: 0.0%)
Expected behavior
With l2CacheBackend: redis + l2CacheLocalUrl: redis://...:6379, the worker's LMCache should be configured with LMCACHE_REMOTE_URL=redis://..., connect to the specified Redis endpoint, report healthy, and perform L2 KV-cache store/lookup. redis is listed as a supported L2 backend in the docs (KV cache & intelligent routing), so the operator overriding it contradicts the documentation.
Reproduction
- Deploy an
InferenceEndpointConfigwith:kvCacheSpec: enableL1Cache: true enableL2Cache: true l2CacheSpec: l2CacheBackend: redis l2CacheLocalUrl: redis://<redis-svc>.<ns>.svc.cluster.local:6379 - (Optionally) add
worker.environmentVariablesentries forLMCACHE_REMOTE_URLto try to override. - Inspect the rendered worker pod:
kubectl get pod <worker> -o jsonpath='{range .spec.containers[*].env[*]}{.name}={.value}{"\n"}{end}' | grep LMCACHE - Observe
LMCACHE_REMOTE_URL=sagemaker-hyperpod://$(NODE_IP):9200(notredis://...), and the worker logs showing the LMCache unhealthy/degraded loop above.
Additional question (tieredstorage)
Separately: l2CacheBackend: tieredstorage requires the host-side ai-toolkit daemon (shm /ai_toolkit_cache + :9200). On our cluster this daemon is not installed as any DaemonSet, and the add-on configuration schema (aws eks describe-addon-configuration) exposes no toggle for it (only alb, enableCustomServiceAccounts, executionRoleArn, hyperpodClusterArn, jumpstartGatedModelDownloadRoleArn, keda, tlsCertificateS3Bucket). How is tiered storage meant to be enabled — a cluster-creation flag, and can it be enabled on an existing cluster?
References
- LMCache SageMaker HyperPod connector (client expecting a pre-existing daemon): https://github.com/LMCache/LMCache/pull/1937
- LMCache backend docs: https://docs.lmcache.ai/kv_cache/storage_backends/sagemaker_hyperpod.html
- AWS KV cache & routing docs: https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-model-deployment-caching-routing.html
- Lingua principale
- Python
- Stelle
- 41
- Fork
- 95
- Merge medio
- 18h 29m
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di aws/sagemaker-hyperpod-cli
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
aws/sagemaker-hyperpod-cli#348 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
aws/sagemaker-hyperpod-cli#314 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
aws/sagemaker-hyperpod-cli#384 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
aws/sagemaker-hyperpod-cli#353 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
aws/sagemaker-hyperpod-cli#352 ·
Tutte le issue di aws/sagemaker-hyperpod-cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
sierra-research/tau2-bench#635 ·
I maintainer di solito rispondono entro 1 giorno
-
The add-ssm-model skill requires a Cython simulator; the contributing guide allows Python onesForse già presa @fmuia l’ha presa oggi. Apertadocumentation skill
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
lnccbrown/ssm-simulators#406 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
btclib-org/btclib-ecc#309 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
jbacalso24/mimry#459 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] POST /revoke with a FastMCP access token is a silent no-op (ownership gate never matches)Apertaauth bug high-priority
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno