提交 c8c09c07 编写于 作者: D David Yozie

Revert "Revert "docs - add content for new gp_resource_group_queuing_timeout guc (#9925)""

This reverts commit 79bc8640.
上级 f1e43189
......@@ -259,6 +259,12 @@
href="../ref_guide/config_params/guc-list.xml#gp_resource_group_bypass" type="section"
scope="peer">gp_resource_group_bypass</xref></codeph> to bypass a resource group
concurrency limit.</p>
<p>You can set the server configuration parameter <codeph><xref
href="../ref_guide/config_params/guc-list.xml#gp_resource_group_queuing_timeout" type="section"
scope="peer">gp_resource_group_queuing_timeout</xref></codeph> to specify the
amount of time a transaction remains in the queue before Greenplum Database
cancels the transaction. The default timeout is zero, Greenplum queues
transactions indefinitely.</p>
</body>
</topic>
<topic id="topic833971717" xml:lang="en">
......@@ -852,7 +858,7 @@ gpstart
</body>
</topic>
<topic id="topic_jlz_hzg_pkb">
<title>Configuring Automatic Query Termination</title>
<title>Configuring Automatic Query Termination Based on Memory Usage</title>
<body>
<p>When resource groups have a global shared memory pool, the server configuration parameter
<codeph><xref
......@@ -1031,7 +1037,14 @@ gpstart
queue but has not yet been executed. Or, you may want to stop a running query that is
taking too long to execute, or one that is sitting idle in a transaction and taking up
resource group transaction slots that are needed by other users.</p>
<p>To cancel a running or queued transaction, you must first determine the process id (pid)
<p>By default, transactions can remain queued in a resource group indefinitely.
If you want Greenplum Database to cancel a queued transaction after a
specific amount of time, set the server configuration parameter <codeph><xref
href="../ref_guide/config_params/guc-list.xml#gp_resource_group_queuing_timeout" type="section"
scope="peer">gp_resource_group_queuing_timeout</xref></codeph>. When this
parameter is set to a value (milliseconds) greater than 0, Greenplum cancels
any queued transaction when it has waited longer than the configured timeout.</p>
<p>To manually cancel a running or queued transaction, you must first determine the process id (pid)
associated with the transaction. Once you have obtained the process id, you can invoke
<codeph>pg_cancel_backend()</codeph> to end that process, as shown below.</p>
<p>For example, to view the process information associated with all statements currently
......
......@@ -5144,6 +5144,38 @@
<codeph>gp_resource_group_memory_limit</codeph> setting.</p></note>
</body>
</topic>
<topic id="gp_resource_group_queuing_timeout">
<title>gp_resource_group_queuing_timeout</title>
<body>
<note>The <codeph>gp_resource_group_queuing_timeout</codeph> server configuration parameter
is enforced only when resource group-based resource management is active.</note>
<p>Cancel a transaction queued in a resource group that waits longer than the
specified number of milliseconds. The time limit applies separately to each
transaction. The default value is zero; transactions are queued indefinitely
and never time out.</p>
<table id="gp_resource_group_queuing_timeout_table">
<tgroup cols="3">
<colspec colnum="1" colname="col1" colwidth="1*"/>
<colspec colnum="2" colname="col2" colwidth="1*"/>
<colspec colnum="3" colname="col3" colwidth="1*"/>
<thead>
<row>
<entry colname="col1">Value Range</entry>
<entry colname="col2">Default</entry>
<entry colname="col3">Set Classifications</entry>
</row>
</thead>
<tbody>
<row>
<entry colname="col1">0 - <codeph>INT_MAX</codeph> millisecs</entry>
<entry colname="col2">0 millisecs</entry>
<entry colname="col3">master<p>system</p><p>session</p><p>reload</p></entry>
</row>
</tbody>
</tgroup>
</table>
</body>
</topic>
<topic id="gp_resource_manager">
<title>gp_resource_manager</title>
<body>
......
......@@ -1247,6 +1247,9 @@
</p><p>
<xref href="guc-list.xml#gp_resource_group_memory_limit" type="section"
>gp_resource_group_memory_limit</xref>
</p><p>
<xref href="guc-list.xml#gp_resource_group_queuing_timeout" type="section"
>gp_resource_group_queuing_timeout</xref>
</p><p>
<xref href="guc-list.xml#gp_resource_manager" type="section"
>gp_resource_manager</xref>
......
......@@ -142,6 +142,7 @@
<topicref href="guc-list.xml#gp_resource_group_bypass"/>
<topicref href="guc-list.xml#gp_resource_group_cpu_limit"/>
<topicref href="guc-list.xml#gp_resource_group_memory_limit"/>
<topicref href="guc-list.xml#gp_resource_group_queuing_timeout"/>
<topicref href="guc-list.xml#gp_resource_manager"/>
<topicref href="guc-list.xml#gp_resqueue_memory_policy"/>
<topicref href="guc-list.xml#gp_resqueue_priority"/>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册