| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
10年前发布

Postgres 自动故障转移:Manatee

Manatee 是一个基于ZooKeeper的系统能够管理Postgres的备份和自动故障转移,Manatee和Moray共同提供高可用的键值服务。

特性:

  • Automated liveliness detection, failover, and recovery. Reads are always available, even during a failover. Writes are available as soon as the failover is complete.

  • Automated bootstrap. New peers will bootstrap and join the shard without human intervention.

  • Data integrity. Built atop ZFS andPostgreSQL synchronous replication for safe, reliable storage.

客户端代码:

var manatee = require('node-manatee');     var client = manatee.createClient({     "path": "/manatee/1",     "zk": {         "connectTimeout": 2000,         "servers": [{             "host": "172.27.10.97",             "port": 2181         }, {             "host": "172.27.10.90",             "port": 2181         }, {             "host": "172.27.10.101",             "port": 2181         }],         "timeout": 20000     }  });  client.once('ready', function () {      console.log('manatee client ready');  });     client.on('topology', function (urls) {      console.log({urls: urls}, 'topology changed');  });     client.on('error', function (err) {      console.error({err: err}, 'got client error');  });

项目主页:http://www.open-open.com/lib/view/home/1415520972887

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1415520972887.html
Manatee PostgreSQL 数据库服务器