<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # Cluster State 原文鏈接 : [https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cluster-state.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cluster-state.html) 譯文鏈接 : [http://www.apache.wiki/display/Elasticsearch/Cluster+State](http://www.apache.wiki/display/Elasticsearch/Cluster+State) 貢獻者 : [那伊抹微笑](/display/~wangyangting) **cluster state**(集群狀態)**API** 可以獲取一個整個集群更全面的狀態。 ``` $ curl -XGET 'http://localhost:9200/_cluster/state' ``` 默認情況下,該集群狀態的請求被路由到 **Master**(主)節點,以確保最近的集群狀態可以被返回。出于調試的目的,您可以去指定的本地節點通過添加 **local=true** 到查詢字符串中獲取集群狀態。 ## Response Filters(響應過濾) 由于集群狀態可以增加(取決于分片和索引的數量,映射,模版),可能需要過濾集群狀態的響應,在 **URL** 中指定部分參數。 ``` $ curl -XGET 'http://localhost:9200/_cluster/state/{metrics}/{indices}' ``` | 參數 | 描述 | | --- | --- | | metrics | can be a comma-separated list of | | version | Shows the cluster state version. | | master_node | Shows the elected?`master_node`?part of the response | | nodes | Shows the?`nodes`?part of the response | | routing_table | Shows the?`routing_table`?part of the response. If you supply a comma separated list of indices, the returned output will only contain the indices listed. | | metadata | Shows the?`metadata`?part of the response. If you supply a comma separated list of indices, the returned output will only contain the indices listed. | | blocks | Shows the?`blocks`?part of the response | 幾個示例如下 :? ``` # return only metadata and routing_table data for specified indices $ curl -XGET 'http://localhost:9200/_cluster/state/metadata,routing_table/foo,bar' # return everything for these two indices $ curl -XGET 'http://localhost:9200/_cluster/state/_all/foo,bar' # Return only blocks data $ curl -XGET 'http://localhost:9200/_cluster/state/blocks' ```
                  <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>

                              哎呀哎呀视频在线观看