<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # cat recovery 原文鏈接 : [https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cat-recovery.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cat-recovery.html) 譯文鏈接 : [http://www.apache.wiki/display/Elasticsearch/cat+recovery](http://www.apache.wiki/display/Elasticsearch/cat+recovery) 貢獻者 : [那伊抹微笑](/display/~wangyangting) **recovery** 命令是一個索引分片恢復的視圖,包括恢復中的和先前已完成的。它是一個更緊湊的?**JSON?**[recovery](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/indices-recovery.html)?**API** 的視圖。 恢復事件可以發生任何時候。在集群中一個索引的分片移動到另一個節點時的,快照恢復時,副本級別改變時,故障發生時,或者節點重啟。其中最后面的類型稱為本地存儲類型,并且在節點啟動時從硬盤加載分片的方式是正常的。 例如,在沒有分片從一個節點傳輸到另一個節點時,下面看起來像是一個集群狀態的恢復 :? ``` > curl -XGET 'localhost:9200/_cat/recovery?v' index shard time type stage source_host source_node target_host target_node repository snapshot files files_percent bytes bytes_percent total_files total_bytes translog translog_percent total_translog index 0 87ms store done 127.0.0.1 I8hydUG 127.0.0.1 I8hydUG n/a n/a 0 0.0% 0 0.0% 0 0 0 100.0% 0 index 1 97ms store done 127.0.0.1 I8hydUG 127.0.0.1 I8hydUG n/a n/a 0 0.0% 0 0.0% 0 0 0 100.0% 0 index 2 93ms store done 127.0.0.1 I8hydUG 127.0.0.1 I8hydUG n/a n/a 0 0.0% 0 0.0% 0 0 0 100.0% 0 index 3 90ms store done 127.0.0.1 I8hydUG 127.0.0.1 I8hydUG n/a n/a 0 0.0% 0 0.0% 0 0 0 100.0% 0 index 4 9ms store done 127.0.0.1 I8hydUG 127.0.0.1 I8hydUG n/a n/a 0 0.0% 0 0.0% 0 0 0 100.0% 0 ``` 在上面的情況中,**source**(源)和 **target** **node**(目標節點)都是一樣的,因為恢復的類型是 **store**(存儲)。 例如,在節點啟動時它們將從本地硬盤讀取數據。 現在讓我們看一下集群恢復中的模樣。通過增加索引的副本數量,引起另一個節點上線到副本的主機中,我們可以看到現在的恢復是這樣的 :? ``` > curl -XPUT 'localhost:9200/wiki/_settings' -d'{"number_of_replicas":1}' {"acknowledged":true} > curl -XGET 'localhost:9200/_cat/recovery?v&h=i,s,t,ty,st,shost,thost,f,fp,b,bp' i s t ty st shost thost f fp b bp wiki 0 1252ms store done hostA hostA 4 100.0% 23638870 100.0% wiki 0 1672ms replica index hostA hostB 4 75.0% 23638870 48.8% wiki 1 1698ms replica index hostA hostB 4 75.0% 23348540 49.4% wiki 1 4812ms store done hostA hostA 33 100.0% 24501912 100.0% wiki 2 1689ms replica index hostA hostB 4 75.0% 28681851 40.2% wiki 2 5317ms store done hostA hostA 36 100.0% 30267222 100.0% ``` 在上面的列表中我們可以看到,在不同的階段中 **3** 個初始化的分片從一個節點復制到另一個節點。注意,恢復類型顯示為 **replcia**。該文件和字節被復制,并且實時測量。 最后, 讓我們看一下快照恢復的情況。假設我先前對我的索引做了一個備份,我可以使用 [snapshot and restore](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/modules-snapshots.html "Snapshot And Restore")來恢復它。 ``` > curl -XPOST 'localhost:9200/_snapshot/imdb/snapshot_2/_restore' {"acknowledged":true} > curl -XGET 'localhost:9200/_cat/recovery?v&h=i,s,t,ty,st,rep,snap,f,fp,b,bp' i s t ty st rep snap f fp b bp imdb 0 1978ms snapshot done imdb snap_1 79 8.0% 12086 9.0% imdb 1 2790ms snapshot index imdb snap_1 88 7.7% 11025 8.1% imdb 2 2790ms snapshot index imdb snap_1 85 0.0% 12072 0.0% imdb 3 2796ms snapshot index imdb snap_1 85 2.4% 12048 7.2% imdb 4 819ms snapshot init imdb snap_1 0 0.0% 0 0.0% ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看