fix(mnesia): per-slot volumes hint and harden verification lookup.
CI / test (push) Failing after 5m10s
CI / deploy-ift (push) Has been skipped
CI / e2e-ift (push) Has been skipped
CI / deploy-stage (push) Has been skipped
CI / e2e-stage (push) Has been skipped

Avoid shared Mnesia dir across replicas; make get_or_create_token and CT verify_user resilient to brief cross-node lag.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-17 09:54:10 +03:00
parent a696d25486
commit 5e569da1d8
4 changed files with 62 additions and 16 deletions
+8 -3
View File
@@ -76,12 +76,17 @@ services:
- eventhub
- eventhub-node
volumes:
# Per-task volume when scaling replicas > 1 (never share one Mnesia dir).
- type: volume
source: eventhub-data
source: eventhub-data-{{.Task.Slot}}
target: /app/data
deploy:
replicas: 1
endpoint_mode: dnsrr
update_config:
parallelism: 1
delay: 30s
order: stop-first
restart_policy:
condition: any
labels:
@@ -222,8 +227,8 @@ networks:
driver: overlay
volumes:
eventhub-data:
# name: 'eventhub-data-{{.Task.Slot}}'
# eventhub-data-{{.Task.Slot}} created by Swarm from service mount template
# (do not use a single shared volume for multi-replica Mnesia)
prometheus-data:
grafana-data:
traefik-logs: