磨砺技术珠矶,践行数据之道,追求卓越价值回到上一级页面: PostgreSQL集群方案相关索引页     回到顶级页面:PostgreSQL索引页[作者 高健@博客园  luckyjackgao@gmail.com] 首先,通过代码,查看调用关系: libpqwalreceiver.c _PG_init 関数 /* * Module load callback */ void _PG_init(void) { /* Tell walreceiver how to reach us */ if (…
运行环境: Primary: 192.168.0.11 Standby: 192.168.0.21, 192.168.0.22 OS: CentOS 6.2 PostgreSQL: 9.1.2 版本以上才支持Streaming Replication. 1. 环境规划    Primary和Standby节点最好有相同的环境. 2. 安装PostgreSQL 1)在Primary和Standy节点上安装PostgreSQL软件,安装路径为/opt/pgsql 2)设置postgres用户的环境变…
一监控Streaming Replication集群 1 pg_stat_replication视图(主库端执行) pid Wal sender process的进程ID usesysid 执行流复制的用户的OID usename 执行流复制的用户名 application_name 连接到master的Application name client_addr standby的ip地址 client_hostname Standby主机名 client_port standby上连接端口 bac…
本文来自:http://blog.itpub.net/22664653/viewspace-1714269/ 一 前言  MySQL 的主从复制作为一项高可用特性,用于将主库的数据同步到从库,在维护主从复制数据库集群的时候,作为专职的MySQL DBA,笔者相信大多数人都会遇到“Got fatal error 1236 from master when reading data from binary log” 这类的报错/报警.本文整理了常见的几种 error 1236 报错,并给出相应的解决…
Streaming replication slots are a pending feature in PostgreSQL 9.4, as part of the logical changeset extraction feature. What are they for, what do you need to know, what changes? What are replication slots? Streaming replication slots are a new fac…
磨砺技术珠矶,践行数据之道,追求卓越价值回到上一级页面: PostgreSQL集群方案相关索引页     回到顶级页面:PostgreSQL索引页[作者 高健@博客园  luckyjackgao@gmail.com] 主要参考的是如下url: http://www.rassoc.com/gregr/weblog/2013/02/16/zero-to-postgresql-streaming-replication-in-10-mins/ 准备两台机器, master: 10.10.10.2 sl…
postgresql是使用Streaming Replication来实现热备份的,热备份的作用如下: 灾难恢复 高可用性 负载均衡,当你使用Streaming Replication来实现热备份(hot standby)的时候,可以再standby上执行查询语句,也只允许执行select 那么,当我们有大量使用了流复制的机器之后, 监控 Streaming Replication 的正常运行,在我们的部署中是非常重要的. 那么,我们会有下面的监控问题: 如何更好的监控流复制(Streaming…
今天在学习MyCat环境搭建的时候,在配置MySql的主从模式,发现slave在配置完毕后,配置的内容全部正确的情况下,报错了? Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have equal MySQL server UUIDs; these UUIDs must be different for replication to work. 仔细看了下,提示UUID必须不能相同,…
配置MySQL主从复制报错 ``` Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work (or the --replicate-same-server-id option must be used on slave but thi…
PostgreSQL Cascade Replication node1:master:10.2.208.10:repclia(user) node2:upstreamnode:10.2.208.11:replica(user) node3:downstreamnode:10.2.208.12:replica(user) [root@node1 data]# uname -av Linux node1 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42…