forked from laiweijian4/doc-exports
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>
19 lines
1.6 KiB
HTML
19 lines
1.6 KiB
HTML
<a name="css_02_0068"></a><a name="css_02_0068"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Configure a Two-Replica CSS Cluster?</h1>
|
|
<div id="body1586776785395"><ol id="css_02_0068__ol123963819421"><li id="css_02_0068__li44013814219">Run <strong id="css_02_0068__b18543335195814">GET _cat/indices?v</strong> in Kibana to check the number of cluster replicas. If the value of <strong id="css_02_0068__b48980595917">rep</strong> is <strong id="css_02_0068__b2038981865918">1</strong>, the cluster has two replicas.<p id="css_02_0068__p83190499169"><span><img id="css_02_0068__image4252362162" src="en-us_image_0000001528097321.png"></span></p>
|
|
</li><li id="css_02_0068__li46881939124212">If the value of <strong id="css_02_0068__b13761841002">rep</strong> is not <strong id="css_02_0068__b5761341508">1</strong>, run the following command to set the number of replicas:<p id="css_02_0068__p18821255163820">PUT /index/_settings</p>
|
|
<p id="css_02_0068__p1182555173810">{</p>
|
|
<p id="css_02_0068__p98255543818">"number_of_replicas" : 1 //Number of replicas</p>
|
|
<p id="css_02_0068__p19821155143811">}</p>
|
|
<div class="note" id="css_02_0068__note7399192511374"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="css_02_0068__p53991725193717"><strong id="css_02_0068__b1973966699105312">index</strong> specifies the index name. Set this parameter based on site requirements.</p>
|
|
</div></div>
|
|
</li></ol>
|
|
</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>
|
|
|