Get follower stats
- GET /{index}/_ccr/stats
Get cross-cluster replication follower stats. The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices.
Read the reference documentationRequired authorization
- Cluster privileges monitor
Response
-
indicesobjectrequired -
An array of follower index statistics.
-
shardsobjectrequired -
An array of shard-level following task statistics.
-
bytes_readnumberrequired -
The total of transferred bytes read from the leader. This is only an estimate and does not account for compression if enabled.
-
follower_global_checkpointnumberrequired -
The current global checkpoint on the follower. The difference between the
leader_global_checkpointand thefollower_global_checkpointis an indication of how much the follower is lagging the leader. -
last_requested_seq_nonumberrequired -
The starting sequence number of the last batch of operations requested from the leader.
-
leader_global_checkpointnumberrequired -
The current global checkpoint on the leader known to the follower task.
-
leader_max_seq_nonumberrequired -
The current maximum sequence number on the leader known to the follower task.
-
outstanding_write_requestsnumberrequired -
The number of active bulk write requests on the follower.
-
shard_idnumberrequired -
The numerical shard ID, with values from 0 to one less than the number of replicas.
-
time_since_last_read_millisnumberrequired -
The number of milliseconds since a read request was sent to the leader. When the follower is caught up to the leader, this number will increase up to the configured
read_poll_timeoutat which point another read request will be sent to the leader. -
total_read_remote_exec_time_millisnumberrequired -
The total time reads spent running on the remote cluster.