Repository navigation
Description
What happened
#711 bounds the shared LLM Valkey with --maxmemory 1536mb --maxmemory-policy noeviction. With noeviction, a full Valkey refuses each write, and Open WebUI then fails to keep its session and task state. No alert fires before that: ValkeyCacheErrors does not cover a refused write.
What should happen
An alert fires when the cache Valkey's memory use nears its bound, for example above 80% of maxmemory for 10 minutes.
Evidence
- The redis-exporter sidecar of the cache Valkey exports
redis_memory_used_bytesandredis_memory_max_bytes(0 until feat(ai): pinned image tags and bounded shared valkey in the llm stack #711 sets the bound). - Live on 2026-10-24:
used_memory1.41 MiB,used_memory_peak1.44 MiB.
Scope
One alert rule beside the existing Valkey alerts under k8s/monitoring/, and its test.
Proposed design
Problem statement
The shared LLM Valkey uses noeviction and a 1536 MiB memory bound set by #711. When the bound is reached, Valkey refuses all writes and Open WebUI loses session and task state. The existing ValkeyCacheErrors alert does not cover a refused write. An alert must fire before the bound is reached so a person can act in time.
Acceptance criteria
- Criterion 1: A new alert rule fires when
redis_memory_used_bytesexceeds 80% ofredis_memory_max_bytesfor 10 minutes on the cache Valkey's redis-exporter sidecar.
Verification: Inspectk8s/monitoring/prometheus-values.yamlfor the new rule. Confirm the expression dividesredis_memory_used_bytesbyredis_memory_max_bytes, compares to 0.8, and setsfor: 10m. - Criterion 2: The alert carries a
warningseverity label and a human-readable description.
Verification: Inspect the alert rule ink8s/monitoring/prometheus-values.yamlfor aseverity: warninglabel and a non-emptydescriptionfield. - Criterion 3: The alert is documented in
k8s/README.mdbeside the existingValkeyCacheErrorsentry.
Verification: Openk8s/README.mdand confirm the new alert appears in the alerts table with its name, condition, duration and severity. - Criterion 4: A test verifies the alert rule is present and correctly configured.
Verification: Run the monitoring test suite. Confirm the new test passes and that it checks for the alert name, expression, duration and severity.
Key questions
- Which metrics does the redis-exporter sidecar export for memory?: The sidecar exports
redis_memory_used_bytesandredis_memory_max_bytes. Before feat(ai): pinned image tags and bounded shared valkey in the llm stack #711,redis_memory_max_byteswas 0. [sources: openspec/changes/archive/2026-10-24-711-bounded-shared-valkey/tasks.md] - Where are the existing Valkey alerts defined?: The
ValkeyCacheErrorsalert is defined ink8s/monitoring/prometheus-values.yamlat line 612. [sources: k8s/monitoring/prometheus-values.yaml:612] - What threshold and duration should the alert use?: Above 80% of
maxmemorysustained for 10 minutes, as stated in the issue body. (proposed) - What severity should the new alert carry?:
warning, matching the existingValkeyCacheErrorsalert in the alerts table. (proposed) [sources: k8s/README.md:403] - Does the alert target only the cache Valkey or also the run index Valkey?: Only the cache Valkey. The issue title and body name the cache Valkey, and the scope says one alert rule beside the existing Valkey alerts. (proposed) [sources: k8s/llm/valkey.yaml:74]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsReady
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 24, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate proposes a new alert feature for monitoring cache valkey memory use.The alert helps prevent service disruption when cache valkey reaches memory limits.The alert prevents session and task state failures in Open WebUI when cache valkey is full.Requires adding one new alert rule and its test in the monitoring configuration.Both items work on the shared LLM Valkey. The candidate adds an alert for memory use, while item #711 bounds the valkey with maxmemory and noeviction policy.dan-petty commentedon Oct 28, 2026
Status set to Ready at bb46660 (see proposed design in issue body).
chore(main): release 0.15.0 (#2623)