ElasticSearch之cat recovery API
命令样例如下:
curl -X GET "https://localhost:9200/_cat/recovery?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"
执行结果输出如下:
index shard time type stage source_host source_node target_host target_node repository snapshot files files_recovered files_percent files_total bytes bytes_recovered bytes_percent bytes_total translog_ops translog_ops_recovered translog_ops_percent
my-index-000001 0 13ms store done n/a n/a 127.0.0.1 node-0 n/a n/a 0 0 100% 13 0b 0b 100% 9928b 0 0 100.0%
查看帮助,命令如下:
curl -X GET "https://localhost:9200/_cat/recovery?v=true&help=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"
执行结果输出如下:
index | i,idx | index name
shard | s,sh | shard name
start_time | start | recovery start time
start_time_millis | start_millis | recovery start time in epoch milliseconds
stop_time | stop | recovery stop time
stop_time_millis | stop_millis | recovery stop time in epoch milliseconds
time | t,ti | recovery time
type | ty | recovery type
stage | st | recovery stage
source_host | shost | source host
source_node | snode | source node name
target_host | thost | target host
target_node | tnode | target node name
repository | rep | repository
snapshot | snap | snapshot
files | f | number of files to recover
files_recovered | fr | files recovered
files_percent | fp | percent of files recovered
files_total | tf | total number of files
bytes | b | number of bytes to recover
bytes_recovered | br | bytes recovered
bytes_percent | bp | percent of bytes recovered
bytes_total | tb | total number of bytes
translog_ops | to | number of translog ops to recover
translog_ops_recovered | tor | translog ops recovered
translog_ops_percent | top | percent of translog ops recovered
相关资料
本文来自博客园,作者:jackieathome,转载请注明原文链接:https://www.cnblogs.com/jackieathome/p/17863519.html