forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
71 lines
16 KiB
HTML
71 lines
16 KiB
HTML
<a name="EN-US_TOPIC_0000001811490365"></a><a name="EN-US_TOPIC_0000001811490365"></a>
|
|
|
|
<h1 class="topictitle1">Settings</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001811490365__sd030b2a8b4084ddfa6b1e547efdc42c6"><h4 class="sectiontitle">synchronous_commit</h4><p id="EN-US_TOPIC_0000001811490365__a96966d76c548471e84d4f7c5d801fedd"><strong id="EN-US_TOPIC_0000001811490365__en-us_topic_0059778393_en-us_topic_0058967585_b585119011822">Parameter description</strong>: Specifies the synchronization mode of the current transaction.</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p109551819123711"><strong id="EN-US_TOPIC_0000001811490365__b189512086467">Type</strong>: USERSET</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__a30ff9eb053974e2d900e45a0cd6e990c"><strong id="EN-US_TOPIC_0000001811490365__en-us_topic_0059778393_a7a605461f9d84bd5856d5f054bdd0c48">Value range</strong>: enumerated values</p>
|
|
<ul id="EN-US_TOPIC_0000001811490365__uf0355d57c2804839a2d2e261067ec2a0"><li id="EN-US_TOPIC_0000001811490365__l5d7890fb7cb14b0081aadf21588ca48a"><strong id="EN-US_TOPIC_0000001811490365__b7849151432210">on</strong> indicates synchronization logs of a standby server are updated to disks.</li><li id="EN-US_TOPIC_0000001811490365__l6113aa4839364da6b69f330dfee7ce97"><strong id="EN-US_TOPIC_0000001811490365__b178502014162212">off</strong> indicates asynchronous commit.</li><li id="EN-US_TOPIC_0000001811490365__l5cef96a1b6804a87a303dbe08e72444e"><strong id="EN-US_TOPIC_0000001811490365__b396278730171633">local</strong> indicates local commit.</li><li id="EN-US_TOPIC_0000001811490365__l7a6308ff0faa4872bc5404a98cd57d45"><strong id="EN-US_TOPIC_0000001811490365__b254680692171635">remote_write</strong> indicates synchronization logs of a standby server are written to disks.</li><li id="EN-US_TOPIC_0000001811490365__l477a247b5fe64e619b805d4991ca135a"><strong id="EN-US_TOPIC_0000001811490365__b189233902171648">remote_receive</strong> indicates synchronization logs of a standby server are required to receive data.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001811490365__ad3d37f92891d4a53a680303011b73dc2"><strong id="EN-US_TOPIC_0000001811490365__b241669561">Default value</strong>: <strong id="EN-US_TOPIC_0000001811490365__b1484600121">on</strong></p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811490365__section113712561878"><h4 class="sectiontitle">wal_skip_fpw_level</h4><p id="EN-US_TOPIC_0000001811490365__p989017261192"><strong id="EN-US_TOPIC_0000001811490365__b14200915413">Parameter description</strong>: Specifies whether to write the whole page to WALs when a page is modified for the first time after a checkpoint on a DN. This parameter controls if FPWs of different kinds are logged in WAL to avoid space shortage or slow synchronization between primary and standby nodes due to too many WAL logs. This parameter is supported by cluster versions 8.3.0 and later. For versions earlier than 8.3.0, see <strong id="EN-US_TOPIC_0000001811490365__b186201119194519">write_fpi_hint</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p123775620717"><strong id="EN-US_TOPIC_0000001811490365__b121797105310541">Type</strong>: USERSET</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p8373561712"><strong id="EN-US_TOPIC_0000001811490365__b1684511274497">Value range</strong>: an integer</p>
|
|
<ul id="EN-US_TOPIC_0000001811490365__ul1371056075"><li id="EN-US_TOPIC_0000001811490365__li1337356576"><strong id="EN-US_TOPIC_0000001811490365__b4118144704615">0</strong>: enables All FPWs.</li><li id="EN-US_TOPIC_0000001811490365__li88342044191017"><strong id="EN-US_TOPIC_0000001811490365__b104337194715">1</strong>: specifies that when setting hintbits for the heap tuples is the first change since checkpoint, FPW logs are not written. Whether this function takes effect is not affected by the <strong id="EN-US_TOPIC_0000001811490365__b5854829184716">enable_crc_check</strong> and <strong id="EN-US_TOPIC_0000001811490365__b985813326473">wal_log_hints</strong> parameters. If this parameter is set to <strong id="EN-US_TOPIC_0000001811490365__b2767112925718">1</strong>, it is equivalent to <strong id="EN-US_TOPIC_0000001811490365__b663112116110">write_fpi_hint=off</strong> in an earlier version. For details, <strong id="EN-US_TOPIC_0000001811490365__b20366125012">see write_fpi_hint</strong>.</li><li id="EN-US_TOPIC_0000001811490365__li19372567716">2: FPW logs of indexes and FPW logs after the hintbits on the heap page is modified are not recorded.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001811490365__p18375563711"><strong id="EN-US_TOPIC_0000001811490365__b7321490193149">Default value</strong>: <strong id="EN-US_TOPIC_0000001811490365__b10580109803149">1</strong></p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811490365__section1164607115117"><h4 class="sectiontitle">wal_decelerate_policy</h4><p id="EN-US_TOPIC_0000001811490365__p1646177205119"><strong id="EN-US_TOPIC_0000001811490365__b10821719121210">Parameter description</strong>: Specifies the behavior policy after rate limiting is triggered. This parameter is supported only by clusters of 8.2.0 and later versions.</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p664627145115"><strong id="EN-US_TOPIC_0000001811490365__b2112744724">Type</strong>: USERSET</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p313974212160"><strong id="EN-US_TOPIC_0000001811490365__b523578881">Value range</strong>: enumerated values</p>
|
|
<ul id="EN-US_TOPIC_0000001811490365__ul9139342121616"><li id="EN-US_TOPIC_0000001811490365__li31391642141615"><strong id="EN-US_TOPIC_0000001811490365__b1184716319122">warning</strong> indicates that an alarm is generated but the rate is not limited.</li><li id="EN-US_TOPIC_0000001811490365__li1513914212168"><strong id="EN-US_TOPIC_0000001811490365__b1432613476124">decelerate</strong> indicates that the rate will be limited based on policy settings.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001811490365__p26468715513"><strong id="EN-US_TOPIC_0000001811490365__b153971515443025">Default value</strong>: <strong id="EN-US_TOPIC_0000001811490365__b190262036443025">warning</strong></p>
|
|
<div class="note" id="EN-US_TOPIC_0000001811490365__note11766714716"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001811490365__p197611716473">Setting the parameter to <strong id="EN-US_TOPIC_0000001811490365__b6718422101314">warning</strong> does not affect performance. Setting it to <strong id="EN-US_TOPIC_0000001811490365__b139661546131314">decelerate</strong> will limit the rate based on policy settings if the rate exceeds the threshold.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811490365__section159791710161119"><h4 class="sectiontitle">wal_write_speed</h4><p id="EN-US_TOPIC_0000001811490365__p3979111012111"><strong id="EN-US_TOPIC_0000001811490365__b17216183281520">Parameter description</strong>: Specifies the maximum WAL write speed (byte/s) allowed by each query on a single DN. This parameter is supported only by clusters of 8.2.0 or later.</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p18979201014110"><strong id="EN-US_TOPIC_0000001811490365__b1074292115">Type</strong>: USERSET</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p3979910181118"><strong id="EN-US_TOPIC_0000001811490365__b319143717154">Value range</strong>: an integer ranging from 1024 to 10240000, in KB.</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p20979171031112"><strong id="EN-US_TOPIC_0000001811490365__b0389106191519">Default value</strong>: <strong id="EN-US_TOPIC_0000001811490365__b75937116156">30MB</strong></p>
|
|
<div class="note" id="EN-US_TOPIC_0000001811490365__note84101137174717"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001811490365__p2410637144711">The rate of a large number of jobs with index copy and deletion operations will be limited.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811490365__section1467741311712"><h4 class="sectiontitle">wal_decelerate_trigger_threshold</h4><p id="EN-US_TOPIC_0000001811490365__p116771813201716"><strong id="EN-US_TOPIC_0000001811490365__b1181493141711">Parameter description</strong>: Specifies the threshold of WAL write rate limiting for each query on a single DN. This parameter is supported only by cluster versions 8.2.0 and later.</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p667711351715"><strong id="EN-US_TOPIC_0000001811490365__b934039684">Type</strong>: USERSET</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p14677181351716"><strong id="EN-US_TOPIC_0000001811490365__b2677141317172">Value range</strong>: an integer ranging from 1024 to 100000000000, in KB.</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p1067731331711"><strong id="EN-US_TOPIC_0000001811490365__b99827693543025">Default value</strong>: <strong id="EN-US_TOPIC_0000001811490365__b134071331181520">128MB</strong></p>
|
|
<div class="note" id="EN-US_TOPIC_0000001811490365__note17772185011474"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001811490365__p84120321214">This function is triggered only if the number of Xlogs generated by a single query is greater than the value of this parameter. DDL operations or a small number of DML operations are not affected.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811490365__seb6fde0eb5bf4b5488d9f6069aeeaa5c"><a name="EN-US_TOPIC_0000001811490365__seb6fde0eb5bf4b5488d9f6069aeeaa5c"></a><a name="seb6fde0eb5bf4b5488d9f6069aeeaa5c"></a><h4 class="sectiontitle">commit_delay</h4><p id="EN-US_TOPIC_0000001811490365__abf48d2d0f29b4552960389a4b5253b79"><strong id="EN-US_TOPIC_0000001811490365__en-us_topic_0059778393_en-us_topic_0058967585_b46877363">Parameter description</strong>: Specifies the duration of committed data be stored in the WAL buffer.</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p5544152619466"><strong id="EN-US_TOPIC_0000001811490365__b18810112174620">Type</strong>: USERSET</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__a17ca0a4d9af64fb99dab86285e8c0b96"><strong id="EN-US_TOPIC_0000001811490365__b17810037969">Value range</strong>: an integer, ranging from 0 to 100000 (unit: μs). <strong id="EN-US_TOPIC_0000001811490365__b1895920466720">0</strong> indicates no delay.</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__a5ebb43d427274cad8ee0729ecf417b6a"><strong id="EN-US_TOPIC_0000001811490365__b168092314613">Default value</strong>: <strong id="EN-US_TOPIC_0000001811490365__b1881112311469">0</strong></p>
|
|
<div class="notice" id="EN-US_TOPIC_0000001811490365__nd205762172664997bae80d91567e2c62"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001811490365__u41ae88b02b9940b6942c025983f44141"><li id="EN-US_TOPIC_0000001811490365__lc00c8b958c1f491482ec74c4e14c0e49">When this parameter is set to a value other than 0, the committed transaction is stored in the WAL buffer instead of being written to the WAL immediately. Then, the WalWriter process flushes the buffer out to disks periodically.</li><li id="EN-US_TOPIC_0000001811490365__lf838215a72ba44f08136f04ecef55031">If system load is high, other transactions are probably ready to be committed within the delay. If no transactions are waiting to be submitted, the delay is a waste of time.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811490365__sf723fa16d18f458d8c205d93312c515a"><h4 class="sectiontitle">commit_siblings</h4><p id="EN-US_TOPIC_0000001811490365__ab7ee5ba3c5604ce59329e97974ac1334"><strong id="EN-US_TOPIC_0000001811490365__b2042310123209">Parameter description</strong>: Specifies a limit on the number of ongoing transactions. If the number of ongoing transactions is greater than the limit, a new transaction will wait for the period of time specified by <a href="#EN-US_TOPIC_0000001811490365__seb6fde0eb5bf4b5488d9f6069aeeaa5c">commit_delay</a> before it is submitted. If the number of ongoing transactions is less than the limit, the new transaction is immediately written into a WAL.</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p1572313357461"><strong id="EN-US_TOPIC_0000001811490365__b398091294613">Type</strong>: USERSET</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__a0e51cb4bc6ca4b86a6a1cbc3248ad4df"><strong id="EN-US_TOPIC_0000001811490365__en-us_topic_0059778393_en-us_topic_0058967585_b54591201">Value range</strong>: an integer ranging from 0 to 1000</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__a1e03abba0b704a4e8d8fc2d70266372a"><strong id="EN-US_TOPIC_0000001811490365__b57723173">Default value</strong>: <strong id="EN-US_TOPIC_0000001811490365__b842352706165917">5</strong></p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811490365__section1771453071415"><h4 class="sectiontitle">wal_compression</h4><p id="EN-US_TOPIC_0000001811490365__p671412308148"><strong id="EN-US_TOPIC_0000001811490365__b1088317358134">Parameter description</strong>: Specifies whether to compress FPI pages.</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p1271416303143"><strong id="EN-US_TOPIC_0000001811490365__b0789185912131">Type</strong>: USERSET</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p671543010141"><strong id="EN-US_TOPIC_0000001811490365__b729171141416">Value range</strong>: Boolean</p>
|
|
<ul id="EN-US_TOPIC_0000001811490365__ul1258872413409"><li id="EN-US_TOPIC_0000001811490365__li13588624184019"><strong id="EN-US_TOPIC_0000001811490365__b9227136147">on</strong>: enable the compression</li><li id="EN-US_TOPIC_0000001811490365__li65880248408"><strong id="EN-US_TOPIC_0000001811490365__b6813122751417">off</strong>: disable the compression</li></ul>
|
|
<p id="EN-US_TOPIC_0000001811490365__p1171593011144"><strong id="EN-US_TOPIC_0000001811490365__b204551534111417">Default value</strong>: <strong id="EN-US_TOPIC_0000001811490365__b546053411413">on</strong></p>
|
|
<div class="notice" id="EN-US_TOPIC_0000001811490365__note471518306149"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001811490365__ul971517301142"><li id="EN-US_TOPIC_0000001811490365__li8715143001412">Only zlib compression algorithm is supported.</li><li id="EN-US_TOPIC_0000001811490365__li13715193010142">For clusters that are upgraded to the current version from an earlier version, this parameter is set to <strong id="EN-US_TOPIC_0000001811490365__b121413398164">off</strong> by default. You can run the <strong id="EN-US_TOPIC_0000001811490365__b9759108101718">gs_guc</strong> command to enable the FPI compression function if needed.</li><li id="EN-US_TOPIC_0000001811490365__li770343415463">If the current version is a newly installed version, this parameter is set to <strong id="EN-US_TOPIC_0000001811490365__b5110444181718">on</strong> by default.</li><li id="EN-US_TOPIC_0000001811490365__li684171015474">If this parameter is manually enabled for a cluster upgraded from an earlier version, the cluster cannot be rolled back.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001811490365__section18715163012142"><h4 class="sectiontitle">wal_compression_level</h4><p id="EN-US_TOPIC_0000001811490365__p1571553081411"><strong id="EN-US_TOPIC_0000001811490365__b1445914281189">Parameter description</strong>: Specifies the compression level of zlib compression algorithm when the <strong id="EN-US_TOPIC_0000001811490365__b183311557171815">wal_compression</strong> parameter is enabled.</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p4715130161411"><strong id="EN-US_TOPIC_0000001811490365__b1975815981817">Type</strong>: USERSET</p>
|
|
<p id="EN-US_TOPIC_0000001811490365__p107157308141"><strong id="EN-US_TOPIC_0000001811490365__b17412141910">Value range</strong>: an integer ranging from 0 to 9.</p>
|
|
<ul id="EN-US_TOPIC_0000001811490365__ul158421716475"><li id="EN-US_TOPIC_0000001811490365__li4584171784714"><strong id="EN-US_TOPIC_0000001811490365__b43542317194">0</strong> indicates no compression.</li><li id="EN-US_TOPIC_0000001811490365__li458461744713"><strong id="EN-US_TOPIC_0000001811490365__b197461542191910">1</strong> indicates the lowest compression ratio.</li><li id="EN-US_TOPIC_0000001811490365__li4585171754713"><strong id="EN-US_TOPIC_0000001811490365__b02301506191">9</strong> indicates the highest compression ratio.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001811490365__p1571533016143"><strong id="EN-US_TOPIC_0000001811490365__b106755518192">Default value</strong>: <strong id="EN-US_TOPIC_0000001811490365__b14680175121918">9</strong></p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0900.html">Write Ahead Logs</a></div>
|
|
</div>
|
|
</div>
|
|
|