forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
27 lines
5.7 KiB
HTML
27 lines
5.7 KiB
HTML
<a name="EN-US_TOPIC_0000001233563147"></a><a name="EN-US_TOPIC_0000001233563147"></a>
|
|
|
|
<h1 class="topictitle1">Sending Server</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001233563147__sf771c7a32903464bbc7a3292919f840f"><h4 class="sectiontitle">wal_keep_segments</h4><p id="EN-US_TOPIC_0000001233563147__a61a696f698264066938b9c22fa05bfe0"><strong id="EN-US_TOPIC_0000001233563147__en-us_topic_0059777860_b1813097615717">Parameter description</strong>: Specifies the number of Xlog file segments. Specifies the minimum number of transaction log files stored in the <strong id="EN-US_TOPIC_0000001233563147__b113260300141431">pg_xlog</strong> directory. The standby server obtains log files from the primary server for streaming replication.</p>
|
|
<p id="EN-US_TOPIC_0000001233563147__p8610237105517"><strong id="EN-US_TOPIC_0000001233563147__b103984281469">Type</strong>: SIGHUP</p>
|
|
<p id="EN-US_TOPIC_0000001233563147__aa365c8e30f2e41c8a86ca427f3787cfc"><strong id="EN-US_TOPIC_0000001233563147__en-us_topic_0059777860_en-us_topic_0058967770_b56683537">Value range</strong>: an integer ranging from 2 to INT_MAX</p>
|
|
<p id="EN-US_TOPIC_0000001233563147__a186bc27b025942b4b80c939fe0908125"><strong id="EN-US_TOPIC_0000001233563147__b148854341259">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563147__b178863342053">128</strong></p>
|
|
<p id="EN-US_TOPIC_0000001233563147__a42ffc5684d8e4c7b9d64306ee14e1e40"><strong id="EN-US_TOPIC_0000001233563147__en-us_topic_0059777860_b65576592163846">Setting suggestions</strong>:</p>
|
|
<ul id="EN-US_TOPIC_0000001233563147__ufb7feb846d234b7491781c275a2456f9"><li id="EN-US_TOPIC_0000001233563147__l9dc5dbb2ac0143c6baa795d4cc1c7f7a">During WAL archiving or recovery from a checkpoint on the server, the system retains more log files than the number specified by <strong id="EN-US_TOPIC_0000001233563147__b68528376141431">wal_keep_segments</strong>.</li><li id="EN-US_TOPIC_0000001233563147__l1f227a7a28114de690d844886c0b1e8f">If this parameter is set to a too small value, a transaction log may have been overwritten by a new transaction log before requested by the standby server. As a result, the request fails, and the relationship between the primary and standby servers is interrupted.</li><li id="EN-US_TOPIC_0000001233563147__ld6dcd55ad1b54d08981bd29a50f65058">If the HA system uses asynchronous transmission, increase the value of <strong id="EN-US_TOPIC_0000001233563147__b27940857641431">wal_keep_segments</strong> when data greater than 4 GB is continuously imported in COPY mode. Take T6000 board as an example. If the data to be imported reaches 50 GB, you are advised to set this parameter to <strong id="EN-US_TOPIC_0000001233563147__b842352706162915">1000</strong>. You can dynamically restore the setting of this parameter after data import is complete and the WAL synchronization is proper.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001233563147__section411617104582"><h4 class="sectiontitle">max_build_io_limit</h4><p id="EN-US_TOPIC_0000001233563147__p1838405112153"><strong id="EN-US_TOPIC_0000001233563147__b15894436133711">Parameter description:</strong> Specifies the data volume that can be read from the disk per second when the primary server provides a build session to the standby server.</p>
|
|
<p id="EN-US_TOPIC_0000001233563147__p16452991512"><strong id="EN-US_TOPIC_0000001233563147__b12101144114617">Type</strong>: SIGHUP</p>
|
|
<p id="EN-US_TOPIC_0000001233563147__a8003338d1aef4ad791fa3a287d3f6d85"><strong id="EN-US_TOPIC_0000001233563147__b1555620210426">Value range</strong>: an integer ranging from 0 to 1048576. The unit is KB.</p>
|
|
<p id="EN-US_TOPIC_0000001233563147__a8c7e95b2b04c43369de3643e5545c5aa"><strong id="EN-US_TOPIC_0000001233563147__b8192113111422">Default value:</strong> 0, indicating that the I/O flow is not restricted when the primary server provides a build session to the standby server.</p>
|
|
<p id="EN-US_TOPIC_0000001233563147__ad09297e4cd53481086d23046c081bd4f"><strong id="EN-US_TOPIC_0000001233563147__b125071132164411">Setting suggestions:</strong> Set this parameter based on the disk bandwidth and job model. If there is no flow restriction or job interference, for disks with good performance such as SSDs, a full build consumes a relatively small proportion of bandwidth and has little impact on service performance. In this case, you do not need to set the threshold. If the service performance of a common 10,000 rpm SAS disk deteriorates significantly during a build, you are advised to set the parameter to 20 MB.</p>
|
|
<p id="EN-US_TOPIC_0000001233563147__p12564541115817">This setting directly affects the build speed and completion time. Therefore, you are advised to set this parameter to a value larger than 10 MB. During off-peak hours, you are advised to remove the flow restriction to restore to the normal build speed.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001233563147__note9938570213"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001233563147__ul2072512452419"><li id="EN-US_TOPIC_0000001233563147__li1572516243248">This parameter is used during peak hours or when the disk I/O pressure of the primary server is high. It limits the build flow rate on the standby server to reduce the impact on primary server services. After the service peak hours, you can remove the restriction or reset the flow rate threshold.</li><li id="EN-US_TOPIC_0000001233563147__li47251824192412">You are advised to set a proper threshold based on service scenarios and disk performance.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0904.html">HA Replication</a></div>
|
|
</div>
|
|
</div>
|
|
|