greenplum max_connections 参数疑惑

我的gp数据库配置如下

gmaster 安装master 节点


gseg1   安装2个instance

gseg2   安装2个instance


简单说就是1个主机节点,4个segment,没有配置mirror


当设置

GUC          : max_connections
Master  value: 10
Segment value: 100


只允许3个客户端连接(我在每个SecureCRT上打开一个psql 进行连接)


GUC          : max_connections
Master  value: 11
Segment value: 110

只允许4个客户端连接(我在每个SecureCRT上打开一个psql 进行连接)


当设置

Master  value: 11
Segment value: 110

我用如下命令得到的结果是

[gpadmin@gmaster gpseg-1]$ ps -ef | grep post
gpadmin   4172     1  0 15:39 ?        00:00:00 /usr/local/greenplum-db-4.1.1.1/bin/postgres -D /data/master/gpseg-1 -E -i -M master -p 5432 -b 1 -x 0 -C -1 -z 4 --silent-mode=true
gpadmin   4173  4172  0 15:39 ?        00:00:00 postgres: port  5432, master logger process                                                                                        
gpadmin   4176  4172  0 15:39 ?        00:00:00 postgres: port  5432, stats collector process                                                                                      
gpadmin   4177  4172  0 15:39 ?        00:00:00 postgres: port  5432, writer process                                                                                               
gpadmin   4178  4172  0 15:39 ?        00:00:00 postgres: port  5432, checkpoint process                                                                                           
gpadmin   4179  4172  0 15:39 ?        00:00:00 postgres: port  5432, seqserver process                                                                                            
gpadmin   4180  4172  0 15:39 ?        00:00:00 postgres: port  5432, WAL Send Server process                                                                                      
gpadmin   4181  4172  0 15:39 ?        00:00:00 postgres: port  5432, ftsprobe process                                                                                             
gpadmin   4182  4172  0 15:39 ?        00:00:00 postgres: port  5432, sweeper process                                                                                              
gpadmin   4203  4172  0 15:39 ?        00:00:00 postgres: port  5432, dba1 postgres 136.5.66.45(18678) con8 136.5.66.45(18678) idle                                                
gpadmin   4207  4172  0 15:39 ?        00:00:00 postgres: port  5432, web1 postgres 136.5.66.45(18680) con9 136.5.66.45(18680) idle                                                
gpadmin   4211  4172  0 15:39 ?        00:00:00 postgres: port  5432, web2 postgres 136.5.66.45(18682) con10 136.5.66.45(18682) idle                                               
gpadmin   4214  4172  0 15:40 ?        00:00:00 postgres: port  5432, web2 postgres 136.5.66.45(18684) con11 136.5.66.45(18684) idle    

 

我就搞不懂,明明我设置的max_connections 为 11 为什么只能连接4个客户端,如果内部要占用连接,我数了一下上面有12个进程。这个是怎回事呀。


希望得到解答。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值