简体   繁体   English

Postgres XL 将数据节点添加到现有集群

[英]Postgres XL add data node to existing cluster

This is my Postgres XL 9.5 configuration: GTM Cordinator datanode1 datanode2.这是我的 Postgres XL 9.5 配置:GTM Cordinator datanode1 datanode2。 For above mentioned cluster I have created database DB1 which contains table with 50mln rows and distributed by hash between 2 nodes.对于上述集群,我创建了数据库 DB1,其中包含具有 5000 万行的表,并通过散列分布在 2 个节点之间。 After that I add 2 more nodes.之后,我再添加 2 个节点。 But when I execute on coordinator Alter table T1 add node (datanode3) I get following exeption但是当我在协调器 Alter table T1 add node (datanode3) 上执行时,我得到以下例外

ERROR: Failed to get pooled connections HINT: This may happen because one or more nodes are currently unreachable, either because of node or network failure.错误:无法获得池连接提示:这可能是因为一个或多个节点当前无法访问,无论是由于节点还是网络故障。 Its also possible that the target node may have hit the connection limit or the pooler is configured with low connections.也有可能是目标节点达到了连接限制或池器配置了低连接。 Please check if all nodes are running fine and also review max_connections and max_pool_size configuration parameters.请检查所有节点是否运行良好,并查看 max_connections 和 max_pool_size 配置参数。

Max_connections and max_pool_size parameters are fine, when I checked logs on datanode3 and datanode4 I find the coordinatior can't connect to nodes because database DB1 does not exists. Max_connections 和 max_pool_size 参数没问题,当我检查 datanode3 和 datanode4 上的日志时,我发现协调器无法连接到节点,因为数据库 DB1 不存在。 If I create new database and tables in it I can distribute them to all nodes.如果我在其中创建新的数据库和表,我可以将它们分发到所有节点。 But all operations beside select on DB1 can't complete.但是DB1上除了select之外的所有操作都无法完成。 Do you have any suggestion to my problem?你对我的问题有什么建议吗?

Did you actually add these nodes to the cluster before trying to point the database to use them?在尝试指向数据库使用它们之前,您是否真的将这些节点添加到集群中? If not they they do not exist in the cluster to use.如果不是,它们在集群中不存在以供使用。 Also did you init and configure those data nodes to know to connect to the coordinators?您是否还初始化并配置了这些数据节点以知道连接到协调器?

See section F.32.12.见 F.32.12 节。 pgxc_ctl commands http://files.postgres-xl.org/documentation/pgxc-ctl.html pgxc_ctl 命令http://files.postgres-xl.org/documentation/pgxc-ctl.html

https://sourceforge.net/p/postgres-xl/mailman/message/32644691/ https://sourceforge.net/p/postgres-xl/mailman/message/32644691/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM