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.
About cross-cluster replicationRequired authorization
- Cluster privileges monitor
Response
-
indicesobject[]required -
An array of follower index statistics.
-
shardsobject[]required -
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.
-
fatal_exceptionobject -
stack_tracestring -
The server stack trace. Present only if the
error_trace=trueparameter was sent with the request. -
caused_byobject -
Same fields as
fatal_exceptioninshards -
root_causeobject[] -
Same fields as
fatal_exceptioninshards -
suppressedobject[] -
Same fields as
fatal_exceptioninshards -
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.
-
read_exceptionsobject[]required -
An array of objects representing failed reads.
-
exceptionobjectrequired -
The exception that caused the read to fail.
-
stack_tracestring -
The server stack trace. Present only if the
error_trace=trueparameter was sent with the request. -
caused_byobject -
Same fields as
exceptioninread_exceptions -
root_causeobject[] -
Same fields as
exceptioninread_exceptions -
suppressedobject[] -
Same fields as
exceptioninread_exceptions -
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.