Postgres-X2 MPP部署试验

MPP结构:

129 GTM节点, 130 coordinator、gtm_proxy、datanode(1、2、3)节点,131 coordinator、gtm_proxy、datanode(4、5、6)

配置文件:

#parse mode MPP.
#129 gtm, 130 coord1, gtmproxy1 and 3 datanodes, 131 coord2, gtmproxy2, 3 datanodes
#user and path
pgxcOwner=postgres
pgxcUser=$pgxcOwner
pgxcInstallDir=/opt/pgx2

#gtm and gtmproxy
gtmMasterDir=$HOME/pgxc2/nodes/gtm
gtmMasterPort=6666
gtmMasterServer=192.168.238.129
gtmSlave=n

#gtmproxy
gtmProxy=y
gtmProxyDir=$HOME/pgxc2/nodes/gtmproxy
gtmProxyNames=(gtm_pxy1 gtm_pxy2)
gtmProxyServers=(192.168.238.130 192.168.238.131)
gtmProxyPorts=(20001 20001)
gtmProxyDirs=($gtmProxyDir/gtm_pxy1 $gtmProxyDir/gtm_pxy2)
gtmPxyExtraConfig=(none none)
gtmPxySpecificExtraConfig=(none none)

#coordinator
coordMasterDir=$HOME/pgxc2/nodes/coord
coordNames=(coord1 coord2)
coordPorts=(5432 5432)
poolerPorts=(6668 6668)
coordPgHbaEntries=(192.168.238.0/24)
coordMasterServers=(192.168.238.130 192.168.238.131)
coordMasterDirs=($coordMasterDir/coord1 $coordMasterDir/coord2)
coordMaxWALsernder=0
coordMaxWALSenders=($coordMaxWALsernder $coordMaxWALsernder)
coordSlave=n
coordSpecificExtraConfig=(none none)
coordSpecificExtraPgHba=(none none)

#datanode
datanodeNames=(datanode1 datanode2 datanode3 datanode4 datanode5 datanode6)
datanodePorts=(15432 15433 15434 15432 15433 15434)
datanodePoolerPorts=(6669 6670 6671 6669 6670 6671)
datanodePgHbaEntries=(192.168.238.0/24)
datanodeMasterServers=(192.168.238.130 192.168.238.130 192.168.238.130 192.168.238.131 192.168.238.131 192.168.238.131)
datanodeMasterDir=$HOME/pgxc2/nodes/dn_master
datanodeMasterDirs=($datanodeMasterDir/datanode1 $datanodeMasterDir/datanode2 $datanodeMasterDir/datanode3 $datanodeMasterDir/datanode4 $datanodeMasterDir/datanode5 $datanodeMasterDir/datanode6)
datanodeMaxWALsernder=0
datanodeMaxWALSenders=($datanodeMaxWALsernder $datanodeMaxWALsernder $datanodeMaxWALsernder $datanodeMaxWALsernder $datanodeMaxWALsernder $datanodeMaxWALsernder)
datanodeSlave=n
primaryDatanode=datanode1
datanodeSpecificExtraConfig=(none none none none none none)
datanodeSpecificExtraPgHba=(none none none none none none)



运行:

pgxc_ctl -c /home/postgres/pgxc_ctl/pgxc_ctl2.conf init all



问题:

psql连接130的coordinator时进行建表没问题,但是第一次插入会将131节点的datanode节点的进程干掉。
但是再多次测试后,正常。

你可能感兴趣的:(Postgres-X2,MPP)