Skip to content

v2: RabbitMQ watermark 160 → 300 MiB; consistency SLO le="300.0" (M6 findings) - #132

Merged
MIERAI merged 1 commit into
mainfrom
m6-rabbitmq-watermark
Nov 23, 2026
Merged

MIERAI merged 1 commit into
mainfrom
m6-rabbitmq-watermark

Conversation

@MIERAI

@MIERAI MIERAI commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Two defects found while running M6 on v2-lab (storefront docs/m6-verification.md):

  1. RabbitMQ's memory watermark (160 MiB) is below its idle size. The node sits at ~145–165 MiB (66 queues, management + prometheus plugins), so with 1–2 orders/s the memory alarm was set 40 times in 90 minutes (memory resource limit alarm set, Publishers will be blocked). Each block: order's outbox relay waits its 10 s ConfirmTimeout, the UPDATE published_at then fails on the expired context (timeout: context already done), the relay's leader term ends (16× in an hour, order only), outbox age up to 24 s, inventory.reserve lag p90 110 s, and ~half of the orders only advance on the saga's 30 s resend (336 RESERVING timeouts for ~720 orders in 15 min). Journey: 73% of orders final within 60 s, 31% within 10 s (vs 100% / 85% in a quiet 3-minute run). Fix: watermark 300 MiB (limit 384 Mi unchanged), request 128 → 160 Mi (what it really uses; node requests +32 Mi). The pod-template change restarts the broker once (durable queues on its volume).
  2. consistency-final-5m used le="300"; Prometheus 3.15 stores integer bucket edges as le="300.0" (le="300" matches nothing — checked on the lab), so the SLO would see 0 good events. Now "300.0".

A runtime follow-up for api-factory (not here): the relay's UPDATE published_at reuses the batch context that the confirm wait already used up; a blocked broker turns into a leader-term churn instead of a slow batch.

🤖 Generated with Claude Code

…ize); consistency SLO le="300.0"

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Rendered diff (as Argo CD renders: kustomize / Helm, against origin/main)

v2-lab (+2 / -2)
@@ -1,7 +1,7 @@
 apiVersion: v1
 data:
   20-lab.conf: |
-    vm_memory_high_watermark.absolute = 160MiB
+    vm_memory_high_watermark.absolute = 300MiB
     disk_free_limit.absolute = 256MB
     prometheus.return_per_object_metrics = true
     management.rates_mode = none
@@ -816,7 +816,7 @@
             memory: 384Mi
           requests:
             cpu: 50m
-            memory: 128Mi
+            memory: 160Mi
         securityContext:
           allowPrivilegeEscalation: false
           capabilities:

@MIERAI
MIERAI merged commit 36fa8d9 into main Nov 23, 2026
2 checks passed
@MIERAI
MIERAI deleted the m6-rabbitmq-watermark branch November 23, 2026 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant