SlideShare a Scribd company logo
© Copyright EnterpriseDB Corporation, 2015. All rights reserved. 1
Active / Active Database Solutions with Log
Based Replication in xDB 6.0
© Copyright EnterpriseDB Corporation, 2015. All rights reserved. 2
•  xDB Overview
−  Features
−  Use Cases
−  Components of a Multi Master Replication System
•  Supporting Active / Active Database Solutions with xDB 6.0
−  Faster and more efficient replication with log-based Multi Master replication for
Postgres Plus and PostgreSQL
−  Easier to configure publication tables in bulk with pattern matching selection rules
−  Ensuring High Availability with integration of the 'Control Schema’
−  Improved performance in conflict detection rules
Agenda
© Copyright EnterpriseDB Corporation, 2015. All rights reserved. 3
xDB is a highly flexible database
replication tool to address multiple
problem sets
What is xDB?
Multi Master: Consolidated view from any node
and multiple conflict detection / resolution rules
•  Write Availability & Scalability
•  Warm Standby
•  Localized Data Access
Single Master: Heterogeneous (Oracle, SQL
Server, PG, PPAS) & filtered data sources
•  Offload Reporting or BI Queries from the
OLTP system
•  Migrate or test systems at low cost
© Copyright EnterpriseDB Corporation, 2015. All rights reserved. 4
Features
•  Distributed Publication / Subscription
Architecture
•  Snapshot and continuous synchronization
modes
•  Replicate one or more tables
•  Define and apply row filters
•  Flexible replication scheduler
•  Supports cascading replication
•  Replication History Viewer
•  Graphical Console and CLI
Use Cases
•  Write Availability
•  Write Scalability
•  Warm Standby Servers
•  Localized Data Access
•  Offloading Reporting and Business
Intelligence Queries
•  Testing Systems in Parallel
•  Migrating Data
xDB Feature Highlights
© Copyright EnterpriseDB Corporation, 2015. All rights reserved. 5
Why xDB over other
replication tools?
•  Rich graphical management console
−  complete control over your replication system
−  a history viewer
−  a replication scheduler
•  Command line operations suitable for scripting.
•  Multi-Master is an ideal solution for geographically
dispersed data centers or co-located redundant data
sets. It provides a critical component of a 24x7 near
zero downtime maintenance operation.
•  Single Master Heterogeneous Sources provide
integration and a path to reduce other license and
maintenance costs
© Copyright EnterpriseDB Corporation, 2015. All rights reserved. 6
•  Publication Server & Configuration Files:
−  Java application; configures publication database and
master nodes for replication; performs replication.
•  Controller database (Can be any Master Node):
−  Primary provider of the replication system information
to the publication server.
−  Must be first one running and accessible to publication
server; can be set to any node.
•  Master Definition Node
−  First node added to the MMR system
−  Table definitions and optionally initial data to publish
−  Role can be reassigned
•  Master Node
−  Replicated & updatable data stores
•  More Info in Documentation Section 2.3.1.x – Physical
Components of xDB system
Architecture and Physical Components of xDB MMR
xDB is a set of programs + datastores containing configuration information and metadata
that form a replication system.
© Copyright EnterpriseDB Corporation, 2015. All rights reserved. 7
•  xDB Overview
−  Features
−  Use Cases
−  Components of a Multi Master Replication System
•  Supporting Active / Active Database Solutions with xDB 6.0
−  Faster and more efficient replication with log-based Multi Master replication for
Postgres Plus and PostgreSQL
−  Easier to configure publication tables in bulk with pattern matching selection
rules
−  Ensuring High Availability with integration of the 'Control Schema’
−  Improved performance in conflict detection rules
Agenda
© Copyright EnterpriseDB Corporation, 2015. All rights reserved. 8
•  Changes to rows in the source tables are
extracted from the Write-Ahead Log
segments (WAL files).
•  xDB connects via walsender interface.
Changes are streamed on continuous
basis. Eliminates need to poll.
•  The extracted changes are converted to
an in-memory data structure and applied
to the target tables by means of SQL
statements executed using JDBC.
•  See Documentation section 2.2.10 for
information on the log-based method.
Faster and more efficient replication with log-based
MMR for PPAS & PG 9.4
Capture data changes without impacting the online transaction processing rate
High-level architecture of how xDB communicates with database
server to fetch logical changes.
© Copyright EnterpriseDB Corporation, 2015. All rights reserved. 9
•  Changes to rows in the source tables are
extracted from the Write-Ahead Log
segments (WAL files).
•  xDB connects via walsender interface.
Changes are streamed on continuous
basis. Eliminates need to poll.
•  The extracted changes are converted to
an in-memory data structure and applied
to the target tables by means of SQL
statements executed using JDBC.
•  See Documentation section 2.2.10 for
information on the log-based method.
Faster and more efficient replication with log-based
MMR for PPAS & PG 9.4
Capture data changes without impacting the online transaction processing rate
© Copyright EnterpriseDB Corporation, 2015. All rights reserved. 10
•  When you have a lot of tables to choose
from when building your publication, the
wildcard selection dialog is a useful tool
•  Here we see a few examples
−  % as a wildcard character to identify all
tables of the _gb designation
−  [character lists] to identify more patterns
with specific characters
•  Detailed Help is available in the client
•  See Documentation section 7.1 for
information on the wildcard selector UI.
Easier to Configure Publication Tables in Bulk
Use sophisticated pattern matching rules to identify tables for publication
© Copyright EnterpriseDB Corporation, 2015. All rights reserved. 11
•  In an xDB MMR systems, if any master goes
offline, remaining nodes continue to synchronize
amongst themselves.
•  When an offline master is brought back, pending
transactions are synchronized.
•  Each node serves as a backup of other nodes*
•  As part of the Control Schema integration project,
normal replication configuration (control tables,
procedures/functions, sequences…) and history
tables are also replicated amongst master nodes.
•  Thus, there is resiliency built into the system such
that you could lose any database node and
replication operations will continue
•  See Documentation 6.11 for more information
*Keep care when using Table Filters, as some nodes may not have all data
replicated onto it.
Ensuring High Availability
Control
Schema
Control
Schema
Control
Schema
© Copyright EnterpriseDB Corporation, 2015. All rights reserved. 12
•  There is however special significance of the
Controller Database
−  Publication server accesses it for configuration
information
−  So any changes made to system config using GUI
or CLI is done on Controller DB first
•  For planned maintenance
−  You can identify a different node to be your
Controller using the GUI Console or CLI
•  For unplanned maintenance
−  Edit the xDB Configuration file to contain
connection information of another master node
−  Restart publication server.
−  You can now use the CLI or GUI tool to connect to,
monitor and manage the replication system.
•  See Documentation 6.11 for more information
Ensuring High Availability
© Copyright EnterpriseDB Corporation, 2015. All rights reserved. 13
•  xDB 5.x conflict detection query is
based on IN clause for doing the
comparison of PK attribute(s).
•  i.e. SELECT s.* FROM
_edb_replicator_pub.rrst_public_orders
WHERE order_id IN (1,5,10,15,20,21);
•  Performance starts to degrade as table
grows or if PK type is not numeric.
•  We replaced the existing query with a
‘common table expression’ optimize the
query execution time.
•  i.e. WITH temp_table AS (SELECT…
Improved Performance in Conflict Detection
Over 100x improvement with large tables and non-numeric PK
Internal Testing: Create table and seed 10
million rows of text data
create table x (t text not null);

insert into x select md5(n::text)
from (select generate_series(1,
10000000)) w(n);
Show timing with old and new algorithm
timing on
test=# select xdb60_style();

--Time: 3,629.105 ms (3 seconds)

test=# select xdb51_style();

--Time: 2,198,287.369 ms (36
minutes!)
© Copyright EnterpriseDB Corporation, 2015. All rights reserved. 14
•  Active / Active Databases with fast and efficient log based replication and
high performance conflict detection algorithms
•  Pattern matching selection rules make it easier to configure publication
tables in bulk
•  Simple High Availability is now possible with integration of the 'Control
Schema’
Summary – xDB 6.0 Enables New Replication Solutions!
© Copyright EnterpriseDB Corporation, 2015. All rights reserved. 15

More Related Content

PPT
FreeRTOS Course - Queue Management
PDF
PromQL Deep Dive - The Prometheus Query Language
PDF
Apache Ratis - In Search of a Usable Raft Library
PDF
Kafka Streams at Scale (Deepak Goyal, Walmart Labs) Kafka Summit London 2019
PPTX
High throughput data replication over RAFT
PPTX
Introduction to Kafka and Zookeeper
PDF
Linux-HA with Pacemaker
PDF
Apache HBase - Just the Basics
FreeRTOS Course - Queue Management
PromQL Deep Dive - The Prometheus Query Language
Apache Ratis - In Search of a Usable Raft Library
Kafka Streams at Scale (Deepak Goyal, Walmart Labs) Kafka Summit London 2019
High throughput data replication over RAFT
Introduction to Kafka and Zookeeper
Linux-HA with Pacemaker
Apache HBase - Just the Basics

What's hot (20)

PDF
Almost Perfect Service Discovery and Failover with ProxySQL and Orchestrator
PDF
PostgreSQL at 20TB and Beyond
PDF
Galera Cluster 4 for MySQL 8 Release Webinar slides
PDF
Graal and Truffle: One VM to Rule Them All
PPTX
HBase and HDFS: Understanding FileSystem Usage in HBase
PPTX
Apache Kafka
PDF
Ceph: Open Source Storage Software Optimizations on Intel® Architecture for C...
PPTX
Deploying MariaDB databases with containers at Nokia Networks
PPTX
Kafka 101
PPTX
Kafka presentation
PDF
Group Replication in MySQL 8.0 ( A Walk Through )
PPTX
Apache kafka
PDF
Quarkus tips, tricks, and techniques
PDF
Zero-Downtime Deployment with Kubernetes, SpringBoot & Flyway
PDF
Deep Dive: What's New in NetBackup Appliances 3.1
PPT
DMsuite Static & Dynamic Data Masking Overview
PPTX
Discover Quarkus and GraalVM
PPT
An Effective Approach to Migrate Cassandra Thrift to CQL (Yabin Meng, Pythian...
PDF
Uber: Kafka Consumer Proxy
PDF
How to set up orchestrator to manage thousands of MySQL servers
Almost Perfect Service Discovery and Failover with ProxySQL and Orchestrator
PostgreSQL at 20TB and Beyond
Galera Cluster 4 for MySQL 8 Release Webinar slides
Graal and Truffle: One VM to Rule Them All
HBase and HDFS: Understanding FileSystem Usage in HBase
Apache Kafka
Ceph: Open Source Storage Software Optimizations on Intel® Architecture for C...
Deploying MariaDB databases with containers at Nokia Networks
Kafka 101
Kafka presentation
Group Replication in MySQL 8.0 ( A Walk Through )
Apache kafka
Quarkus tips, tricks, and techniques
Zero-Downtime Deployment with Kubernetes, SpringBoot & Flyway
Deep Dive: What's New in NetBackup Appliances 3.1
DMsuite Static & Dynamic Data Masking Overview
Discover Quarkus and GraalVM
An Effective Approach to Migrate Cassandra Thrift to CQL (Yabin Meng, Pythian...
Uber: Kafka Consumer Proxy
How to set up orchestrator to manage thousands of MySQL servers
Ad

Viewers also liked (8)

PPTX
X-DB Replication Server and MMR
PDF
Streaming Replication (Keynote @ PostgreSQL Conference 2009 Japan)
PDF
Enterprise PostgreSQL - EDB's answer to conventional Databases
PPTX
kafka for db as postgres
PDF
Logical Replication in PostgreSQL - FLOSSUK 2016
PDF
Multimaster
PDF
Streaming replication in practice
PDF
Troubleshooting PostgreSQL Streaming Replication
X-DB Replication Server and MMR
Streaming Replication (Keynote @ PostgreSQL Conference 2009 Japan)
Enterprise PostgreSQL - EDB's answer to conventional Databases
kafka for db as postgres
Logical Replication in PostgreSQL - FLOSSUK 2016
Multimaster
Streaming replication in practice
Troubleshooting PostgreSQL Streaming Replication
Ad

Similar to Active/Active Database Solutions with Log Based Replication in xDB 6.0 (20)

PDF
Introduction to Postrges-XC
PDF
Top10 list planningpostgresdeployment.2014
 
PPTX
PPCD_And_AmazonRDS
PPTX
EDB Database Servers and Tools
PDF
Whats new in_postgres_enterprise_db_20130124
 
PPTX
Enterprise-class security with PostgreSQL - 2
PDF
Confoo 202 - MySQL Group Replication and ReplicaSet
PDF
Introducing Postgres Enterprise Manager 5.0
 
PDF
Best Practices for a Complete Postgres Enterprise Architecture Setup
 
PDF
Pgxc scalability pg_open2012
PDF
Top 10 Tips for an Effective Postgres Deployment
 
PDF
Postgres Integrates Effectively in the "Enterprise Sandbox"
 
PDF
EDB Postgres Replication Server
 
PPTX
EDB: Power to Postgres
ODP
MySQL Cluster
PPTX
Postgres survey podcast
PDF
What to expect from MariaDB Platform X5, part 1
PDF
Public Sector Virtual Town Hall
 
PDF
Introduction to MySQL Cluster
PDF
COUG_AAbate_Oracle_Database_12c_New_Features
Introduction to Postrges-XC
Top10 list planningpostgresdeployment.2014
 
PPCD_And_AmazonRDS
EDB Database Servers and Tools
Whats new in_postgres_enterprise_db_20130124
 
Enterprise-class security with PostgreSQL - 2
Confoo 202 - MySQL Group Replication and ReplicaSet
Introducing Postgres Enterprise Manager 5.0
 
Best Practices for a Complete Postgres Enterprise Architecture Setup
 
Pgxc scalability pg_open2012
Top 10 Tips for an Effective Postgres Deployment
 
Postgres Integrates Effectively in the "Enterprise Sandbox"
 
EDB Postgres Replication Server
 
EDB: Power to Postgres
MySQL Cluster
Postgres survey podcast
What to expect from MariaDB Platform X5, part 1
Public Sector Virtual Town Hall
 
Introduction to MySQL Cluster
COUG_AAbate_Oracle_Database_12c_New_Features

More from EDB (20)

PDF
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
 
PDF
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
 
PDF
Migre sus bases de datos Oracle a la nube
 
PDF
EFM Office Hours - APJ - July 29, 2021
 
PDF
Benchmarking Cloud Native PostgreSQL
 
PDF
Las Variaciones de la Replicación de PostgreSQL
 
PDF
NoSQL and Spatial Database Capabilities using PostgreSQL
 
PDF
Is There Anything PgBouncer Can’t Do?
 
PDF
Data Analysis with TensorFlow in PostgreSQL
 
PDF
Practical Partitioning in Production with Postgres
 
PDF
A Deeper Dive into EXPLAIN
 
PDF
IOT with PostgreSQL
 
PDF
A Journey from Oracle to PostgreSQL
 
PDF
Psql is awesome!
 
PDF
EDB 13 - New Enhancements for Security and Usability - APJ
 
PPTX
Comment sauvegarder correctement vos données
 
PDF
Cloud Native PostgreSQL - Italiano
 
PDF
New enhancements for security and usability in EDB 13
 
PPTX
Best Practices in Security with PostgreSQL
 
PDF
Cloud Native PostgreSQL - APJ
 
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
 
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
 
Migre sus bases de datos Oracle a la nube
 
EFM Office Hours - APJ - July 29, 2021
 
Benchmarking Cloud Native PostgreSQL
 
Las Variaciones de la Replicación de PostgreSQL
 
NoSQL and Spatial Database Capabilities using PostgreSQL
 
Is There Anything PgBouncer Can’t Do?
 
Data Analysis with TensorFlow in PostgreSQL
 
Practical Partitioning in Production with Postgres
 
A Deeper Dive into EXPLAIN
 
IOT with PostgreSQL
 
A Journey from Oracle to PostgreSQL
 
Psql is awesome!
 
EDB 13 - New Enhancements for Security and Usability - APJ
 
Comment sauvegarder correctement vos données
 
Cloud Native PostgreSQL - Italiano
 
New enhancements for security and usability in EDB 13
 
Best Practices in Security with PostgreSQL
 
Cloud Native PostgreSQL - APJ
 

Recently uploaded (20)

PPTX
Transform Your Business with a Software ERP System
PPTX
history of c programming in notes for students .pptx
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
Essential Infomation Tech presentation.pptx
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
AI in Product Development-omnex systems
PPTX
L1 - Introduction to python Backend.pptx
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
top salesforce developer skills in 2025.pdf
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
System and Network Administration Chapter 2
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
ai tools demonstartion for schools and inter college
PDF
medical staffing services at VALiNTRY
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
Transform Your Business with a Software ERP System
history of c programming in notes for students .pptx
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
How to Migrate SBCGlobal Email to Yahoo Easily
Essential Infomation Tech presentation.pptx
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
How to Choose the Right IT Partner for Your Business in Malaysia
AI in Product Development-omnex systems
L1 - Introduction to python Backend.pptx
How Creative Agencies Leverage Project Management Software.pdf
top salesforce developer skills in 2025.pdf
Softaken Excel to vCard Converter Software.pdf
Design an Analysis of Algorithms II-SECS-1021-03
System and Network Administration Chapter 2
Operating system designcfffgfgggggggvggggggggg
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Odoo Companies in India – Driving Business Transformation.pdf
ai tools demonstartion for schools and inter college
medical staffing services at VALiNTRY
Wondershare Filmora 15 Crack With Activation Key [2025

Active/Active Database Solutions with Log Based Replication in xDB 6.0

  • 1. © Copyright EnterpriseDB Corporation, 2015. All rights reserved. 1 Active / Active Database Solutions with Log Based Replication in xDB 6.0
  • 2. © Copyright EnterpriseDB Corporation, 2015. All rights reserved. 2 •  xDB Overview −  Features −  Use Cases −  Components of a Multi Master Replication System •  Supporting Active / Active Database Solutions with xDB 6.0 −  Faster and more efficient replication with log-based Multi Master replication for Postgres Plus and PostgreSQL −  Easier to configure publication tables in bulk with pattern matching selection rules −  Ensuring High Availability with integration of the 'Control Schema’ −  Improved performance in conflict detection rules Agenda
  • 3. © Copyright EnterpriseDB Corporation, 2015. All rights reserved. 3 xDB is a highly flexible database replication tool to address multiple problem sets What is xDB? Multi Master: Consolidated view from any node and multiple conflict detection / resolution rules •  Write Availability & Scalability •  Warm Standby •  Localized Data Access Single Master: Heterogeneous (Oracle, SQL Server, PG, PPAS) & filtered data sources •  Offload Reporting or BI Queries from the OLTP system •  Migrate or test systems at low cost
  • 4. © Copyright EnterpriseDB Corporation, 2015. All rights reserved. 4 Features •  Distributed Publication / Subscription Architecture •  Snapshot and continuous synchronization modes •  Replicate one or more tables •  Define and apply row filters •  Flexible replication scheduler •  Supports cascading replication •  Replication History Viewer •  Graphical Console and CLI Use Cases •  Write Availability •  Write Scalability •  Warm Standby Servers •  Localized Data Access •  Offloading Reporting and Business Intelligence Queries •  Testing Systems in Parallel •  Migrating Data xDB Feature Highlights
  • 5. © Copyright EnterpriseDB Corporation, 2015. All rights reserved. 5 Why xDB over other replication tools? •  Rich graphical management console −  complete control over your replication system −  a history viewer −  a replication scheduler •  Command line operations suitable for scripting. •  Multi-Master is an ideal solution for geographically dispersed data centers or co-located redundant data sets. It provides a critical component of a 24x7 near zero downtime maintenance operation. •  Single Master Heterogeneous Sources provide integration and a path to reduce other license and maintenance costs
  • 6. © Copyright EnterpriseDB Corporation, 2015. All rights reserved. 6 •  Publication Server & Configuration Files: −  Java application; configures publication database and master nodes for replication; performs replication. •  Controller database (Can be any Master Node): −  Primary provider of the replication system information to the publication server. −  Must be first one running and accessible to publication server; can be set to any node. •  Master Definition Node −  First node added to the MMR system −  Table definitions and optionally initial data to publish −  Role can be reassigned •  Master Node −  Replicated & updatable data stores •  More Info in Documentation Section 2.3.1.x – Physical Components of xDB system Architecture and Physical Components of xDB MMR xDB is a set of programs + datastores containing configuration information and metadata that form a replication system.
  • 7. © Copyright EnterpriseDB Corporation, 2015. All rights reserved. 7 •  xDB Overview −  Features −  Use Cases −  Components of a Multi Master Replication System •  Supporting Active / Active Database Solutions with xDB 6.0 −  Faster and more efficient replication with log-based Multi Master replication for Postgres Plus and PostgreSQL −  Easier to configure publication tables in bulk with pattern matching selection rules −  Ensuring High Availability with integration of the 'Control Schema’ −  Improved performance in conflict detection rules Agenda
  • 8. © Copyright EnterpriseDB Corporation, 2015. All rights reserved. 8 •  Changes to rows in the source tables are extracted from the Write-Ahead Log segments (WAL files). •  xDB connects via walsender interface. Changes are streamed on continuous basis. Eliminates need to poll. •  The extracted changes are converted to an in-memory data structure and applied to the target tables by means of SQL statements executed using JDBC. •  See Documentation section 2.2.10 for information on the log-based method. Faster and more efficient replication with log-based MMR for PPAS & PG 9.4 Capture data changes without impacting the online transaction processing rate High-level architecture of how xDB communicates with database server to fetch logical changes.
  • 9. © Copyright EnterpriseDB Corporation, 2015. All rights reserved. 9 •  Changes to rows in the source tables are extracted from the Write-Ahead Log segments (WAL files). •  xDB connects via walsender interface. Changes are streamed on continuous basis. Eliminates need to poll. •  The extracted changes are converted to an in-memory data structure and applied to the target tables by means of SQL statements executed using JDBC. •  See Documentation section 2.2.10 for information on the log-based method. Faster and more efficient replication with log-based MMR for PPAS & PG 9.4 Capture data changes without impacting the online transaction processing rate
  • 10. © Copyright EnterpriseDB Corporation, 2015. All rights reserved. 10 •  When you have a lot of tables to choose from when building your publication, the wildcard selection dialog is a useful tool •  Here we see a few examples −  % as a wildcard character to identify all tables of the _gb designation −  [character lists] to identify more patterns with specific characters •  Detailed Help is available in the client •  See Documentation section 7.1 for information on the wildcard selector UI. Easier to Configure Publication Tables in Bulk Use sophisticated pattern matching rules to identify tables for publication
  • 11. © Copyright EnterpriseDB Corporation, 2015. All rights reserved. 11 •  In an xDB MMR systems, if any master goes offline, remaining nodes continue to synchronize amongst themselves. •  When an offline master is brought back, pending transactions are synchronized. •  Each node serves as a backup of other nodes* •  As part of the Control Schema integration project, normal replication configuration (control tables, procedures/functions, sequences…) and history tables are also replicated amongst master nodes. •  Thus, there is resiliency built into the system such that you could lose any database node and replication operations will continue •  See Documentation 6.11 for more information *Keep care when using Table Filters, as some nodes may not have all data replicated onto it. Ensuring High Availability Control Schema Control Schema Control Schema
  • 12. © Copyright EnterpriseDB Corporation, 2015. All rights reserved. 12 •  There is however special significance of the Controller Database −  Publication server accesses it for configuration information −  So any changes made to system config using GUI or CLI is done on Controller DB first •  For planned maintenance −  You can identify a different node to be your Controller using the GUI Console or CLI •  For unplanned maintenance −  Edit the xDB Configuration file to contain connection information of another master node −  Restart publication server. −  You can now use the CLI or GUI tool to connect to, monitor and manage the replication system. •  See Documentation 6.11 for more information Ensuring High Availability
  • 13. © Copyright EnterpriseDB Corporation, 2015. All rights reserved. 13 •  xDB 5.x conflict detection query is based on IN clause for doing the comparison of PK attribute(s). •  i.e. SELECT s.* FROM _edb_replicator_pub.rrst_public_orders WHERE order_id IN (1,5,10,15,20,21); •  Performance starts to degrade as table grows or if PK type is not numeric. •  We replaced the existing query with a ‘common table expression’ optimize the query execution time. •  i.e. WITH temp_table AS (SELECT… Improved Performance in Conflict Detection Over 100x improvement with large tables and non-numeric PK Internal Testing: Create table and seed 10 million rows of text data create table x (t text not null);
 insert into x select md5(n::text) from (select generate_series(1, 10000000)) w(n); Show timing with old and new algorithm timing on test=# select xdb60_style();
 --Time: 3,629.105 ms (3 seconds)
 test=# select xdb51_style();
 --Time: 2,198,287.369 ms (36 minutes!)
  • 14. © Copyright EnterpriseDB Corporation, 2015. All rights reserved. 14 •  Active / Active Databases with fast and efficient log based replication and high performance conflict detection algorithms •  Pattern matching selection rules make it easier to configure publication tables in bulk •  Simple High Availability is now possible with integration of the 'Control Schema’ Summary – xDB 6.0 Enables New Replication Solutions!
  • 15. © Copyright EnterpriseDB Corporation, 2015. All rights reserved. 15