postgressql集群安装 [TOC] 1 数据库编译安装 前言 使用pgpool搭建postgresql数据库高可用集群 机器:2~3台,和虚拟ip一台 系统:centos6.x~7.x 防火墙:关闭状态 注意事项:本文使用的是gcc编译器版本为4.8.5,理论上,4.8.5到5.x版本都能正 ...
分类:
数据库 时间:
2019-04-15 20:12:53
阅读次数:
1950
一、系统环境172.16.3.226(master)172.16.3.228(slave)172.16.3.229(pgpool)#yuminstall-ygcc-c++zlib-develreadline-devel#useraddpostgres#passwdpostgresChangingpasswordforuserpostgres.Newpassword:BADPASSWORD:ThepasswordcontainstheusernameinsomeformRetypenewpasswo..
分类:
其他好文 时间:
2017-09-11 22:46:08
阅读次数:
175
集群架构: h236:master h237:standby sync h238:standby sync h239:stadnby async h240:standby async h241:standby async failover_stream.sh #!/bin/shh238=172.19 ...
分类:
其他好文 时间:
2017-06-20 18:01:10
阅读次数:
268
pgpool如何选举master角色 在pgpool启动的过程中通过对 pgpoo.conf配置文件中的数据库节点条目信息,对集群中的数据库节点从0开始一个个的遍历,并发送SQL语句“select pg_is_in_recovery();”;根据返回的结构来判断哪个数据库节点是master。 在ma ...
分类:
数据库 时间:
2017-06-20 15:30:25
阅读次数:
222
/* * The first DB node id appears in pgpool.conf or the first "live" DB * node otherwise. */#define REAL_MASTER_NODE_ID (Req_info->master_node_id)/* * ...
分类:
数据库 时间:
2017-06-20 13:36:26
阅读次数:
240
1.Pgpool-II介绍pgpool-II是PostgreSQL服务器之间一种有效的中间件和PostgreSQL数据库客户端。它提供了以下功能。连接池pgpool-II保存到PostgreSQL服务器的连接,当一个相同新连接(如用户名、数据库、协议版本)进来时,重用他们。它减少了连接开销,提高了系统的整体吞吐量。复..
分类:
数据库 时间:
2017-03-05 10:48:09
阅读次数:
5148
一、nova与ceph结合1、ceph中创建存储池pool[root@controller_10_1_2_230~]#cephosdpoolcreatevms128#创建一个pools,名字为vms,128个pgpool‘vms‘created[root@controller_10_1_2_230~]#cephosdlspools#查看pools创建的情况0rbd,1p_w_picpaths,2vms,[root@controller_10_1_2_2..
分类:
其他好文 时间:
2016-11-09 15:47:39
阅读次数:
454
项目要求通过heartbeat控制pg和pgpool的主备过程,从而达到高可用,pg的自己的流复制主备方案参考我另外一篇主备方案文章,pgpool这里只用到连接池的功能。应用通过heartbeat虚拟出来的VIP访问pgpool池。注:debian8下建议还是直接apt-getinstallheartbeat,编译各种依赖还会提..
分类:
数据库 时间:
2016-05-13 15:27:10
阅读次数:
229
pgpool pgpool-II 是一个位于 PostgreSQL 服务器和 PostgreSQL 数据库客户端之间的中间件,它提供以下功能:连接池、复制、负载均衡、限制超过限度的连接以及并行查询。文档在此。 O 意味着“可用”, X 意味着“不可用(1) 并行查询模式需要同时打开复制和负载均衡,但 ...
分类:
数据库 时间:
2016-03-27 22:30:04
阅读次数:
594
前提:1、请确定postgresql可以访问(远程),postgres用户密码是否修改,否则pgpool无法验证通过2、安装必要的安装包,pgxs,apt-getinstallpostgresql-server-dev-9.5,否则会报pgxs的错误参考:中文(还好蛮新):http://pgpool.projects.pgfoundry.org/pgpool-II/doc/pgpoo..
分类:
数据库 时间:
2016-03-16 02:01:15
阅读次数:
356