forked from docs/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com> Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
65 lines
5.2 KiB
HTML
65 lines
5.2 KiB
HTML
<a name="css_01_0166"></a><a name="css_01_0166"></a>
|
|
|
|
<h1 class="topictitle1">Synchronizing Specified Indexes</h1>
|
|
<div id="body0000001248039183"><p id="css_01_0166__p8913314919"><strong id="css_01_0166__en-us_topic_0000001223594396_b29794731420">Synchronize a single index</strong>.</p>
|
|
<p id="css_01_0166__en-us_topic_0000001223594396_p1439793964013">The request URL and request body parameters are as follows:</p>
|
|
<pre class="screen" id="css_01_0166__en-us_topic_0000001223594396_screen989285914401">PUT start_remote_sync</pre>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_01_0166__en-us_topic_0000001223594396_table14127192514428" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request body parameters</caption><thead align="left"><tr id="css_01_0166__en-us_topic_0000001223594396_row1912832594211"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.2.3.1.1"><p id="css_01_0166__en-us_topic_0000001223594396_p81282025144212">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.2.3.1.2"><p id="css_01_0166__en-us_topic_0000001223594396_p61281525194214">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_01_0166__en-us_topic_0000001223594396_row1812882524213"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.3.1.1 "><p id="css_01_0166__en-us_topic_0000001223594396_p191281225104214">remote_cluster</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.3.1.2 "><p id="css_01_0166__en-us_topic_0000001223594396_p7128125144220">Name of the primary cluster. The default name is <strong id="css_01_0166__b15121134835311">leader1</strong>. You can change the name by configuring the primary cluster information.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0166__en-us_topic_0000001223594396_row16128425124215"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.3.1.1 "><p id="css_01_0166__en-us_topic_0000001223594396_p19128162512426">remote_index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.3.1.2 "><p id="css_01_0166__en-us_topic_0000001223594396_p712820253420">Name of the index to be synchronized in the primary cluster</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0166__en-us_topic_0000001223594396_row2128162534218"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.3.1.1 "><p id="css_01_0166__en-us_topic_0000001223594396_p112862534210">local_index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.3.1.2 "><p id="css_01_0166__en-us_topic_0000001223594396_p15128162574217">Name of the index being synchronized to the secondary cluster</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0166__en-us_topic_0000001223594396_row183191018124415"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.3.1.1 "><p id="css_01_0166__en-us_topic_0000001223594396_p5319101820447">settings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.2.3.1.2 "><p id="css_01_0166__en-us_topic_0000001223594396_p118445410205">Index settings of the index being synchronized</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="css_01_0166__en-us_topic_0000001223594396_p1647615862518">After the synchronization function is enabled, indexes in the secondary cluster become read-only and are periodically synchronized with indexes in the primary cluster.</p>
|
|
<p id="css_01_0166__en-us_topic_0000001223594396_p4407183864010">The following are two examples:</p>
|
|
<ol id="css_01_0166__ol8576164420345"><li id="css_01_0166__li857610443347">Synchronize a single index from the primary cluster to the secondary cluster.<pre class="screen" id="css_01_0166__en-us_topic_0000001223594396_screen16407173811400">PUT start_remote_sync
|
|
{
|
|
"remote_cluster": "leader1",
|
|
"remote_index": "data1_leader",
|
|
"local_index": "data1_follower"
|
|
}</pre>
|
|
</li><li id="css_01_0166__li182146539346">Synchronize a single index from the primary cluster to the secondary cluster and modify the index configurations.<pre class="screen" id="css_01_0166__en-us_topic_0000001223594396_screen17681038181312">PUT start_remote_sync
|
|
{
|
|
"remote_cluster": "leader1",
|
|
"remote_index": "data1_leader",
|
|
"local_index": "data1_follower",
|
|
"settings": {
|
|
"number_of_replicas": 4
|
|
}
|
|
}</pre>
|
|
<div class="note" id="css_01_0166__en-us_topic_0000001223594396_note7407203813409"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="css_01_0166__en-us_topic_0000001223594396_p7407338124018">The following index configurations cannot be modified:</p>
|
|
<ul id="css_01_0166__en-us_topic_0000001223594396_ul11407638134019"><li id="css_01_0166__en-us_topic_0000001223594396_li9407163834012">number_of_shards</li><li id="css_01_0166__en-us_topic_0000001223594396_li19407133824019">version.created</li><li id="css_01_0166__en-us_topic_0000001223594396_li17407153884013">uuid</li><li id="css_01_0166__en-us_topic_0000001223594396_li240733824014">creation_date</li><li id="css_01_0166__en-us_topic_0000001223594396_li1140713814402">soft_deletes.enabled</li></ul>
|
|
</div></div>
|
|
</li></ol>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_01_0164.html">Instructions</a></div>
|
|
</div>
|
|
</div>
|
|
|