get_replication_divergence
Track per-replica offset gaps and divergence events to determine whether a replica is falling behind under write load, if the gap is growing, and whether primary and replica agree.
Instructions
Get replication divergence for a primary: the per-replica offset gap series (bytes behind as the primary sees it, write rate, seconds behind, replicaGapBytes as the replica reports it with replicaView saying whether it could be read (ok, unreachable, replid_mismatch, not_replica, or null when it was not sampled), 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, and whether the replica agrees with the primary on how far behind it is. Companion to get_anomalies.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_replication_divergence"
}
}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 |