forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com> Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
20 lines
3.4 KiB
HTML
20 lines
3.4 KiB
HTML
<a name="rds_faq_0031"></a><a name="rds_faq_0031"></a>
|
|
|
|
<h1 class="topictitle1">What Inappropriate Parameter Settings Cause Unavailability of the PostgreSQL Database?</h1>
|
|
<div id="body8662426"><p id="rds_faq_0031__en-us_topic_0086557101_p383583718103">In the following cases, inappropriate parameter settings cause the database to be unavailable:</p>
|
|
<ul id="rds_faq_0031__u1fcafd98dea542539176a11a8cd95c1a"><li id="rds_faq_0031__l5657cf34b55d4d86ae38597b1f713c97">Parameter value ranges are related to DB instance specifications.<p id="rds_faq_0031__en-us_topic_0086557101_p576701181552"><a name="rds_faq_0031__l5657cf34b55d4d86ae38597b1f713c97"></a><a name="l5657cf34b55d4d86ae38597b1f713c97"></a>The maximum values of <strong id="rds_faq_0031__b8423527069635">shared_buffers</strong> and <strong id="rds_faq_0031__b8423527069638">max_connections</strong> are related to the DB instance physical memory. If you set these parameters inappropriately, the database will be unavailable.</p>
|
|
</li><li id="rds_faq_0031__l66728c23c44b4514bb501cc2b0a901c4">Parameter association is incorrect.<ul id="rds_faq_0031__u116cfaf712934929b0b41940a84baa0f"><li id="rds_faq_0031__leddd1e59839f440e9e52fda77161e589">If <strong id="rds_faq_0031__b84235270691239">log_parser_stats</strong>, <strong id="rds_faq_0031__b84235270691243">log_planner_stats</strong>, or <strong id="rds_faq_0031__b84235270691247">log_executor_stats</strong> is enabled, you must disable <strong id="rds_faq_0031__b8423527069145">log_statement_stats</strong>. Otherwise, the database is unavailable.</li><li id="rds_faq_0031__lf6bb62d7330d400b82a351001b732739"><strong id="rds_faq_0031__b84235270691610">max_connections</strong>, <strong id="rds_faq_0031__b84235270691615">autovacuum_max_workers</strong>, and <strong id="rds_faq_0031__b84235270691625">max_worker_processes</strong> must meet the following requirements. Otherwise, the database is unavailable.<p id="rds_faq_0031__a6e11bb01996c4489b5b2d6c79eb73cba"><strong id="rds_faq_0031__b84235270691828">max_connections</strong> value + <strong id="rds_faq_0031__b84235270691841">autovacuum_max_workers</strong> value + <strong id="rds_faq_0031__b84235270691854">max_worker_processes</strong> value + 1 < 8388607</p>
|
|
</li></ul>
|
|
</li></ul>
|
|
<div class="note" id="rds_faq_0031__n550e5b590cba42bd8362c503835418f8"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="rds_faq_0031__ace9f6b705c7b4fd380c3fb004e7d9161">For additional details, visit the <a href="https://www.postgresql.org/docs/current/static/runtime-config.html" target="_blank" rel="noopener noreferrer">PostgreSQL official website</a>.</p>
|
|
</div></div>
|
|
<p id="rds_faq_0031__ae9669ffaf6b5452fb277b4d7c813e9fa">Solution:</p>
|
|
<ol id="rds_faq_0031__oc395e98d7347475a874dc839dd305fbd"><li id="rds_faq_0031__l5e3e80cd212e4b1388e3e49f4eb4d886">Log in to the RDS console and query the logs to locate the incorrectly configured parameters.</li><li id="rds_faq_0031__l2b013bd3aad24d9a9fa0ecd7fa42a61b">On the <strong id="rds_faq_0031__b842352706143930">Configuration</strong> page, change parameters to default values and reboot the database.</li><li id="rds_faq_0031__lae7367d52f6e40e9b798e9bf6e88b5bc">Configure the incorrect parameter values and restore other parameters to their original default values.</li></ol>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rds_faq_0142.html">Database Parameter Modification</a></div>
|
|
</div>
|
|
</div>
|
|
|