forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
50 lines
9.9 KiB
HTML
50 lines
9.9 KiB
HTML
<a name="EN-US_TOPIC_0000001145694597"></a><a name="EN-US_TOPIC_0000001145694597"></a>
|
|
|
|
<h1 class="topictitle1">Fault Tolerance</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001145694597__en-us_topic_0059778347_p16741971293">This section describes parameters used for controlling the methods that the server processes an error occurring in the database system.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000001145694597__sc080ae6f23a54a1c9e4cf175efe7787b"><h4 class="sectiontitle">exit_on_error</h4><p id="EN-US_TOPIC_0000001145694597__a7ad01ca93c624e3db5807a041b89af8a"><strong id="EN-US_TOPIC_0000001145694597__en-us_topic_0059778347_en-us_topic_0058967750_b60161848">Parameter description</strong>: Specifies whether to terminate the current session.</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__p1970111811131"><strong id="EN-US_TOPIC_0000001145694597__b143237114179">Type</strong>: SUSET</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__aba2110a5cd794574a12bf64208ff72d1"><strong id="EN-US_TOPIC_0000001145694597__en-us_topic_0059778347_en-us_topic_0058967750_b61660271">Value range</strong>: Boolean</p>
|
|
<ul id="EN-US_TOPIC_0000001145694597__u8cb361c1af974d2e95961bc12947e04a"><li id="EN-US_TOPIC_0000001145694597__lacaccaee3f654fd88cc5b8ec5f96c362"><strong id="EN-US_TOPIC_0000001145694597__b116430464434353">on</strong> indicates that any error will terminate the current session.</li><li id="EN-US_TOPIC_0000001145694597__l7df4d1a407684ef5a8594173e09f327a"><strong id="EN-US_TOPIC_0000001145694597__b47819794934353">off</strong> indicates that only a FATAL error will terminate the current session.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001145694597__aa2d05d2fd34e4eb5a69c199248f9449d"><strong id="EN-US_TOPIC_0000001145694597__b55233292105553">Default value</strong>: <strong id="EN-US_TOPIC_0000001145694597__b842352706172155">off</strong></p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001145694597__s8467e2c2956442ca9ebe1bc4c69d6bf9"><h4 class="sectiontitle">omit_encoding_error</h4><p id="EN-US_TOPIC_0000001145694597__a227b1d80bce047119f555b047076e136"><strong id="EN-US_TOPIC_0000001145694597__b134931844734353">Parameter description</strong>: If this parameter is set to <strong id="EN-US_TOPIC_0000001145694597__b185203467134353">on</strong> and the client character set of the database is encoded in UTF-8 format, the occurring character encoding conversion errors will be recorded in logs. Additionally, converted characters that have conversion errors will be ignored and replaced with question marks (?).</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__p52932562718"><strong id="EN-US_TOPIC_0000001145694597__b3316933154719">Type</strong>: USERSET</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__ab5937fe7738948cd9d1db27a44ed6691"><strong id="EN-US_TOPIC_0000001145694597__en-us_topic_0059778347_en-us_topic_0058967750_b9233635">Value range</strong>: Boolean</p>
|
|
<ul id="EN-US_TOPIC_0000001145694597__u606c587290304407ab8329192db99180"><li id="EN-US_TOPIC_0000001145694597__l393c442d7c0b4ab4aa882edd4f60e247"><strong id="EN-US_TOPIC_0000001145694597__b207086933034353">on</strong> indicates that characters that have conversion errors will be ignored and replaced with question marks (?), and error information will be recorded in logs.</li><li id="EN-US_TOPIC_0000001145694597__lf8f5eb30c05b43c68a1396c413ea1d39"><strong id="EN-US_TOPIC_0000001145694597__b52762365334353">off</strong> indicates that characters that have conversion errors cannot be converted and error information will be directly displayed.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001145694597__aec3bce8889554182bc753808d430d6f9"><strong id="EN-US_TOPIC_0000001145694597__b847225000">Default value</strong>: <strong id="EN-US_TOPIC_0000001145694597__b793701409">off</strong></p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001145694597__sc9cd4d1562654b6ebb842765d3e398e4"><h4 class="sectiontitle">max_query_retry_times</h4><p id="EN-US_TOPIC_0000001145694597__a046399f2096540869f7ffed5edadc801"><strong id="EN-US_TOPIC_0000001145694597__b454414321112">Parameter description</strong>: Specifies the maximum number of automatic retry times when an SQL statement error occurs. Currently, a statement can start retrying if the following errors occur: <strong id="EN-US_TOPIC_0000001145694597__b115507331118">Connection reset by peer</strong>, <strong id="EN-US_TOPIC_0000001145694597__b135501933117">Lock wait timeout</strong>, and <strong id="EN-US_TOPIC_0000001145694597__b65507310116">Connection timed out</strong>. If this parameter is set to <strong id="EN-US_TOPIC_0000001145694597__b1955183101120">0</strong>, the retry function is disabled.</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__p2364123518270"><strong id="EN-US_TOPIC_0000001145694597__b11651133513477">Type</strong>: USERSET</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__a62f7dd88fc944363835fa76ab35bece3"><strong id="EN-US_TOPIC_0000001145694597__b1592203154216">Value range</strong>: an integer ranging from 0 to 20</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__a5de2356eb81445a9af6a108d4aeb9062"><strong id="EN-US_TOPIC_0000001145694597__b11441792421">Default value</strong>: <strong id="EN-US_TOPIC_0000001145694597__b161455914214">6</strong></p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001145694597__section388952103416"><h4 class="sectiontitle">cn_send_buffer_size</h4><p id="EN-US_TOPIC_0000001145694597__p18825283414"><strong id="EN-US_TOPIC_0000001145694597__b15431916299">Parameter description</strong>: Specifies the size of the data buffer used for data transmission on the CN.</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__p8536203113292"><strong id="EN-US_TOPIC_0000001145694597__b6320173617479">Type</strong>: POSTMASTER</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__p14881152173411"><strong id="EN-US_TOPIC_0000001145694597__en-us_topic_0059777744_en-us_topic_0058967712_b84235270695433">Value range</strong>: an integer ranging from 8 to 128. The unit is KB.</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__p988152183416"><strong id="EN-US_TOPIC_0000001145694597__b1413578664144214">Default value</strong>: <strong id="EN-US_TOPIC_0000001145694597__b578690575144214">8 KB</strong></p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001145694597__section37665521353"><h4 class="sectiontitle">max_cn_temp_file_size</h4><p id="EN-US_TOPIC_0000001145694597__p87668522356"><strong id="EN-US_TOPIC_0000001145694597__b1238984361413">Parameter description</strong>: Specifies the maximum number of temporary files that can be used by the CN during automatic SQL statement retries. The value <strong id="EN-US_TOPIC_0000001145694597__b166551175163">0</strong> indicates that no temporary file is used.</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__p185401035192815"><strong id="EN-US_TOPIC_0000001145694597__b7485836114714">Type</strong>: SIGHUP</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__p9766115218357"><strong id="EN-US_TOPIC_0000001145694597__b7713181101416">Value range</strong>: an integer ranging from 0 to 10485760. The unit is KB.</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__p1376675210357"><strong id="EN-US_TOPIC_0000001145694597__b278945492313">Default value</strong>: <strong id="EN-US_TOPIC_0000001145694597__b1779115452315">5 GB</strong></p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001145694597__section21795287405"><h4 class="sectiontitle">retry_ecode_list</h4><p id="EN-US_TOPIC_0000001145694597__p117952817400"><strong id="EN-US_TOPIC_0000001145694597__b1514154743915">Parameter description</strong>: Specifies the list of SQL error types that support automatic retry.</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__p728764511279"><strong id="EN-US_TOPIC_0000001145694597__b059753817474">Type</strong>: USERSET</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__p9179202844011"><strong id="EN-US_TOPIC_0000001145694597__b1397615017391">Value range</strong>: a string</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__p41791628124012"><strong id="EN-US_TOPIC_0000001145694597__b1777125273918">Default value</strong>: YY001 YY002 YY003 YY004 YY005 YY006 YY007 YY008 YY009 YY010 YY011 YY012 YY013 YY014 YY015 53200 08006 08000 57P01 XX003 XX009 YY016 CG003 CG004 F0011</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001145694597__section10785153116127"><h4 class="sectiontitle">data_sync_retry</h4><p id="EN-US_TOPIC_0000001145694597__p7785193161214"><strong id="EN-US_TOPIC_0000001145694597__b61345473920">Parameter description</strong>: Specifies whether to keep running the database when updated data fails to be written into disks by using the <strong id="EN-US_TOPIC_0000001145694597__b01485413396">fsync</strong> function. In some OSs, no error is reported even if <strong id="EN-US_TOPIC_0000001145694597__b874616557398">fsync</strong> has failed for multiple times. As a result, data is lost.</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__p182311650152811"><strong id="EN-US_TOPIC_0000001145694597__b87153382472">Type</strong>: POSTMASTER</p>
|
|
<p id="EN-US_TOPIC_0000001145694597__p27851631181211"><strong id="EN-US_TOPIC_0000001145694597__b20923145810398">Value range</strong>: Boolean</p>
|
|
<ul id="EN-US_TOPIC_0000001145694597__ul12785113119122"><li id="EN-US_TOPIC_0000001145694597__li57850310121"><strong id="EN-US_TOPIC_0000001145694597__b186535074013">on</strong>: The database keeps running and <strong id="EN-US_TOPIC_0000001145694597__b1365440184018">fsync</strong> is executed again after <strong id="EN-US_TOPIC_0000001145694597__b126558020403">fsync</strong> fails.</li><li id="EN-US_TOPIC_0000001145694597__li1778610314120"><strong id="EN-US_TOPIC_0000001145694597__b8188123404">off</strong>: <strong id="EN-US_TOPIC_0000001145694597__b51897244015">PANIC</strong> is reported and the database is stopped after <strong id="EN-US_TOPIC_0000001145694597__b11891219401">fsync</strong> fails.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001145694597__p1778623116125"><strong id="EN-US_TOPIC_0000001145694597__b257219311408">Default value</strong>: <strong id="EN-US_TOPIC_0000001145694597__b25731839406">off</strong></p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0883.html">GUC Parameters</a></div>
|
|
</div>
|
|
</div>
|
|
|