简体   繁体   English

Postgres-XL可以同时进行分片,复制和自动平衡吗?

[英]Can Postgres-XL shard, replicate and auto-balance at the same time?

For example if I have 5 servers (A, B, C, D, E) 例如,如果我有5台服务器(A,B,C,D,E)

Can we set the data distributed with replication factor of 3? 我们可以将复制因子设置为3分发的数据吗? (for example one write goes to ABC, other records goes to ABD, other record goes to ABE, and so on), so when node C had some hardware failure, there still some record exists. (例如,一个写入去往ABC,其他记录去往ABD,其他记录去往ABE,依此类推),因此,当节点C发生硬件故障时,仍然存在一些记录。

Can we also add a new node then balance the stored data to the new node without downtime? 我们是否还可以添加一个新节点,然后将存储的数据平衡到新节点而不会造成停机?

Yes, it can do that, but not in the way you are thinking. 是的,它可以做到,但不能以您的思维方式进行。 What you are describing would be NoSQL setup. 您要描述的是NoSQL安装程序。 Postgres-XL is an MPP database. Postgres-XL是MPP数据库。

When you create a table you define it's "DISTRIBUTED BY" option which can be replication, round robin, hash, modulo, etc. You will need to review the details of each option. 创建表时,定义它的“ DISTRIBUTED BY”选项,该选项可以是复制,循环,哈希,取模等。您需要查看每个选项的详细信息。 You can also define table spaces to be on defined nodes. 您还可以将表空间定义为在已定义的节点上。

Your setup would be something like 您的设置将类似于

  • Node1 Transaction Manger Node1事务管理器
  • Node2 Transaction Manger Proxy Node2事务管理器代理
  • Node3 Coordinator1 & Data Node1 节点3协调器1和数据节点1
  • Node4 Coordinator2 & Data Node2 Node4协调器2和数据Node2
  • Node5 Data Node3 Node5数据Node3

NOTE: Important to point out that as I just discovered Postgres-XL has no HA or fail over support. 注意:需要指出的是,正如我刚刚发现的,Postgres-XL没有HA或故障转移支持。 Meaning that if a single node failed the database is down and will require manual intervention. 这意味着,如果单个节点发生故障,则数据库将关闭,并且需要手动干预。 Worse if you are using the round robin, hash, modulo sharing options if you lose the disk on a single node you have lost your database entirely. 更糟糕的是,如果使用循环,哈希,模共享选项,则如果丢失单个节点上的磁盘,则会完全丢失数据库。

You can have stand by nodes that mirror each of your nodes, but this will double the number of nodes you need and it will still not fail over. 您可以拥有镜像每个节点的备用节点,但这会使所需的节点数量增加一倍,并且仍不会进行故障转移。 You will have to manually configure it to use the standby node and restart it. 您将必须手动配置它以使用备用节点并重新启动它。

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

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