doc-exports/docs/css/umn/css_02_0089.html
Zheng, Xiu 5b5876528a CSS UMN 22.5.1 Version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com>
Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
2023-03-29 17:17:49 +00:00

19 lines
1.1 KiB
HTML

<a name="css_02_0089"></a><a name="css_02_0089"></a>
<h1 class="topictitle1">Can I Change the Number of Shards to Four with Two Replicas When There Is One Shard Set in the JSON File?</h1>
<div id="body1594694216151"><p id="css_02_0089__p4393185215538">Once an index is created, the number of primary shards cannot be changed.</p>
<p id="css_02_0089__p03931752145318">You can run the following command in Kibana to change the number of replicas:</p>
<pre class="screen" id="css_02_0089__screen13254200258">PUT /indexname/_settings
{
"number_of_replicas":1 //Number of replicas
}</pre>
<div class="note" id="css_02_0089__note7399192511374"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="css_02_0089__p53991725193717"><strong id="css_02_0089__b31802244311228">index</strong> specifies the index name. Set this parameter based on site requirements.</p>
</div></div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_02_0066.html">Resource Usage and Change</a></div>
</div>
</div>