Home >Database >Mysql Tutorial >GPDB管理员笔记(五)GP系统配置

GPDB管理员笔记(五)GP系统配置

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 15:29:181951browse

在GPDB中,Master和每个Segment Instance都有自己的postgresql.conf文件。一些参数为本地化参数,意味着每个Segment Instance都根据自己的postgresql.conf文件来获取参数的值。对于本地化参数来说,必须在系统中的每个Instance(Master和Segment)配置。 配置

在GPDB中,Master和每个Segment Instance都有自己的postgresql.conf文件。一些参数为本地化参数,意味着每个Segment Instance都根据自己的postgresql.conf文件来获取参数的值。对于本地化参数来说,必须在系统中的每个Instance(Master和Segment)配置。

配置修改要 在GPDB系统所有的postgresql.conf文件修改参数,可以使用gpconfig命令。

例如:
$ gpconfig -c gp_vmem_protect_limit -v 4096MB

然后重启GPDB以确保修改的配置生效:
$ gpstop –r

会话级参数设置 =# SET work_mem TO '200MB';
=# RESET work_mem;

查看master配置参数设置 [gpadmin@mdw ~]$ psql libo -c 'show all;'

查看系统配置参数 gpconfig [gpadmin@mdw ~]$ gpconfig --show max_connections Values on all segments are consistent GUC : max_connections Master value: 250 Segment value: 750

内存消耗参数

这些参数空值着系统内存的使用。可以通过调整gp_vmem_protect_limit避免运行查询处理时Segment主机出现内存溢出。
 gp_vmem_idle_resource_timeout
 gp_vmem_protect_limit
 gp_vmem_protect_segworker_cache_limit
 max_appendonly_tables
 max_prepared_transactions
 max_stack_depth
 shared_buffers
 temp_buffers

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn