SlideShare a Scribd company logo
© 2014 EnterpriseDB Corporation. All rights reserved. 1
What is Your High Availability Plan?
Devrim Gündüz
Principal Systems Engineer
EnterpriseDB
© 2014 EnterpriseDB Corporation. All rights reserved. 2
•  Introduction to EnterpriseDB
•  Postgres clustering options
•  What is Red Hat Cluster Suite?
•  RHCS solves important High Availability problems
•  RHCS implementation basics
•  Tips for selecting hardware
•  PostgreSQL installation tips for RHCS
•  Q & A
Agenda
© 2014 EnterpriseDB Corporation. All rights reserved. 3
•  PostgreSQL contributor, and advocate
for more than 12 years
•  Responsible for PostgreSQL official
YUM repository
•  Fedora contributor since 2006
•  Principal Systems Engineer at EDB
since 2011
Your Presenter - Devrim Gündüz
© 2013 EDB All rights reserved 8.1. 4
Introduction to EDB
© 2014 EnterpriseDB Corporation. All rights reserved. 5
POSTGRES
innovation
ENTERPRISE
reliability
24/7
support
Services
& training
Enterprise-class
features & tools
Indemnification
Product
road-map
Control
Thousands
of developers
Fast
development
cycles
Low cost
No vendor
lock-in
Advanced
features
Enabling commercial
adoption of Postgres
© 2014 EnterpriseDB Corporation. All rights reserved. 6
Postgres Plus
Advanced Server Postgres Plus
Cloud Database
High Availability
PerformanceManagement
REMOTE
DBA 24x7
SUPPORT
PROFESSIONAL
SERVICES
TRAINING
EDB Serves
All Your Postgres Needs
PostgreSQL
Security
© 2014 EnterpriseDB Corporation. All rights reserved. 7
Key Strategic Partners
© 2014 EnterpriseDB Corporation. All rights reserved. 8
EDB Global 2000 Customers
© 2013 EnterpriseDB. Privileged and Confidential. All rights
reserved.
Accenture
Advanced Auto
Aetna
Airgas
AOL
AT&T
Atos Worldwide
BAE Systems
Banco do Brasil
Barclays
Bayer Healthcare
Boeing
Bouygues Telecom
CGI Federal
Check Point Software
Cisco Systems
Citigroup
Citrix
CME-Commodities
CMS
Cognizant Technology
Community Health
CSC
Deere & Company
Dell
Deutsche Börse AG
Direccion General del
Dongfeng Honda
eBay
Shinsei Financial
Siemens
Softbank
Sony
St Jude Healthcare
State Farm
Swisscom
Syngenta Crop Protection
Tata Consultancy Services
TD Ameritrade
Telefonica
Telstra
Teradata
The GAP
Tokio Marine
Toyota
Union Pacific Railroad
Vattenfall AB
Vivendi Mobile
VMWare
Volvo
Walt Disney
Wipro
Xerox
Yahoo
Yamaha
Zeejiand Bafang
Zions Bancorp
InTouch Technology
Intuit
JPMorgan Chase
KDDI
KT
Kubota
Kyocera
LG Electronics
Lockheed Martin
8
Malaysia Telecom
MasterCard
McKesson
Michelin
Mitsubishi
Moodys
Mosaic ATM
Motorola
NEC
Eisai
EMC Corporation
Emerson Electric
ENSCO
Ericsson
Expedia
Fujitsu
G4S Deposita
General Electric (GE)
Google
HCL Infosystems
Hitachi
HP
HTC Global Services
Huwaei Technologies
IBM
ICICI Lombard
Infosys
NetApp Systems
NTT
Nokia
Northrop Grumman
Nucor
ONGEI
Panasonic
PDVSA
Phillips Electronics
Phoenix Sage
QUALCOMM
Raytheon
Rite Aid
RSA
Schneider Electric
Science Applications
Serco-NA
SGS SA
© 2013 EDB All rights reserved 8.1. 9
Postgres Clustering Options
© 2014 EnterpriseDB Corporation. All rights reserved. 10
Postgres: Several Clustering Options
•  No single definition for word “cluster”
•  Solutions for different problems
•  Popular clustering alternatives
•  Where does RHCS stand in here?
−  Actually “Red Hat High Availability Add-on”
Bucardo Multimaster replication
PGpool Load balancing, connection pooling
PL/Proxy Database partitioning
Postgres-XC Write-scalable synchronous multimaster
Skytools WAL shipping, queuing, and replication
Slony Active-passive (+cascading) replication
xDB FM EDB Failover Manager (details on next slide)
© 2014 EnterpriseDB Corporation. All rights reserved. 11
EDB
EDB Failover Manager
creates fault tolerant
database clusters to
minimize downtime when
a master database fails by
keeping data online in
High Availability
configurations
FAILOVER
MANAGER Master
Streaming
Replica
Clients
Witness
Network /
Internet
The MASTER is down!
I agree! Take control now!
© 2013 EDB All rights reserved 8.1. 12
Red Hat High Availability Add-on
© 2014 EnterpriseDB Corporation. All rights reserved. 13
•  Open Source Clustering Solution
•  Supports a wide range of hardware
•  Developed by Red Hat, with the community
•  Relatively low cost
•  No data loss
•  Requires a Red Hat Enterprise Linux base subscription
Red Hat High Availability Add-on
© 2013 EDB All rights reserved 8.1. 14
Red Hat Cluster Suite Solves
Important HA Problems
© 2014 EnterpriseDB Corporation. All rights reserved. 15
•  Minimizes downtime
•  Automatic failover
•  Transparent to application
•  Active/passive clustering
•  Redundancy
−  Data
−  Network
−  Server & Power
However, the Red Hat HA Add-on is not
−  A replication solution
−  A multimaster solution
Red Hat HA Add-on with Postgres
© 2013 EDB All rights reserved 8.1. 16
Implementation Basics
© 2014 EnterpriseDB Corporation. All rights reserved. 17
•  Needs team work
−  DBA, Network, Sysadmin teams
•  No need to use Global File System (GFS)
•  Manual editing of cluster.conf
−  Avoid, or sync them all the time
•  No auto-starting of Postgres
•  Postgres' init script compatibility
Implementation Basics – Part 1
© 2014 EnterpriseDB Corporation. All rights reserved. 18
•  Quorum disk
•  Firewall considerations
•  Benefiting from clusterssh on Linux
•  Yum groupinstall “High Availability”
•  Yum groupinstall “High Availability Management”
Implementation Basics – Part 2
© 2014 EnterpriseDB Corporation. All rights reserved. 19
•  The “High Availability Management” group
−  luci, ricci
•  One web interface for managing cluster and storage
•  Automated deployment of HA packages
•  Easy integration with existing cluster
•  Managing multiple clusters with a single interface
•  Integration of cluster status and logs
Using Conga
© 2014 EnterpriseDB Corporation. All rights reserved. 20
•  Everything is handled by the add-on
•  Detection of failed node
−  Split brain scenarios
•  Failing back
−  Disabling it to avoid extra downtime
•  Total downtime: 30-60 seconds
Failover
© 2014 EnterpriseDB Corporation. All rights reserved. 21
Implementation basics
Active
PostgreSQL Server
Passive
PostgreSQL Server
Private
Network
Shared
Storage
© 2014 EnterpriseDB Corporation. All rights reserved. 22
Implementation basics
Sharded nodes,
each backing the
others up
Shared
Storage
Private
Network
Switch
Node1 Node2 Node3 Node4
© 2014 EnterpriseDB Corporation. All rights reserved. 23
Implementation basics
Data files and archived
xlogs of db1 and db2
(/pg01, /pg02,
/pga01, /pga02)
Data files and resync'd
xlogs of db1-RO and
db2-RO
(/pg03, /pg04,
/pga03, /pga04)
Passive: DB1
Active: DB2
Active: DB1
Passive: DB2
Streaming
replication
Streaming
replication
Shared Storage
Shared Storage
Active HS: DB1
Passive HS: DB2
Passive HS: DB1
Active HS: DB2
© 2013 EDB All rights reserved 8.1. 24
Choosing the Right Hardware
© 2014 EnterpriseDB Corporation. All rights reserved. 25
•  This is probably the most important part
•  You must consult the Red Hat Hardware Compatibility Guide
https://access.redhat.com/kb/docs/DOC-30004
•  You have to consider firmware
•  You must have a fencing device
−  What is fencing?
−  Importance of fencing
−  Well-known fencing devices
−  HP ILO
−  DELL DRAC
−  IBM BladeCenter
−  Cisco UCS
−  VMware
Choosing the Right Hardware
© 2014 EnterpriseDB Corporation. All rights reserved. 26
•  Multicast support
•  Internal network setup
•  Enable ICMP echo
echo "net.ipv4.icmp_echo_ignore_broadcasts = 0" 
>> /etc/sysctl.conf
•  Fiber Channel Switch for storage
•  SAN
−  RAID arrays
−  What about NFS? DAS? NAS?
•  At least 2 NICs
−  Why is 4 preferred?
Choosing the Right Hardware
© 2013 EDB All rights reserved 8.1. 27
Postgres Installation tips
© 2014 EnterpriseDB Corporation. All rights reserved. 28
•  Postgres version
•  Changing Postgres parameters:
−  listen_addresses
−  unix_domain_socket
−  external_pid_file
•  What about using the passive server as a replica?
Postgres Installation Tips
© 2014 EnterpriseDB Corporation. All rights reserved. 29
•  High Availability is important for most enterprise databases
•  Red Hat Cluster Suite solves important HA problems
•  Best practices for RHCS implementation
−  Assemble the right team
−  Choose appropriate hardware
−  Fencing is a critical consideration
−  Configure your network
−  Configure Postgres for your RHCS infrastructure
•  Walk through each step carefully to save time and aggravation
•  Get Help! EDB can help you implement an enterprise-grade
RHCS solution
Summary
© 2013 EDB All rights reserved 8.1. 30
Q&A
For further information, contact sales@enterprisedb.com

More Related Content

PDF
CQRS + Event Sourcing
PDF
MySQL Performance Best Practices
PDF
MySQL InnoDB Cluster 소개
PDF
Planning for Disaster Recovery (DR) with Galera Cluster
PDF
Percona Live 2022 - MySQL Architectures
ODP
brief introduction of drbd in SLE12SP2
PDF
MySQL 5.7 InnoDB Cluster (Jan 2018)
PPTX
JSON improvements in MySQL 8.0
CQRS + Event Sourcing
MySQL Performance Best Practices
MySQL InnoDB Cluster 소개
Planning for Disaster Recovery (DR) with Galera Cluster
Percona Live 2022 - MySQL Architectures
brief introduction of drbd in SLE12SP2
MySQL 5.7 InnoDB Cluster (Jan 2018)
JSON improvements in MySQL 8.0

What's hot (20)

PPTX
Disaster Recovery Planning for MySQL & MariaDB
PPTX
PGEncryption_Tutorial
KEY
NoSQL Technology
PDF
MySQL InnoDB Cluster: High Availability Made Easy!
PDF
State of the Dolphin - May 2022
PDF
High Availability in MySQL 8 using InnoDB Cluster
PDF
A Cloud Journey - Move to the Oracle Cloud
PPTX
The C10k Problem
PDF
MySQL Day Roma - MySQL Shell and Visual Studio Code Extension
PDF
Intro ProxySQL
PPT
Java SE 8 技術手冊第 4 章 - 認識物件
PDF
[Outdated] Secrets of Performance Tuning Java on Kubernetes
PPTX
Kubernetes Disaster Recovery - Los Angeles K8s meetup Dec 10 2019
PDF
MySQL Data Encryption at Rest
PPTX
Exadata Backup
PDF
Managing PostgreSQL with Ansible
 
PDF
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
PPTX
Ch04 會話管理
PPTX
Achieving High Availability in PostgreSQL
PDF
Enable oracle database vault
Disaster Recovery Planning for MySQL & MariaDB
PGEncryption_Tutorial
NoSQL Technology
MySQL InnoDB Cluster: High Availability Made Easy!
State of the Dolphin - May 2022
High Availability in MySQL 8 using InnoDB Cluster
A Cloud Journey - Move to the Oracle Cloud
The C10k Problem
MySQL Day Roma - MySQL Shell and Visual Studio Code Extension
Intro ProxySQL
Java SE 8 技術手冊第 4 章 - 認識物件
[Outdated] Secrets of Performance Tuning Java on Kubernetes
Kubernetes Disaster Recovery - Los Angeles K8s meetup Dec 10 2019
MySQL Data Encryption at Rest
Exadata Backup
Managing PostgreSQL with Ansible
 
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
Ch04 會話管理
Achieving High Availability in PostgreSQL
Enable oracle database vault
Ad

Viewers also liked (9)

PDF
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
PDF
PostgresOpen 2013 A Comparison of PostgreSQL Encryption Options
PDF
PoPostgreSQL Web Projects: From Start to FinishStart To Finish
PDF
High Availability PostgreSQL with Zalando Patroni
ODP
PostgreSQL Replication in 10 Minutes - SCALE
PDF
Postgres in Production - Best Practices 2014
 
PDF
Postgresql on NFS - J.Battiato, pgday2016
PDF
5 Steps to PostgreSQL Performance
PDF
Build Features, Not Apps
Best Practices of HA and Replication of PostgreSQL in Virtualized Environments
PostgresOpen 2013 A Comparison of PostgreSQL Encryption Options
PoPostgreSQL Web Projects: From Start to FinishStart To Finish
High Availability PostgreSQL with Zalando Patroni
PostgreSQL Replication in 10 Minutes - SCALE
Postgres in Production - Best Practices 2014
 
Postgresql on NFS - J.Battiato, pgday2016
5 Steps to PostgreSQL Performance
Build Features, Not Apps
Ad

Similar to Postgres & Red Hat Cluster Suite (20)

PDF
Top10 list planningpostgresdeployment.2014
 
PPTX
Automating a PostgreSQL High Availability Architecture with Ansible
 
PPTX
Introduction to HPC & Supercomputing in AI
PDF
The Power of Postgres Plus Cloud Database
 
PPT
Postgres for the Future
 
PDF
Hadoop Operations for Production Systems (Strata NYC)
PPTX
New Ceph capabilities and Reference Architectures
PPTX
Software Defined Storage, Big Data and Ceph - What Is all the Fuss About?
PDF
How To Reach Your Goals with Postgres Plus Cloud Database
 
PDF
Red Hat for IBM System z IBM Enterprise2014 Las Vegas
PDF
Powerplay: Postgres and Lenovo for the Best Performance & Savings
 
PDF
Track B-3 解構大數據架構 - 大數據系統的伺服器與網路資源規劃
PPTX
Designing your xen app 7.5 environment
PPTX
SQL PASS Taiwan 七月份聚會-1
PDF
Best Practices for Deploying Enterprise Applications on UNIX
PPTX
Postgres Plus Cloud Database
PPTX
Designing your XenApp 7.5 Environment
PDF
Postgres Plus Cloud Database on OpenStack
PPTX
Big Data Benchmarking with RDMA solutions
PDF
Reliable Storage for High Availability, Disaster Recovery, Clouds and Contain...
Top10 list planningpostgresdeployment.2014
 
Automating a PostgreSQL High Availability Architecture with Ansible
 
Introduction to HPC & Supercomputing in AI
The Power of Postgres Plus Cloud Database
 
Postgres for the Future
 
Hadoop Operations for Production Systems (Strata NYC)
New Ceph capabilities and Reference Architectures
Software Defined Storage, Big Data and Ceph - What Is all the Fuss About?
How To Reach Your Goals with Postgres Plus Cloud Database
 
Red Hat for IBM System z IBM Enterprise2014 Las Vegas
Powerplay: Postgres and Lenovo for the Best Performance & Savings
 
Track B-3 解構大數據架構 - 大數據系統的伺服器與網路資源規劃
Designing your xen app 7.5 environment
SQL PASS Taiwan 七月份聚會-1
Best Practices for Deploying Enterprise Applications on UNIX
Postgres Plus Cloud Database
Designing your XenApp 7.5 Environment
Postgres Plus Cloud Database on OpenStack
Big Data Benchmarking with RDMA solutions
Reliable Storage for High Availability, Disaster Recovery, Clouds and Contain...

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)

PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
observCloud-Native Containerability and monitoring.pptx
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Architecture types and enterprise applications.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Unlock new opportunities with location data.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPT
Module 1.ppt Iot fundamentals and Architecture
PPT
What is a Computer? Input Devices /output devices
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Developing a website for English-speaking practice to English as a foreign la...
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
The various Industrial Revolutions .pptx
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
August Patch Tuesday
Zenith AI: Advanced Artificial Intelligence
observCloud-Native Containerability and monitoring.pptx
O2C Customer Invoices to Receipt V15A.pptx
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Architecture types and enterprise applications.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
Unlock new opportunities with location data.pdf
Group 1 Presentation -Planning and Decision Making .pptx
Module 1.ppt Iot fundamentals and Architecture
What is a Computer? Input Devices /output devices
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Developing a website for English-speaking practice to English as a foreign la...
Chapter 5: Probability Theory and Statistics
Hindi spoken digit analysis for native and non-native speakers
The various Industrial Revolutions .pptx
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Enhancing emotion recognition model for a student engagement use case through...
August Patch Tuesday

Postgres & Red Hat Cluster Suite

  • 1. © 2014 EnterpriseDB Corporation. All rights reserved. 1 What is Your High Availability Plan? Devrim Gündüz Principal Systems Engineer EnterpriseDB
  • 2. © 2014 EnterpriseDB Corporation. All rights reserved. 2 •  Introduction to EnterpriseDB •  Postgres clustering options •  What is Red Hat Cluster Suite? •  RHCS solves important High Availability problems •  RHCS implementation basics •  Tips for selecting hardware •  PostgreSQL installation tips for RHCS •  Q & A Agenda
  • 3. © 2014 EnterpriseDB Corporation. All rights reserved. 3 •  PostgreSQL contributor, and advocate for more than 12 years •  Responsible for PostgreSQL official YUM repository •  Fedora contributor since 2006 •  Principal Systems Engineer at EDB since 2011 Your Presenter - Devrim Gündüz
  • 4. © 2013 EDB All rights reserved 8.1. 4 Introduction to EDB
  • 5. © 2014 EnterpriseDB Corporation. All rights reserved. 5 POSTGRES innovation ENTERPRISE reliability 24/7 support Services & training Enterprise-class features & tools Indemnification Product road-map Control Thousands of developers Fast development cycles Low cost No vendor lock-in Advanced features Enabling commercial adoption of Postgres
  • 6. © 2014 EnterpriseDB Corporation. All rights reserved. 6 Postgres Plus Advanced Server Postgres Plus Cloud Database High Availability PerformanceManagement REMOTE DBA 24x7 SUPPORT PROFESSIONAL SERVICES TRAINING EDB Serves All Your Postgres Needs PostgreSQL Security
  • 7. © 2014 EnterpriseDB Corporation. All rights reserved. 7 Key Strategic Partners
  • 8. © 2014 EnterpriseDB Corporation. All rights reserved. 8 EDB Global 2000 Customers © 2013 EnterpriseDB. Privileged and Confidential. All rights reserved. Accenture Advanced Auto Aetna Airgas AOL AT&T Atos Worldwide BAE Systems Banco do Brasil Barclays Bayer Healthcare Boeing Bouygues Telecom CGI Federal Check Point Software Cisco Systems Citigroup Citrix CME-Commodities CMS Cognizant Technology Community Health CSC Deere & Company Dell Deutsche Börse AG Direccion General del Dongfeng Honda eBay Shinsei Financial Siemens Softbank Sony St Jude Healthcare State Farm Swisscom Syngenta Crop Protection Tata Consultancy Services TD Ameritrade Telefonica Telstra Teradata The GAP Tokio Marine Toyota Union Pacific Railroad Vattenfall AB Vivendi Mobile VMWare Volvo Walt Disney Wipro Xerox Yahoo Yamaha Zeejiand Bafang Zions Bancorp InTouch Technology Intuit JPMorgan Chase KDDI KT Kubota Kyocera LG Electronics Lockheed Martin 8 Malaysia Telecom MasterCard McKesson Michelin Mitsubishi Moodys Mosaic ATM Motorola NEC Eisai EMC Corporation Emerson Electric ENSCO Ericsson Expedia Fujitsu G4S Deposita General Electric (GE) Google HCL Infosystems Hitachi HP HTC Global Services Huwaei Technologies IBM ICICI Lombard Infosys NetApp Systems NTT Nokia Northrop Grumman Nucor ONGEI Panasonic PDVSA Phillips Electronics Phoenix Sage QUALCOMM Raytheon Rite Aid RSA Schneider Electric Science Applications Serco-NA SGS SA
  • 9. © 2013 EDB All rights reserved 8.1. 9 Postgres Clustering Options
  • 10. © 2014 EnterpriseDB Corporation. All rights reserved. 10 Postgres: Several Clustering Options •  No single definition for word “cluster” •  Solutions for different problems •  Popular clustering alternatives •  Where does RHCS stand in here? −  Actually “Red Hat High Availability Add-on” Bucardo Multimaster replication PGpool Load balancing, connection pooling PL/Proxy Database partitioning Postgres-XC Write-scalable synchronous multimaster Skytools WAL shipping, queuing, and replication Slony Active-passive (+cascading) replication xDB FM EDB Failover Manager (details on next slide)
  • 11. © 2014 EnterpriseDB Corporation. All rights reserved. 11 EDB EDB Failover Manager creates fault tolerant database clusters to minimize downtime when a master database fails by keeping data online in High Availability configurations FAILOVER MANAGER Master Streaming Replica Clients Witness Network / Internet The MASTER is down! I agree! Take control now!
  • 12. © 2013 EDB All rights reserved 8.1. 12 Red Hat High Availability Add-on
  • 13. © 2014 EnterpriseDB Corporation. All rights reserved. 13 •  Open Source Clustering Solution •  Supports a wide range of hardware •  Developed by Red Hat, with the community •  Relatively low cost •  No data loss •  Requires a Red Hat Enterprise Linux base subscription Red Hat High Availability Add-on
  • 14. © 2013 EDB All rights reserved 8.1. 14 Red Hat Cluster Suite Solves Important HA Problems
  • 15. © 2014 EnterpriseDB Corporation. All rights reserved. 15 •  Minimizes downtime •  Automatic failover •  Transparent to application •  Active/passive clustering •  Redundancy −  Data −  Network −  Server & Power However, the Red Hat HA Add-on is not −  A replication solution −  A multimaster solution Red Hat HA Add-on with Postgres
  • 16. © 2013 EDB All rights reserved 8.1. 16 Implementation Basics
  • 17. © 2014 EnterpriseDB Corporation. All rights reserved. 17 •  Needs team work −  DBA, Network, Sysadmin teams •  No need to use Global File System (GFS) •  Manual editing of cluster.conf −  Avoid, or sync them all the time •  No auto-starting of Postgres •  Postgres' init script compatibility Implementation Basics – Part 1
  • 18. © 2014 EnterpriseDB Corporation. All rights reserved. 18 •  Quorum disk •  Firewall considerations •  Benefiting from clusterssh on Linux •  Yum groupinstall “High Availability” •  Yum groupinstall “High Availability Management” Implementation Basics – Part 2
  • 19. © 2014 EnterpriseDB Corporation. All rights reserved. 19 •  The “High Availability Management” group −  luci, ricci •  One web interface for managing cluster and storage •  Automated deployment of HA packages •  Easy integration with existing cluster •  Managing multiple clusters with a single interface •  Integration of cluster status and logs Using Conga
  • 20. © 2014 EnterpriseDB Corporation. All rights reserved. 20 •  Everything is handled by the add-on •  Detection of failed node −  Split brain scenarios •  Failing back −  Disabling it to avoid extra downtime •  Total downtime: 30-60 seconds Failover
  • 21. © 2014 EnterpriseDB Corporation. All rights reserved. 21 Implementation basics Active PostgreSQL Server Passive PostgreSQL Server Private Network Shared Storage
  • 22. © 2014 EnterpriseDB Corporation. All rights reserved. 22 Implementation basics Sharded nodes, each backing the others up Shared Storage Private Network Switch Node1 Node2 Node3 Node4
  • 23. © 2014 EnterpriseDB Corporation. All rights reserved. 23 Implementation basics Data files and archived xlogs of db1 and db2 (/pg01, /pg02, /pga01, /pga02) Data files and resync'd xlogs of db1-RO and db2-RO (/pg03, /pg04, /pga03, /pga04) Passive: DB1 Active: DB2 Active: DB1 Passive: DB2 Streaming replication Streaming replication Shared Storage Shared Storage Active HS: DB1 Passive HS: DB2 Passive HS: DB1 Active HS: DB2
  • 24. © 2013 EDB All rights reserved 8.1. 24 Choosing the Right Hardware
  • 25. © 2014 EnterpriseDB Corporation. All rights reserved. 25 •  This is probably the most important part •  You must consult the Red Hat Hardware Compatibility Guide https://access.redhat.com/kb/docs/DOC-30004 •  You have to consider firmware •  You must have a fencing device −  What is fencing? −  Importance of fencing −  Well-known fencing devices −  HP ILO −  DELL DRAC −  IBM BladeCenter −  Cisco UCS −  VMware Choosing the Right Hardware
  • 26. © 2014 EnterpriseDB Corporation. All rights reserved. 26 •  Multicast support •  Internal network setup •  Enable ICMP echo echo "net.ipv4.icmp_echo_ignore_broadcasts = 0" >> /etc/sysctl.conf •  Fiber Channel Switch for storage •  SAN −  RAID arrays −  What about NFS? DAS? NAS? •  At least 2 NICs −  Why is 4 preferred? Choosing the Right Hardware
  • 27. © 2013 EDB All rights reserved 8.1. 27 Postgres Installation tips
  • 28. © 2014 EnterpriseDB Corporation. All rights reserved. 28 •  Postgres version •  Changing Postgres parameters: −  listen_addresses −  unix_domain_socket −  external_pid_file •  What about using the passive server as a replica? Postgres Installation Tips
  • 29. © 2014 EnterpriseDB Corporation. All rights reserved. 29 •  High Availability is important for most enterprise databases •  Red Hat Cluster Suite solves important HA problems •  Best practices for RHCS implementation −  Assemble the right team −  Choose appropriate hardware −  Fencing is a critical consideration −  Configure your network −  Configure Postgres for your RHCS infrastructure •  Walk through each step carefully to save time and aggravation •  Get Help! EDB can help you implement an enterprise-grade RHCS solution Summary
  • 30. © 2013 EDB All rights reserved 8.1. 30 Q&A For further information, contact [email protected]