Files
doc-exports/docs/css/umn/css_02_0093.html
zhengxiu 93d856d5c5 css umn 25.6.0 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: zhengxiu <zhengxiu@huawei.com>
Co-committed-by: zhengxiu <zhengxiu@huawei.com>
2025-11-25 11:34:43 +00:00

17 lines
3.5 KiB
HTML

<a name="EN-US_TOPIC_0000001933318558"></a><a name="EN-US_TOPIC_0000001933318558"></a>
<h1 class="topictitle1">How Do I Check the Number of Index Shards and Replicas in a CSS Elasticsearch Cluster?</h1>
<div id="body1607322759459"><ol id="EN-US_TOPIC_0000001933318558__ol136552057002"><li id="EN-US_TOPIC_0000001933318558__li8723742122813">Log in to Kibana and go to the command execution page. Elasticsearch clusters support multiple access methods. This topic uses Kibana as an example to describe the operation procedures.<ol type="a" id="EN-US_TOPIC_0000001933318558__ol382519113291"><li id="EN-US_TOPIC_0000001933318558__en-us_topic_0000002338102386_en-us_topic_0000002271391393_en-us_topic_0000001268594549_li5509181942419"><span id="EN-US_TOPIC_0000001933318558__en-us_topic_0000002338102386_ph152259618315">Log in to the CSS management console.</span></li><li id="EN-US_TOPIC_0000001933318558__en-us_topic_0000002338102386_en-us_topic_0000002271391393_li4250043448">In the navigation pane on the left, choose <span class="uicontrol" id="EN-US_TOPIC_0000001933318558__en-us_topic_0000002338102386_uicontrol192689888185117"><b>Clusters &gt; Elasticsearch</b></span>.</li><li id="EN-US_TOPIC_0000001933318558__en-us_topic_0000002338102386_en-us_topic_0000002271391393_en-us_topic_0000001268154521_li6012554340">In the cluster list, find the target cluster, and click <strong id="EN-US_TOPIC_0000001933318558__en-us_topic_0000002338102386_b18928803044129">Kibana</strong> in the <strong id="EN-US_TOPIC_0000001933318558__en-us_topic_0000002338102386_b5255083364129">Operation</strong> column to log in to the Kibana console.</li><li id="EN-US_TOPIC_0000001933318558__en-us_topic_0000002338102386_en-us_topic_0000002271391393_li270075935613">In the left navigation pane, choose <strong id="EN-US_TOPIC_0000001933318558__en-us_topic_0000002338102386_b3927845824129">Dev Tools</strong>.<p id="EN-US_TOPIC_0000001933318558__en-us_topic_0000002338102386_p1810995434510">The left part of the console is the command input box, and the triangle icon in its upper-right corner is the execution button. The right part shows the execution result.</p>
</li></ol>
</li><li id="EN-US_TOPIC_0000001933318558__li121244493320">Run the following command on Kibana to query the number of shards and replicas of each index:<pre class="screen" id="EN-US_TOPIC_0000001933318558__screen15303554203210">GET _cat/indices?v</pre>
<p id="EN-US_TOPIC_0000001933318558__p8208115017328">In <a href="#EN-US_TOPIC_0000001933318558__fig76081122183010">Figure 1</a>, the <strong id="EN-US_TOPIC_0000001933318558__b197474511686">pri</strong> column indicates the number of index shards, and the <strong id="EN-US_TOPIC_0000001933318558__b374775117817">rep</strong> column indicates the number of replicas. Once an index is created, its <strong id="EN-US_TOPIC_0000001933318558__b8752191010912">pri</strong> value cannot be changed, but its <strong id="EN-US_TOPIC_0000001933318558__b27539101493">rep</strong> value can be changed.</p>
<div class="fignone" id="EN-US_TOPIC_0000001933318558__fig76081122183010"><a name="EN-US_TOPIC_0000001933318558__fig76081122183010"></a><a name="fig76081122183010"></a><span class="figcap"><b>Figure 1 </b>Querying index information</span><br><span><img id="EN-US_TOPIC_0000001933318558__image104161151122710" src="figure/en-us_image_0000001960397705.png"></span></div>
</li></ol>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_02_0055.html">Using CSS Cluster Search Engines</a></div>
</div>
</div>