PostreSQL HA and DR Setup & Use Cases

11

Click here to load reader

description

Various HA and DR setups for Postgres Plus Advanced Server - Active – Passive OS HA Clustering Log Shipping Replication (Hot Standby Mode) Hot Streaming Replication (Hot Standby Mode) EDB Postgres Plus Failover Manager HA with read scaling (with pg-pool) xDB Single Master Replication (SMR) xDB Multi Master Replication (MMR) Use Cases

Transcript of PostreSQL HA and DR Setup & Use Cases

Page 1: PostreSQL HA and DR Setup & Use Cases

Various HA and DR setups for Postgres Plus

Advanced Server

27/1/2014

Co

nfi

den

tial

info

rmat

ion

, fo

r in

tern

al u

se o

nly

Page 2: PostreSQL HA and DR Setup & Use Cases

Contents

• Active – Passive OS HA Clustering

• Log Shipping Replication (Hot Standby Mode)

• Hot Streaming Replication (Hot Standby Mode)

• EDB Postgres Plus Failover Manager

• HA with read scaling (with pg-pool)

• xDB Single Master Replication (SMR)

• xDB Multi Master Replication (MMR)

• Use Cases

Co

nfi

den

tial

info

rmat

ion

, fo

r in

tern

al u

se o

nly

2

Page 3: PostreSQL HA and DR Setup & Use Cases

• Using OS Clustering

• Using a shared disk for data

Active – Passive OS HA Clustering

Co

nfi

den

tial

info

rmat

ion

, fo

r in

tern

al u

se o

nly

3

Page 4: PostreSQL HA and DR Setup & Use Cases

• Uses WAL (Write Ahead Log)

• Archived WAL is shipped to Hot Standby Node

• Hot Standby node can be used for read scalability

File Based Log Shipping Replication (Hot Standby Mode)

4

Co

nfi

den

tial

info

rmat

ion

, fo

r in

tern

al u

se o

nly

Page 5: PostreSQL HA and DR Setup & Use Cases

• Uses WAL (Write Ahead Log)

• WAL is continuously shipped through an opened TCP channel to Hot Standby Node

• Hot Standby node can be used for read scalability

Hot Streaming Replication (Hot Standby Mode)

5

Co

nfi

den

tial

info

rmat

ion

, fo

r in

tern

al u

se o

nly

Page 6: PostreSQL HA and DR Setup & Use Cases

EDB Postgres Plus Failover Manager

6

Co

nfi

den

tial

info

rmat

ion

, fo

r in

tern

al u

se o

nly

Agent Agent

Page 7: PostreSQL HA and DR Setup & Use Cases

•A solution to aid in the creation of highly available configurations of Postgres

•Monitors the health of a Postgres HA configuration

•Automates the failover process in the event of a failure

•Used in conjunction with Streaming Replication

Postgres Plus Failover Manager

7

CO

NFI

DEN

TIA

20

11

En

terp

rise

DB

. All

righ

ts r

eser

ved

.

Slave

Witness

Master

Page 8: PostreSQL HA and DR Setup & Use Cases

• Using pg-pool

• Using redundant disk for data

• Hot Standby node can be used for read scalability

HA with read scaling (with pg-pool)

Co

nfi

den

tial

info

rmat

ion

, fo

r in

tern

al u

se o

nly

8

Page 9: PostreSQL HA and DR Setup & Use Cases

• Trigger based replication

• Publication – Subscription

• Snapshot and Continuous

• Cascading Replication

• Read Scalability

• Master DB can be:• Oracle

• MSSQL

• Postgres Plus Advanced Server

xDB Single Master Replication (SMR)

9

Co

nfi

den

tial

info

rmat

ion

, fo

r in

tern

al u

se o

nly

Page 10: PostreSQL HA and DR Setup & Use Cases

• Trigger based replication

• 2 or more Masters can be Sync

• Auto Conflict Detection & Resolution

• Read & Write Scalability

xDB Multi Master Replication (MMR)

10

Co

nfi

den

tial

info

rmat

ion

, fo

r in

tern

al u

se o

nly

Page 11: PostreSQL HA and DR Setup & Use Cases

Co

nfi

den

tial

info

rmat

ion

, fo

r in

tern

al u

se o

nly

11