简体   繁体   English

Citus:2节点PGSQL集群是否可行?如果是,怎么办?

[英]Citus: is a 2 node PGSQL cluster doable and if yes how?

I am thinking of using Citus opensource for dualnode cluster - my questions are basically 2: - if this kind of clustering is available - in the case of a failover is the slave node promoted to master? 我正在考虑将Citus开源用于双节点群集-我的问题基本上是2:-如果这种群集可用-在发生故障转移的情况下,从属节点是否可以升级为主节点? If yes - how - does it use WAL? 如果是,如何使用WAL? - If such a way of clusterisation is not possible what is an alternative for that except pgpool? -如果无法通过这种方式进行集群化,除了pgpool之外,还有什么替代方案?

Thank you. 谢谢。

Citus isn't a high-availability solution for single-node PostgreSQL. Citus并不是单节点PostgreSQL的高可用性解决方案。 Citus shards/partitions your data across multiple servers, and can thus use multiple CPU cores in parallel for your queries or transactions. Citus在多个服务器上对数据进行分片/分区,因此可以并行使用多个CPU内核进行查询或事务。 Citus is suitable for a variety of use-cases, and you can find more information on those here . Citus适用于各种用例,您可以在此处找到有关这些用例的更多信息。

For high-availability, Citus can replicate data across multiple nodes, or you can set up streaming replication for each worker node. 为了获得高可用性,Citus可以跨多个节点复制数据,或者您可以为每个工作节点设置流复制。 Citus Cloud uses streaming replication for each node, and you can find more information on how Citus Cloud manages HA on our documentation . Citus Cloud对每个节点使用流式复制,您可以在我们的文档中找到有关Citus Cloud如何管理HA的更多信息。

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

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