You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`LagMonitorService` tracks every `RandomnessRequested` event by ledger number. If a request is not fulfilled within **100 ledgers** (~8 minutes on Stellar), an `[ALERT]` log is emitted:
151
+
152
+
```
153
+
[ALERT] Request req-abc for raffle 7 not fulfilled within 100 ledgers. Lag: 103
154
+
```
155
+
156
+
### Recommended Monitoring Setup
157
+
158
+
-**Liveness probe**: `GET /health` — use as Kubernetes `livenessProbe`
159
+
-**Alerting**: Scrape logs for `[ALERT]` pattern or wire a log aggregator
160
+
-**Metrics**: `queueDepth > 10` warns; `queueDepth > 50` marks unhealthy
161
+
-**Heartbeat**: Oracle pings the contract every `HEARTBEAT_INTERVAL_MS` (default: 1 hour)
107
162
## Queue & Redis
108
163
109
164
The oracle uses **Bull** (backed by Redis) to reliably process randomness requests.
0 commit comments