简体   繁体   English

您可以使用Postgres-XL的Round Robbin或Hash数据分片选项并具有冗余性吗

[英]Can you use Postgres-XL's Round Robbin or Hash data sharding options and have redundancy

The Postgres-XL 9.5 documentation says that when using the Round Robbin or Hashing data sharding options that each data element is only written to a single node. Postgres-XL 9.5文档说,在使用Round Robbin或Hashing数据分片选项时,每个数据元素仅写入单个节点。 It does not give any other details beyond that. 除此以外,它没有提供任何其他详细信息。

Is data really not stored on more than one node? 数据真的不存储在多个节点上吗? That seems highly failure prone and poorly considered if it is the case. 这似乎很容易导致失败,并且考虑不到这种情况。

Is the replication mode really the only way to have data saved on more than one node? 复制模式真的是在多个节点上保存数据的唯一方法吗? The replication option really does not seem feasible since it seems to be three times slower, and I assume must get slower as you add more nodes. 复制选项实际上似乎并不可行,因为它的速度似乎慢了三倍,而且我认为随着添加更多节点,速度必须变慢。

So I found my answer and am still shocked by it. 所以我找到了答案,但仍然为之震惊。

" HA is not built-in, we have concentrated on the scaling side " HA不是内置的,我们专注于扩展方面

So as it turns out if you are not using the REPLICATION Distribute by option and you lose a node you have lost the entire database. 因此,事实证明,如果您没有使用REPLICATION按选项分发,并且丢失了一个节点,那么您将丢失整个数据库。 You can setup "stand by" nodes for each of your data nodes, but that doubles the number of nodes needed obviously, and even with that it will not fail over if a node goes down. 您可以为每个数据节点设置“备用”节点,但这显然会使所需的节点数量增加一倍,即使节点出现故障也不会进行故障转移。 You will still have to take down the entire database. 您仍然必须删除整个数据库。 Manually reconfigure it to use the stand by node for the failed one and restart it. 手动将其重新配置为将备用节点用于失败的节点,然后重新启动它。

Your only real way to have data protection is to use the REPLICATION mode which makes it MUCH slower, and gets slower still as you add more and more nodes. 拥有数据保护的唯一真正方法是使用REPLICATION模式,这会使它变慢,并且随着您添加越来越多的节点而变得越来越慢。 And also does not have fail over. 而且也没有故障转移。 You will have to manually remove the failed node and restart it. 您将必须手动删除故障节点并重新启动它。

I am at a loss as to how anyone is supposed to use this in a large scale production environment. 对于任何人在大规模生产环境中如何使用它,我一无所知。

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

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

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

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