get_replication_divergence
Diagnose replica lag under write load by retrieving per-replica offset gap series and divergence events, showing whether the gap is growing, capped, or failing to close after a burst.
Instructions
Get replication divergence for a primary: the per-replica offset gap series (bytes behind, write rate, seconds behind, live alert level, behind when it lags under the alert thresholds or has an event left open by a restart, or unobserved when the replica is not connected) and the divergence events from the anomaly store; eventsUnavailable: true means the events could not be read, not that there are none. Use when a replica is falling behind under write load, to see whether the gap is growing, at a ceiling, or not closing after the burst. Companion to get_anomalies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max divergence events to return (default 100) | |
| startTime | No | Start time (Unix timestamp ms; default 1h ago for the gap series, 24h ago for events) | |
| instanceId | No | Optional instance ID override |