Deploying BDR. Simon Riggs CTO, 2ndQuadrant & Major Developer, PostgreSQL. February 2015



Similar documents
High Availability with Postgres Plus Advanced Server. An EnterpriseDB White Paper

Not Your Grandpa s Replication

The Future of PostgreSQL High Availability Robert Hodges - Continuent, Inc. Simon Riggs - 2ndQuadrant

PostgreSQL Past, Present, and Future EDB All rights reserved.

Non-Stop for Apache HBase: Active-active region server clusters TECHNICAL BRIEF

ADDING A NEW SITE IN AN EXISTING ORACLE MULTIMASTER REPLICATION WITHOUT QUIESCING THE REPLICATION

High Availability Database Solutions. for PostgreSQL & Postgres Plus

Database Replication with MySQL and PostgreSQL

Cloud DBMS: An Overview. Shan-Hung Wu, NetDB CS, NTHU Spring, 2015

Bruce Momjian June, Postgres Plus Technical Overview

Facebook: Cassandra. Smruti R. Sarangi. Department of Computer Science Indian Institute of Technology New Delhi, India. Overview Design Evaluation

Postgres Plus xdb Replication Server with Multi-Master User s Guide

Writing a Logical Decoding Plug-In. Christophe Pettus PostgreSQL Experts, Inc. FOSDEM 2015

Comparing MySQL and Postgres 9.0 Replication

CitusDB Architecture for Real-Time Big Data

The elephant called PostgreSQL

Adding Indirection Enhances Functionality

Be Very Afraid. Christophe Pettus PostgreSQL Experts Logical Decoding & Backup Conference Europe 2014

Data Distribution with SQL Server Replication

plproxy, pgbouncer, pgbalancer Asko Oja

Module 14: Scalability and High Availability

Cluster Computing. ! Fault tolerance. ! Stateless. ! Throughput. ! Stateful. ! Response time. Architectures. Stateless vs. Stateful.

Postgres Plus Cloud Database!

Disaster Recovery for Oracle Database

Deploying Active-Active Data Centers Using Oracle Database Solutions

Real-time Data Replication

Implementing the Future of PostgreSQL Clustering with Tungsten

MakeMyTrip CUSTOMER SUCCESS STORY

PostgreSQL Features, Futures and Funding. Simon Riggs

Open PostgreSQL Monitoring

Tips and Tricks for Using Oracle TimesTen In-Memory Database in the Application Tier

MySQL always-up with Galera Cluster

F1: A Distributed SQL Database That Scales. Presentation by: Alex Degtiar (adegtiar@cmu.edu) /21/2013

PostgreSQL 9.0 Streaming Replication under the hood Heikki Linnakangas

Clustering/HA. Introduction, Helium Capabilities, and Potential Lithium Enhancements.

A Proposal for a Multi-Master Synchronous Replication System

Bigdata High Availability (HA) Architecture

PostgreSQL Backup Strategies

Amazon Redshift & Amazon DynamoDB Michael Hanisch, Amazon Web Services Erez Hadas-Sonnenschein, clipkit GmbH Witali Stohler, clipkit GmbH

High-availability with Galera Cluster for MySQL

Distributed Database Access in the LHC Computing Grid with CORAL

Avoid a single point of failure by replicating the server Increase scalability by sharing the load among replicas

In Memory Accelerator for MongoDB

Linas Virbalas Continuent, Inc.

Guide to Scaling OpenLDAP

Big Data With Hadoop

Why Zalando trusts in PostgreSQL

The Data Grid: Towards an Architecture for Distributed Management and Analysis of Large Scientific Datasets

Scale out NAS on the outside, Object storage on the inside

Using MySQL for Big Data Advantage Integrate for Insight Sastry Vedantam

Near Real Time Indexing Kafka Message to Apache Blur using Spark Streaming. by Dibyendu Bhattacharya

Database Replication with Oracle 11g and MS SQL Server 2008

Teradata Analytical Ecosystem Overview. Flexible, Integrated Analytics

Introduction to Multi-Data Center Operations with Apache Cassandra, Hadoop, and Solr WHITE PAPER

PostgreSQL Business Intelligence & Performance Simon Riggs CTO, 2ndQuadrant PostgreSQL Major Contributor

BookKeeper. Flavio Junqueira Yahoo! Research, Barcelona. Hadoop in China 2011

Introduction to Multi-Data Center Operations with Apache Cassandra and DataStax Enterprise

Database migration. from Sybase ASE to PostgreSQL. Achim Eisele and Jens Wilke. 1&1 Internet AG

ArcGIS for Server Deployment Scenarios An ArcGIS Server s architecture tour

Data warehousing with PostgreSQL

Hypertable Architecture Overview

How to Ingest Data into Google BigQuery using Talend for Big Data. A Technical Solution Paper from Saama Technologies, Inc.

BASHO DATA PLATFORM SIMPLIFIES BIG DATA, IOT, AND HYBRID CLOUD APPS

Parallel Replication for MySQL in 5 Minutes or Less

Portable Scale-Out Benchmarks for MySQL. MySQL User Conference 2008 Robert Hodges CTO Continuent, Inc.

<Insert Picture Here> Oracle In-Memory Database Cache Overview

ZooKeeper. Table of contents

GoGrid Implement.com Configuring a SQL Server 2012 AlwaysOn Cluster

Oracle Warehouse Builder 10g

Informix Dynamic Server May Availability Solutions with Informix Dynamic Server 11

3. PGCluster. There are two formal PGCluster Web sites.

Sharding with postgres_fdw

Technical Overview Simple, Scalable, Object Storage Software

ScaleArc for SQL Server

Katta & Hadoop. Katta - Distributed Lucene Index in Production. Stefan Groschupf Scale Unlimited, 101tec. sg{at}101tec.com

Appendix A Core Concepts in SQL Server High Availability and Replication

Data Management in the Cloud

Practical Cassandra. Vitalii

Comparing Microsoft SQL Server 2005 Replication and DataXtend Remote Edition for Mobile and Distributed Applications

Architecting Distributed Databases for Failure A Case Study with Druid

Graph Mining on Big Data System. Presented by Hefu Chai, Rui Zhang, Jian Fang

Simba Apache Cassandra ODBC Driver

EDG Project: Database Management Services

DATABASE VIRTUALIZATION AND INSTANT CLONING WHITE PAPER

High Availability on MapR

The Synergy Between the Object Database, Graph Database, Cloud Computing and NoSQL Paradigms

Course Syllabus. Maintaining a Microsoft SQL Server 2005 Database. At Course Completion

Distributed Storage Systems

Oracle Architecture, Concepts & Facilities

Data Migration through an Information Development Approach An Executive Overview

Monitoring Agent for Microsoft Exchange Server Fix Pack 9. Reference IBM

Transactions and ACID in MongoDB

SCF/FEF Evaluation of Nagios and Zabbix Monitoring Systems. Ed Simmonds and Jason Harrington 7/20/2009

Hadoop IST 734 SS CHUNG

I/O Considerations in Big Data Analytics

Transcription:

Deploying BDR Simon Riggs CTO, 2ndQuadrant & Major Developer, PostgreSQL February 2015

What is BDR? BDR is Bi Directional Replication BDR is the newest replication technology for core PostgreSQL BDR is open source, using PostgreSQL Licence BDR is a code submission to the PostgreSQL project BDR is a working, production quality solution

2006 Trigger Based Replication It works! Selective replication Allows online upgrade

Trigger Based Replication Not Integrated in Core It works! Complex design & code Selective replication Difficult to Understand Allows online upgrade High Maintenance Slow, high latency High overhead Serialization problems

2010 Physical Streaming Replication Integrated in core Simple design & code Ease of Use Low Maintenance (DDL) Fast, low latency Low overhead No serialization problems

Physical Streaming Replication Integrated in core Simple design & code Ease of Use Low Maintenance (DDL) Fast, low latency Low overhead No serialization problems Read-only access Same schema No temp tables Same users/security Physical effects Whole database only No Multi-Master Complex code No online upgrade

Ideal Replication Integrated in core Simple design & code Ease of Use Low Maintenance (DDL) Fast, low latency Low overhead No serialization problems Read-write access Allows different schema Allows temp tables Allows different security Limited Physical effects Selective replication Allows Multi-Master Backwards compatible Online Upgrade

2ndQuadrant designed Logical Replication in 2009 2ndQuadrant started building BDR in 2011.we went production in 2014

BDR

BDR

BDR

BDR

Database Access USE CASE RW

Database Access USE CASE RW RW RW

Database Copies USE CASE RW RO RO

Multi-Master Database USE CASE RW RW RW

Force Majeure BAD NEWS RW RW RW

Logical & Physical TECH A RCHITECTURE M M S S M S S

Physical Streaming Replication Master Standby User WAL Sender WAL Recvr Startup WAL Database WAL Database

Logical Streaming Replication Upstream Master Downstream Master User WAL Sender Apply WAL Database Database

PostgreSQL 9.4 Infrastructure 9.3 Background Workers 9.4 Dynamic Shared Memory/Locks 9.4 Logical Decoding 9.4 pg_xlogdump 9.4 Replication Slots 9.4 REPLICA IDENTITY 9.4 user_catalog_table

BDR 0.8.0.7 Production NOW! Integrated in core Simple design & code Ease of Use Low Maintenance (DDL) Fast, low latency Low overhead No serialization problems Global Sequences Read-write access Allows different schema Allows temp tables Allows different security Limited Physical effects Selective replication Allows Multi-Master Co-exists with Physical Rep Online Upgrade

BDR 0.9 1Q2015 Integrated in core Simple design & code Ease of Use Low Maintenance (DDL) Fast, low latency Low overhead No serialization problems Global Sequences Read-write access Allows different schema Allows temp tables Allows different security Limited Physical effects Selective replication Allows Multi-Master Co-exists with Physical Rep Online Upgrade

Deliverables BDR 0.8.0.7 BDR 0.9 Full function, already in use in production Variant of PostgreSQL, open source All changes submitted to PostgreSQL core Production Now, merged later 9.6 Extension for 9.4+ One-way replication Integration into PostgreSQL (patches) 9.5: Online Upgrade from 9.4 to 9.5+ 9.6: More features

Integration Schedule Postgres Core Extension Variant Distro 9.4 now! +Logical Decoding +Dynamic Shm +Replication Slots +REPLICA IDENTITY 9.5 +Commit Timestamps +Sequence AM API +Replication Identifiers +DDL Event Triggers 9.6 +Cluster Metadata +UDR Plugin +Replication Sets +Global Sequences 9.7 +Multi-Master +New conflict models UDR Extension Full BDR up to 48 nodes UDR Extension (Faster!) (Gone!) Slim BDR Multi-master BDR (Gone!)

BDR 10 years ago, Slony delivered practical solution for PostgreSQL replication that works outside of core but it had problems 10 years later, BDR delivers a practical solution for PostgreSQL replication that works outside of core nearly all problems solved and submitted changes for core PostgreSQL BDR will become PostgreSQL replication Slony no longer being developed full-time Londiste no longer being developed It needs your support

Futures Many more features we ain't done yet! More Practical Solutions Quorum Sync Rep Replication Transforms Auto Sharding Massively Parallel Query Distributed Optimisation