<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Workload management &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/workload-management/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Fri, 22 Sep 2017 20:43:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>Greenplum: Script to find running queries or statements which are Waiting in Resource Queues</title>
		<link>https://www.dbrnd.com/2017/11/greenplum-script-to-find-running-queries-or-statements-which-are-waiting-in-resource-queues/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 30 Nov 2017 16:16:09 +0000</pubDate>
				<category><![CDATA[Greenplum]]></category>
		<category><![CDATA[Greenplum DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[gp_resqueue_status]]></category>
		<category><![CDATA[gp_toolkit]]></category>
		<category><![CDATA[Greenplum Administrator]]></category>
		<category><![CDATA[Greenplum Error]]></category>
		<category><![CDATA[Greenplum Monitoring]]></category>
		<category><![CDATA[Greenplum Performance Tuning]]></category>
		<category><![CDATA[Greenplum Programming]]></category>
		<category><![CDATA[Greenplum Query]]></category>
		<category><![CDATA[Greenplum Tips and Tricks]]></category>
		<category><![CDATA[PostgreSQL 8.2]]></category>
		<category><![CDATA[Resource Queue]]></category>
		<category><![CDATA[Workload management]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=6120</guid>

					<description><![CDATA[In this post, I am sharing a script to check the list of running queries or statements which are waiting in the Resource Queues of Greenplum. The Workload management of Greenplum means &#8211; Set priorities of database user&#8217;s queries using Resource Queues. If you create RQ with the limit of 10 concurrent queries and user [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-script-to-find-running-queries-or-statements-which-are-waiting-in-resource-queues%2F&amp;linkname=Greenplum%3A%20Script%20to%20find%20running%20queries%20or%20statements%20which%20are%20Waiting%20in%20Resource%20Queues" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-script-to-find-running-queries-or-statements-which-are-waiting-in-resource-queues%2F&amp;linkname=Greenplum%3A%20Script%20to%20find%20running%20queries%20or%20statements%20which%20are%20Waiting%20in%20Resource%20Queues" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-script-to-find-running-queries-or-statements-which-are-waiting-in-resource-queues%2F&amp;linkname=Greenplum%3A%20Script%20to%20find%20running%20queries%20or%20statements%20which%20are%20Waiting%20in%20Resource%20Queues" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-script-to-find-running-queries-or-statements-which-are-waiting-in-resource-queues%2F&amp;linkname=Greenplum%3A%20Script%20to%20find%20running%20queries%20or%20statements%20which%20are%20Waiting%20in%20Resource%20Queues" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-script-to-find-running-queries-or-statements-which-are-waiting-in-resource-queues%2F&amp;linkname=Greenplum%3A%20Script%20to%20find%20running%20queries%20or%20statements%20which%20are%20Waiting%20in%20Resource%20Queues" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-script-to-find-running-queries-or-statements-which-are-waiting-in-resource-queues%2F&amp;linkname=Greenplum%3A%20Script%20to%20find%20running%20queries%20or%20statements%20which%20are%20Waiting%20in%20Resource%20Queues" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-script-to-find-running-queries-or-statements-which-are-waiting-in-resource-queues%2F&#038;title=Greenplum%3A%20Script%20to%20find%20running%20queries%20or%20statements%20which%20are%20Waiting%20in%20Resource%20Queues" data-a2a-url="https://www.dbrnd.com/2017/11/greenplum-script-to-find-running-queries-or-statements-which-are-waiting-in-resource-queues/" data-a2a-title="Greenplum: Script to find running queries or statements which are Waiting in Resource Queues"></a></p><p>In this post, I am sharing a script to check the list of running queries or statements which are waiting in the Resource Queues of Greenplum. </p>
<blockquote><p>The Workload management of Greenplum means &#8211; Set priorities of database user&#8217;s queries using Resource Queues. If you create RQ with the limit of 10 concurrent queries and user is trying to execute more than 10 queries at a time then few RQ keeps few queries in the waiting mode. </p></blockquote>
<p>Using below query, you can get the list of running queries which are in the waiting mode.</p>
<pre class="crayon-plain-tag">SELECT
	rolname
	,rsqname
	,pid
	,granted
	,current_query
	,datname
FROM pg_roles, gp_toolkit.gp_resqueue_status
,pg_locks, pg_stat_activity
WHERE pg_roles.rolresqueue=pg_locks.objid
	AND pg_locks.objid=gp_toolkit.gp_resqueue_status.queueid
	AND pg_stat_activity.procpid=pg_locks.pid
	AND pg_stat_activity.usename=pg_roles.rolnam</pre> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Greenplum: How to reset the Priority of Running Statement or Transaction?</title>
		<link>https://www.dbrnd.com/2017/11/greenplum-how-to-reset-the-priority-of-running-statement-or-transaction-gp_adjust_priority/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Tue, 07 Nov 2017 16:16:59 +0000</pubDate>
				<category><![CDATA[Greenplum]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[gp_adjust_priority]]></category>
		<category><![CDATA[Greenplum Administrator]]></category>
		<category><![CDATA[Greenplum Error]]></category>
		<category><![CDATA[Greenplum Monitoring]]></category>
		<category><![CDATA[Greenplum Performance Tuning]]></category>
		<category><![CDATA[Greenplum Programming]]></category>
		<category><![CDATA[Greenplum Query]]></category>
		<category><![CDATA[Greenplum Tips and Tricks]]></category>
		<category><![CDATA[PostgreSQL 8.2]]></category>
		<category><![CDATA[Resource Queue]]></category>
		<category><![CDATA[Workload management]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=6093</guid>

					<description><![CDATA[In this post, I am sharing one of the important articles on how to reset the priority of running or active statement of Greenplum. The Work Load management of Greenplum means &#8211; define the different Resource Queues with options like priority, memory, CPU. RQ associates with the user and all statement of this user will [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-how-to-reset-the-priority-of-running-statement-or-transaction-gp_adjust_priority%2F&amp;linkname=Greenplum%3A%20How%20to%20reset%20the%20Priority%20of%20Running%20Statement%20or%20Transaction%3F" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-how-to-reset-the-priority-of-running-statement-or-transaction-gp_adjust_priority%2F&amp;linkname=Greenplum%3A%20How%20to%20reset%20the%20Priority%20of%20Running%20Statement%20or%20Transaction%3F" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-how-to-reset-the-priority-of-running-statement-or-transaction-gp_adjust_priority%2F&amp;linkname=Greenplum%3A%20How%20to%20reset%20the%20Priority%20of%20Running%20Statement%20or%20Transaction%3F" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-how-to-reset-the-priority-of-running-statement-or-transaction-gp_adjust_priority%2F&amp;linkname=Greenplum%3A%20How%20to%20reset%20the%20Priority%20of%20Running%20Statement%20or%20Transaction%3F" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-how-to-reset-the-priority-of-running-statement-or-transaction-gp_adjust_priority%2F&amp;linkname=Greenplum%3A%20How%20to%20reset%20the%20Priority%20of%20Running%20Statement%20or%20Transaction%3F" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-how-to-reset-the-priority-of-running-statement-or-transaction-gp_adjust_priority%2F&amp;linkname=Greenplum%3A%20How%20to%20reset%20the%20Priority%20of%20Running%20Statement%20or%20Transaction%3F" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F11%2Fgreenplum-how-to-reset-the-priority-of-running-statement-or-transaction-gp_adjust_priority%2F&#038;title=Greenplum%3A%20How%20to%20reset%20the%20Priority%20of%20Running%20Statement%20or%20Transaction%3F" data-a2a-url="https://www.dbrnd.com/2017/11/greenplum-how-to-reset-the-priority-of-running-statement-or-transaction-gp_adjust_priority/" data-a2a-title="Greenplum: How to reset the Priority of Running Statement or Transaction?"></a></p><p>In this post, I am sharing one of the important articles on how to reset the priority of running or active statement of Greenplum. </p>
<p>The Work Load management of Greenplum means &#8211; define the different Resource Queues with options like priority, memory, CPU.<br />
RQ associates with the user and all statement of this user will execute basis on specified priority setting in that RQ.</p>
<p>Let me give you one scenario, where I used this. </p>
<blockquote><p>Recently, I found one long running query in our Greenplum server.<br />
I checked the priority of that running query which was LOW, and that only one query was running at that time. </p>
<p>So now, I wanted to complete that query as soon as possible, so the solution was to change the priority from LOW to HIGH. &#8211; For only that running query. </p></blockquote>
<p>I used below script and changed the priority and query got completed in next six minutes. We can use gp_adjust_priority() to change the priority of running statements. </p>
<blockquote><p>Be careful &#8211; Below query will alter the priority of queries which are running more than 20 minutes.<br />
So if you want to analyze the queries, you should use * and comment &#8212; gp_adjust_priority(psa.sess_id,rpb.rqpcommand,&#8217;HIGH&#8217;)</p></blockquote>
<pre class="crayon-plain-tag">SELECT gp_adjust_priority(psa.sess_id,rpb.rqpcommand,'HIGH')
FROM gp_toolkit.gp_resq_priority_backend rpb
JOIN pg_stat_activity psa
ON rpb.rqpsession = psa.sess_id
WHERE EXTRACT(epoch from current_timestamp-psa.query_start)/60 &gt; 20</pre> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Greenplum: Important Queries to Configure the Resource Queue (Workload Management)</title>
		<link>https://www.dbrnd.com/2017/09/greenplum-important-queries-to-configure-the-resource-queue-workload-management/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sun, 10 Sep 2017 16:16:02 +0000</pubDate>
				<category><![CDATA[Greenplum]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Greenplum Administrator]]></category>
		<category><![CDATA[Greenplum Error]]></category>
		<category><![CDATA[Greenplum Monitoring]]></category>
		<category><![CDATA[Greenplum Performance Tuning]]></category>
		<category><![CDATA[Greenplum Programming]]></category>
		<category><![CDATA[Greenplum Query]]></category>
		<category><![CDATA[Greenplum Tips and Tricks]]></category>
		<category><![CDATA[PostgreSQL 8.2]]></category>
		<category><![CDATA[Resource Queue]]></category>
		<category><![CDATA[Workload management]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=6054</guid>

					<description><![CDATA[Create an RQ with Statement Limit: It will allow an only specified number of active statement for particular RQ. [crayon-6ab5606a24961563021689/] Create an RQ with Memory Limit: The Memory restriction all the queries which submitted through the RQ. [crayon-6ab5606a24962454849878/] Create an RQ with Query Execution Planner cost Limit: You can set a limit of Query Execution [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F09%2Fgreenplum-important-queries-to-configure-the-resource-queue-workload-management%2F&amp;linkname=Greenplum%3A%20Important%20Queries%20to%20Configure%20the%20Resource%20Queue%20%28Workload%20Management%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F09%2Fgreenplum-important-queries-to-configure-the-resource-queue-workload-management%2F&amp;linkname=Greenplum%3A%20Important%20Queries%20to%20Configure%20the%20Resource%20Queue%20%28Workload%20Management%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F09%2Fgreenplum-important-queries-to-configure-the-resource-queue-workload-management%2F&amp;linkname=Greenplum%3A%20Important%20Queries%20to%20Configure%20the%20Resource%20Queue%20%28Workload%20Management%29" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F09%2Fgreenplum-important-queries-to-configure-the-resource-queue-workload-management%2F&amp;linkname=Greenplum%3A%20Important%20Queries%20to%20Configure%20the%20Resource%20Queue%20%28Workload%20Management%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F09%2Fgreenplum-important-queries-to-configure-the-resource-queue-workload-management%2F&amp;linkname=Greenplum%3A%20Important%20Queries%20to%20Configure%20the%20Resource%20Queue%20%28Workload%20Management%29" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F09%2Fgreenplum-important-queries-to-configure-the-resource-queue-workload-management%2F&amp;linkname=Greenplum%3A%20Important%20Queries%20to%20Configure%20the%20Resource%20Queue%20%28Workload%20Management%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F09%2Fgreenplum-important-queries-to-configure-the-resource-queue-workload-management%2F&#038;title=Greenplum%3A%20Important%20Queries%20to%20Configure%20the%20Resource%20Queue%20%28Workload%20Management%29" data-a2a-url="https://www.dbrnd.com/2017/09/greenplum-important-queries-to-configure-the-resource-queue-workload-management/" data-a2a-title="Greenplum: Important Queries to Configure the Resource Queue (Workload Management)"></a></p><p><strong>Create an RQ with Statement Limit:</strong><br />
It will allow an only specified number of active statement for particular RQ.</p>
<pre class="crayon-plain-tag">CREATE RESOURCE QUEUE MyRQ WITH (ACTIVE_STATEMENTS=5);</pre> </p>
<p><strong>Create an RQ with Memory Limit:</strong><br />
The Memory restriction all the queries which submitted through the RQ.</p>
<pre class="crayon-plain-tag">CREATE RESOURCE QUEUE MyRQ WITH (ACTIVE_STATEMENTS=5, MEMORY_LIMIT='3000MB');</pre> </p>
<p><strong>Create an RQ with Query Execution Planner cost Limit:</strong><br />
You can set a limit of Query Execution Planner cost where some active statements are not required and N number of sessions can run until it reaches to MAX_COST.</p>
<pre class="crayon-plain-tag">CREATE RESOURCE QUEUE MyRQ WITH (MAX_COST=200000.0);</pre> </p>
<p><strong>Set Priorities:</strong><br />
You can set any priority level from this list: LOW, MEDIUM, HIGH, MAX</p>
<pre class="crayon-plain-tag">ALTER RESOURCE QUEUE MyRQ WITH (PRIORITY=MAX);</pre> </p>
<p><strong>Assign Roles to RQ:</strong><br />
<strong>Create:</strong></p>
<pre class="crayon-plain-tag">CREATE ROLE MyRole WITH LOGIN RESOURCE QUEUE MyRQ;</pre> </p>
<p><strong>Alter:</strong></p>
<pre class="crayon-plain-tag">ALTER ROLE MyRole RESOURCE QUEUE MyRQ;</pre> </p>
<p><strong>Remove Role from RQ:</strong></p>
<pre class="crayon-plain-tag">ALTER ROLE MyRole RESOURCE QUEUE MyRQ;</pre> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Greenplum: Important Parameters of Resource Queue (Workload Management)</title>
		<link>https://www.dbrnd.com/2017/09/greenplum-important-parameters-of-resource-queue-workload-management/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Fri, 08 Sep 2017 16:16:59 +0000</pubDate>
				<category><![CDATA[Greenplum]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Greenplum Administrator]]></category>
		<category><![CDATA[Greenplum Error]]></category>
		<category><![CDATA[Greenplum Monitoring]]></category>
		<category><![CDATA[Greenplum Performance Tuning]]></category>
		<category><![CDATA[Greenplum Programming]]></category>
		<category><![CDATA[Greenplum Query]]></category>
		<category><![CDATA[Greenplum Tips and Tricks]]></category>
		<category><![CDATA[PostgreSQL 8.2]]></category>
		<category><![CDATA[Resource Queue]]></category>
		<category><![CDATA[Workload management]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=6049</guid>

					<description><![CDATA[General parameters: max_resource_queues: Set the maximum number of resource queues resource_select_only: Set ON = allow SELECT, SELECT INTO, CREATE TABLE AS SELECT, and DECLARE CURSOR, Set OFF = ALL SELECT + INSERT, UPDATE, and DELETE max_resource_portals_per_transaction: Set the maximum number of simultaneously open cursors which will allow per transaction stats_queue_level: Enables statistics collection on usage [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F09%2Fgreenplum-important-parameters-of-resource-queue-workload-management%2F&amp;linkname=Greenplum%3A%20Important%20Parameters%20of%20Resource%20Queue%20%28Workload%20Management%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F09%2Fgreenplum-important-parameters-of-resource-queue-workload-management%2F&amp;linkname=Greenplum%3A%20Important%20Parameters%20of%20Resource%20Queue%20%28Workload%20Management%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F09%2Fgreenplum-important-parameters-of-resource-queue-workload-management%2F&amp;linkname=Greenplum%3A%20Important%20Parameters%20of%20Resource%20Queue%20%28Workload%20Management%29" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F09%2Fgreenplum-important-parameters-of-resource-queue-workload-management%2F&amp;linkname=Greenplum%3A%20Important%20Parameters%20of%20Resource%20Queue%20%28Workload%20Management%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F09%2Fgreenplum-important-parameters-of-resource-queue-workload-management%2F&amp;linkname=Greenplum%3A%20Important%20Parameters%20of%20Resource%20Queue%20%28Workload%20Management%29" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F09%2Fgreenplum-important-parameters-of-resource-queue-workload-management%2F&amp;linkname=Greenplum%3A%20Important%20Parameters%20of%20Resource%20Queue%20%28Workload%20Management%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F09%2Fgreenplum-important-parameters-of-resource-queue-workload-management%2F&#038;title=Greenplum%3A%20Important%20Parameters%20of%20Resource%20Queue%20%28Workload%20Management%29" data-a2a-url="https://www.dbrnd.com/2017/09/greenplum-important-parameters-of-resource-queue-workload-management/" data-a2a-title="Greenplum: Important Parameters of Resource Queue (Workload Management)"></a></p><p><strong>General parameter</strong>s:</p>
<blockquote><p><strong>max_resource_queues:</strong> Set the maximum number of resource queues<br />
<strong>resource_select_only:</strong> Set ON = allow SELECT, SELECT INTO, CREATE TABLE AS SELECT, and DECLARE CURSOR, Set OFF = ALL SELECT + INSERT, UPDATE, and DELETE<br />
<strong>max_resource_portals_per_transaction:</strong> Set the maximum number of simultaneously open cursors which will allow per transaction<br />
<strong>stats_queue_level:</strong> Enables statistics collection on usage of resource queues<br />
<strong>gp_resqueue_priority:</strong> This is enable by default<br />
<strong>gp_resqueue_priority_sweeper_interval:</strong> Set the interval for recalculation of CPU Usage<br />
<strong>gp_resqueue_priority_cpucores_per_segment:</strong> Very important, you can set number of CPU cores per segment</p></blockquote>
<p><strong>Parameters for Memory Utilization:</strong></p>
<blockquote><p><strong>statement_mem:</strong> Runtime allocation of memory to a particular query<br />
<strong>max_statement_mem:</strong> Only super user can set this to prevent the over-allocation of statement_mem<br />
<strong>gp_resqueue_memory_policy:</strong> It enables Greenplum memory management feature. NONE = Memory management same as Greenplum Engine, AUTO = Controls by statement_mem<br />
<strong>gp_vmem_protect_limit:</strong> Set the limit so that queries cannot exceed the usage of physical memory of segment host</p></blockquote>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
