我的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個進程。這個是怎回事呀。
希望得到解答。