PostreSQL HA and DR Setup & Use Cases
Click here to load reader
-
Upload
ashnikbiz -
Category
Technology
-
view
319 -
download
2
description
Transcript of 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
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
• 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
• 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
• 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
EDB Postgres Plus Failover Manager
6
Co
nfi
den
tial
info
rmat
ion
, fo
r in
tern
al u
se o
nly
Agent Agent
•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
L©
20
11
En
terp
rise
DB
. All
righ
ts r
eser
ved
.
Slave
Witness
Master
• 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
• 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
• 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
Co
nfi
den
tial
info
rmat
ion
, fo
r in
tern
al u
se o
nly
11