Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
1796bc57
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
1796bc57
编写于
6月 05, 2020
作者:
D
David Yozie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "docs - add info about moving a query to a different resource group (#10238)"
This reverts commit
07775046
.
上级
07775046
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
49 deletion
+0
-49
gpdb-doc/dita/admin_guide/workload_mgmt_resgroups.xml
gpdb-doc/dita/admin_guide/workload_mgmt_resgroups.xml
+0
-49
未找到文件。
gpdb-doc/dita/admin_guide/workload_mgmt_resgroups.xml
浏览文件 @
1796bc57
...
@@ -58,9 +58,6 @@
...
@@ -58,9 +58,6 @@
<li
id=
"im16806h"
>
<li
id=
"im16806h"
>
<xref
href=
"#topic22"
type=
"topic"
format=
"dita"
/>
<xref
href=
"#topic22"
type=
"topic"
format=
"dita"
/>
</li>
</li>
<li>
<xref
href=
"#moverg"
type=
"topic"
format=
"dita"
/>
</li>
<li>
<li>
<xref
href=
"#topic777999"
type=
"topic"
format=
"dita"
/>
<xref
href=
"#topic777999"
type=
"topic"
format=
"dita"
/>
</li>
</li>
...
@@ -1060,52 +1057,6 @@ gpstart
...
@@ -1060,52 +1057,6 @@ gpstart
</body>
</body>
</topic>
</topic>
</topic>
</topic>
<topic
id=
"moverg"
xml:lang=
"en"
>
<title>
Moving a Query to a Different Resource Group
</title>
<body>
<p>
A user with Greenplum Database superuser privileges can run the
<codeph>
gp_toolkit.pg_resgroup_move_query()
</codeph>
function to move a
running query from one resource group to another, without stopping the
query. Use this function to expedite a long-running query by moving it to
a resource group with a higher resource allotment or availability.
</p>
<note>
You can move only an active or running query to a new resource group.
You cannot move a queued or pending query that is in an idle state due to
concurrency or memory limits.
</note>
<p><codeph>
pg_resgroup_move_query()
</codeph>
requires the process id
(pid) of the running query, as well as the name of the resource group
to which you want to move the query. The signature of the function follows:
</p>
<codeblock>
pg_resgroup_move_query( pid int4, group_name text );
</codeblock>
<p>
You can obtain the pid of a running query from the
<codeph>
pg_stat_activity
</codeph>
system view as described in
<xref
href=
"#topic27"
type=
"topic"
format=
"dita"
/>
. Use the
<codeph>
gp_toolkit.gp_resgroup_status
</codeph>
view to list the name, id,
and status of each resource group.
</p>
<p>
When you invoke
<codeph>
pg_resgroup_move_query()
</codeph>
, the query is
subject to the limits configured for the destination resource group:
</p>
<ul>
<li>
If the group has already reached its concurrent task limit,
Greenplum Database queues the query until a slot opens.
</li>
<li>
If the destination resource group does not have enough memory
available to service the query's current memory requirements,
Greenplum Database returns the error:
<codeph>
group
<
group_name> doesn't have enough memory ...
</codeph>
.
In this situation, you may choose to increase the group shared memory
allotted to the destination resource group, or perhaps wait a period
of time for running queries to complete and then invoke the function
again.
</li>
</ul>
<p>
After Greenplum moves the query, there is no way to guarantee that a
query currently running in the destination resource group does not
exceed the group memory quota. In this situation, one or more running
queries in the destination group may fail, including the moved query.
Reserve enough resource group global shared memory to minimize the
potential for this scenario to occur.
</p>
<p><codeph>
pg_resgroup_move_query()
</codeph>
moves only the specified
query to the destination resource group. Greenplum Database assigns
subsequent queries that you submit in the session to the original
resource group.
</p>
</body>
</topic>
<topic
id=
"topic777999"
xml:lang=
"en"
>
<topic
id=
"topic777999"
xml:lang=
"en"
>
<title>
Resource Group Frequently Asked Questions
</title>
<title>
Resource Group Frequently Asked Questions
</title>
<body>
<body>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录