简体   繁体   English

添加工作节点并使用 PostgreSQL + Citus 重新平衡分布式分片问题

[英]add worker node and rebalance distributed shards problem with PostgreSQL + Citus

The cluster had 1 coordinator and 6 worker nodes.该集群有 1 个协调器和 6 个工作节点。 (environment: PostgreSQL 15 + Citus 11.1) (环境:PostgreSQL 15 + Citus 11.1)

We want to add more worker nodes to it, so we executed SELECT * from citus_add_node('node-name', 5432);我们想给它添加更多的工作节点,所以我们执行SELECT * from citus_add_node('node-name', 5432); and SELECT rebalance_table_shards('table_name');SELECT rebalance_table_shards('table_name'); to got the messages as below:得到如下消息:

ERROR: connection to the remote node 10.128.0.37:5432 failed with the following error: ERROR: subscription "citus_shard_move_subscription_10" does not exist

We have no way to solve it.我们没有办法解决它。

Hope somebody can help out.希望有人能帮忙。 Thanks a lot!非常感谢!

We have tried Google and Citus official doc, but these is no solution for this case.我们已经尝试过 Google 和 Citus 的官方文档,但是这些都不是针对这种情况的解决方案。

Chances are another error happened that in turn triggered this one, but this original error is masked by this follow up error.有可能发生另一个错误进而触发了这个错误,但是这个原始错误被这个后续错误掩盖了。 By looking at the logs on 10.128.0.37 you should be able to find out what the original error was.通过查看 10.128.0.37 上的日志,您应该能够找出最初的错误是什么。

You need to change configuration postgresql.conf:您需要更改配置 postgresql.conf:

wal_level = logical
max_replication_slots = 5 # has to be > 0
max_wal_senders = 5       # has to be > 0

You can read more here你可以在这里阅读更多

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

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