Get cross-cluster replication stats
- GET /_ccr/stats
This API returns stats about auto-following and the same shard-level stats as the get follower stats API.
Required authorization
- Cluster privileges monitor
Response
-
auto_follow_statsobjectrequired -
Statistics for the auto-follow coordinator.
-
number_of_failed_follow_indicesnumberrequired -
The number of indices that the auto-follow coordinator failed to automatically follow. The causes of recent failures are captured in the logs of the elected master node and in the
auto_follow_stats.recent_auto_follow_errorsfield. -
number_of_failed_remote_cluster_state_requestsnumberrequired -
The number of times that the auto-follow coordinator failed to retrieve the cluster state from a remote cluster registered in a collection of auto-follow patterns.
-
number_of_successful_follow_indicesnumberrequired -
The number of indices that the auto-follow coordinator successfully followed.
-
follow_statsobjectrequired -
Shard-level statistics for follower indices.
-
indicesobjectrequired -
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.