开发者社区 > PolarDB开源 > PolarDB PostgreSQL 版 > 正文

PolarDB for PG是否有单点故障(搭建分布式的polardb)

PolarDB for PG是否有单点故障(搭建分布式的polardb)

展开
收起
开发者小助理 2021-08-23 15:08:52 926 0
1 条回答
写回答
取消 提交回答
  • 热爱技术

    没有。通过onekey.sh all或者pgxc_ctl -c $HOME/polardb/polardb_paxos.conf prepare standalone命令部署得到的polardb默认是有三节点部署在同一台物理机器上的。通过将 polardb_paxos.conf配置文件中localhost改为对应的机器ip,就可以避免单点故障。(注意三台机器的ssh需要被打通) 更改文件示例: datanodeMasterServers=(localhost) # none means this master is not available. datanodeSlaveServers=(localhost) # value none means this slave is not available datanodeLearnerServers=(localhost) # value none means this learner is not available ——> datanodeMasterServers=(Server1 IP) # none means this master is not available. datanodeSlaveServers=(Server2 IP) # value none means this slave is not available datanodeLearnerServers=(Server3 IP) # value none means this learner is not available

    2021-08-23 15:09:06
    赞同 展开评论 打赏

云原生数据库 PolarDB PostgreSQL 版是阿里云完全自主研发的云原生关系型数据库产品,100%兼容 PostgreSQL。

相关产品

  • 云原生数据库 PolarDB
  • 热门讨论

    热门文章

    相关电子书

    更多
    云栖大会:开源 PolarDB 架构演进、关键技术与社区建设 立即下载
    2023云栖大会:和客户一起玩转PolarDB新特性 立即下载
    2023云栖大会:PolarDB for AI 立即下载