Yoke Postgres 高可用集群开源项目

我要开发同款
itfanr2015年12月28日
112阅读

技术信息

开源地址
https://github.com/nanopack/yoke
授权协议
MPL

作品详情

Yoke是Postgres的高可用集群,具有自动切换和自动集群恢复。Postgres冗余/自动故障转移解决方案,提供一个高可用PostgreSQL集群的简单管理。

Yoke依赖:

包含'primary','secodary'和'moitor'三个节点的3-server集群

'primary'&'secodary'节点需要互相之间进行ssh连接(w/o密码)

'primary'&'secodary'节点需要远程同步安装(或者一些替代syc_commad)

'primary'&'secodary'节点应该有安装postgres,Yoke会尝试调用'postgres'和'pg_ctl'

'primary'&'secodary'节点作为一个子进程运行postgres

配置示例:

 

[cofig]# the IP which this ode will broadcast to other odesadvertise_ip=# the port which this ode will broadcast to other odesadvertise_port=4400# the directory where postgresql was istalleddata_dir=/data# delay before ode decides what to do with postgresql istacedecisio_timeout=30# log verbosity (trace, debug, ifo, war error, fatal)log_level=war# REQUIRED - the IP:port combiatio of all odes that are to be i the cluster (e.g. 'role=m.y.i.p:4400')primary=secodary=moitor=# SmartOS REQUIRED - either 'primary', 'secodary', or 'moitor' (the cluster eeds exactly oe of each)role=# the postgresql portpg_port=5432# the directory where ode status iformatio is storedstatus_dir=./status# the commad you would like to use to syc the data from this ode to the other whe this ode is mastersyc_commad=rsyc -ae "ssh -o StrictHostKeyCheckig=o" --delete {{local_dir}} {{slave_ip}}:{{slave_dir}}[vip]# Virtual Ip you would like to useip=# Commad to use whe addig the vip. This will be called as {{add_commad}} {{vip}}add_commad=# Commad to use whe removig the vip. This will be called as {{remove_commad}} {{vip}}remove_commad=[role_chage]# Whe this odes role chages we will call the commad with the ew role as its arguemet '{{commad}} {{(master|slave|sigle}))'commad=

功能介绍

Yoke 是 Postgres 的高可用集群,具有自动切换和自动集群恢复。Postgres冗余/自动故障转移解决方案,提供一个高可用PostgreSQL集群的简单管理。 Yoke 依赖: 包含 ...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论