SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Building a High-Availability
PostgreSQL Cluster
Presenter: Devon Mizelle
System Administrator
Co-Author: Steven Bambling
System Administrator
What is ARIN?
•Regional Internet registry for
Canada, US, and parts of the
Caribbean
•Distributes IPv4 & IPv6 addresses and
Autonomous System Numbers (Internet
number resources) in the region
•Provides authoritative WHOIS services
for number resources in the region
2
ARIN’s Internal Data
3
Requirements
4
Why Not Slony or pgpool-II?
• Slony replaces pgSQL‟s replication –
Why do this?
– Why not let pgSQL handle it?
• Pgpool is not ACID-Compliant
– Doesn‟t confirm writes to multiple nodes
5
Our solution
• CMAN / Corosync
– Red Hat + Open-source solution for cross-
node communication
• Pacemaker
– Red Hat and Novell‟s solution for service
management and fencing
• Both under active development by
Clusterlabs
6
CMAN/ Corosync
• Provides a messaging framework
between nodes
• Handles a heartbeat between nodes
– “Are you up and available?”
– Does not provide „status‟ of service,
Pacemaker does
• Pacemaker uses Corosync to send
messages between nodes
7
CMAN / Corosync
8
About Pacemaker
• Developed / maintained by Red Hat and Novell
• Scalable – Anywhere from a two-node to a 16-
node setup
• Scriptable – Resource scripts can be written in
any language
– Monitoring – Watches out for service state changes
– Fencing – Disables a box and switches roles when
failures occur
• Shareable database between nodes about
status of services / nodes
9
Pacemaker
10
Master
AsyncSync
Other Pacemaker Resources
11
Fencing IP Addresses
How does it all tie together?
From the bottom up…
Pacemaker
13
Client “vip”Replication “vip”
Master
Sync Async App
Event Scenario
14
Master Sync AsyncMaster SyncAsync
PostgreSQL
• Still in charge of replicating data
• The state of the service and how it
starts is controlled by Pacemaker
15
Layout
16
💙 💙
MasterSlave Slave
cman cman cman
Client
Using Tools to Look Deeper
Introspection…
# crm_mon -i 1 -Arf
# crm_mon –i 1 -Arf (cont)
Questions? Devon Mizelle

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (10)

New Relic Plugin for Hadoop | Blue Medora
New Relic Plugin for Hadoop | Blue MedoraNew Relic Plugin for Hadoop | Blue Medora
New Relic Plugin for Hadoop | Blue Medora
 
IPv6
IPv6IPv6
IPv6
 
Monitoring Apps & Networks in a Cloud-Centric World at Gartner IOSS 2016
Monitoring Apps & Networks in a Cloud-Centric World at Gartner IOSS 2016Monitoring Apps & Networks in a Cloud-Centric World at Gartner IOSS 2016
Monitoring Apps & Networks in a Cloud-Centric World at Gartner IOSS 2016
 
Internet Number Resource Status Report by Guangliang Pan [APRICOT 2015]
Internet Number Resource Status Report by Guangliang Pan [APRICOT 2015]Internet Number Resource Status Report by Guangliang Pan [APRICOT 2015]
Internet Number Resource Status Report by Guangliang Pan [APRICOT 2015]
 
Dataflow with Apache NiFi - Crash Course - HS16SJ
Dataflow with Apache NiFi - Crash Course - HS16SJDataflow with Apache NiFi - Crash Course - HS16SJ
Dataflow with Apache NiFi - Crash Course - HS16SJ
 
Let Data Flow: Removing the Latest DevOps Constraints with DataOps
Let Data Flow: Removing the Latest DevOps Constraints with DataOpsLet Data Flow: Removing the Latest DevOps Constraints with DataOps
Let Data Flow: Removing the Latest DevOps Constraints with DataOps
 
How CDNs Can improve Mobile Application Performance
How CDNs Can improve Mobile Application PerformanceHow CDNs Can improve Mobile Application Performance
How CDNs Can improve Mobile Application Performance
 
Enterprise Data Science at Scale @ Princeton, NJ 14-Nov-2017
Enterprise Data Science at Scale @ Princeton, NJ 14-Nov-2017Enterprise Data Science at Scale @ Princeton, NJ 14-Nov-2017
Enterprise Data Science at Scale @ Princeton, NJ 14-Nov-2017
 
Look Before You Leap: Migrating On-Premises Hadoop to AWS
Look Before You Leap: Migrating On-Premises Hadoop to AWSLook Before You Leap: Migrating On-Premises Hadoop to AWS
Look Before You Leap: Migrating On-Premises Hadoop to AWS
 
AWS re:Invent 2016: Simplify Cloud Migration with AWS Server Migration Servic...
AWS re:Invent 2016: Simplify Cloud Migration with AWS Server Migration Servic...AWS re:Invent 2016: Simplify Cloud Migration with AWS Server Migration Servic...
AWS re:Invent 2016: Simplify Cloud Migration with AWS Server Migration Servic...
 

Ähnlich wie Building a High-Availability PostgreSQL Cluster at ARIN

Blue host openstacksummit_2013
Blue host openstacksummit_2013Blue host openstacksummit_2013
Blue host openstacksummit_2013
Jun Park
 
Blue host using openstack in a traditional hosting environment
Blue host using openstack in a traditional hosting environmentBlue host using openstack in a traditional hosting environment
Blue host using openstack in a traditional hosting environment
OpenStack Foundation
 
Understanding i pv6 2
Understanding i pv6 2Understanding i pv6 2
Understanding i pv6 2
srmanjuskp
 

Ähnlich wie Building a High-Availability PostgreSQL Cluster at ARIN (20)

MySQL Options in OpenStack
MySQL Options in OpenStackMySQL Options in OpenStack
MySQL Options in OpenStack
 
OpenStack Days East -- MySQL Options in OpenStack
OpenStack Days East -- MySQL Options in OpenStackOpenStack Days East -- MySQL Options in OpenStack
OpenStack Days East -- MySQL Options in OpenStack
 
MYSQL
MYSQLMYSQL
MYSQL
 
MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014
 
Tech Talk Series, Part 2: Why is sharding not smart to do in MySQL?
Tech Talk Series, Part 2: Why is sharding not smart to do in MySQL?Tech Talk Series, Part 2: Why is sharding not smart to do in MySQL?
Tech Talk Series, Part 2: Why is sharding not smart to do in MySQL?
 
Blue host openstacksummit_2013
Blue host openstacksummit_2013Blue host openstacksummit_2013
Blue host openstacksummit_2013
 
Blue host using openstack in a traditional hosting environment
Blue host using openstack in a traditional hosting environmentBlue host using openstack in a traditional hosting environment
Blue host using openstack in a traditional hosting environment
 
EBS on Oracle Cloud
EBS on Oracle CloudEBS on Oracle Cloud
EBS on Oracle Cloud
 
IPv6 on the Interop Network
IPv6 on the Interop NetworkIPv6 on the Interop Network
IPv6 on the Interop Network
 
DoneDeal - AWS Data Analytics Platform
DoneDeal - AWS Data Analytics PlatformDoneDeal - AWS Data Analytics Platform
DoneDeal - AWS Data Analytics Platform
 
Disaster Recovery Site Implementation with MySQL
Disaster Recovery Site Implementation with MySQLDisaster Recovery Site Implementation with MySQL
Disaster Recovery Site Implementation with MySQL
 
Postgres for Digital Transformation: NoSQL Features, Replication, FDW & More
Postgres for Digital Transformation:NoSQL Features, Replication, FDW & MorePostgres for Digital Transformation:NoSQL Features, Replication, FDW & More
Postgres for Digital Transformation: NoSQL Features, Replication, FDW & More
 
Cross-platform interaction
Cross-platform interactionCross-platform interaction
Cross-platform interaction
 
Tale of a New Bangladeshi NIX
Tale of a New Bangladeshi NIXTale of a New Bangladeshi NIX
Tale of a New Bangladeshi NIX
 
Aruman Cassandra database
Aruman Cassandra databaseAruman Cassandra database
Aruman Cassandra database
 
Understanding i pv6 2
Understanding i pv6 2Understanding i pv6 2
Understanding i pv6 2
 
Neo4j 3.2 Launch
Neo4j 3.2 LaunchNeo4j 3.2 Launch
Neo4j 3.2 Launch
 
Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale
 
Play With Streams
Play With StreamsPlay With Streams
Play With Streams
 
Webinar slides: How to deploy and manage HAProxy, MaxScale or ProxySQL with C...
Webinar slides: How to deploy and manage HAProxy, MaxScale or ProxySQL with C...Webinar slides: How to deploy and manage HAProxy, MaxScale or ProxySQL with C...
Webinar slides: How to deploy and manage HAProxy, MaxScale or ProxySQL with C...
 

Mehr von ARIN

Mehr von ARIN (20)

Growing the Internet with IPv6 Infographic
Growing the Internet with IPv6 InfographicGrowing the Internet with IPv6 Infographic
Growing the Internet with IPv6 Infographic
 
Out of IPv4! What that means for ISPs
Out of IPv4! What that means for ISPs Out of IPv4! What that means for ISPs
Out of IPv4! What that means for ISPs
 
CES 2016 Panel: Your Customers Are on the New Internet – Are you?
CES 2016 Panel: Your Customers Are on the New Internet – Are you?CES 2016 Panel: Your Customers Are on the New Internet – Are you?
CES 2016 Panel: Your Customers Are on the New Internet – Are you?
 
ARIN on the Road
ARIN on the RoadARIN on the Road
ARIN on the Road
 
Internet Operations and the RIRs
Internet Operations and the RIRsInternet Operations and the RIRs
Internet Operations and the RIRs
 
ARIN IP Address Stewardship
ARIN IP Address StewardshipARIN IP Address Stewardship
ARIN IP Address Stewardship
 
ARIN 36 IETF IPv6 Activities Report
ARIN 36 IETF IPv6 Activities ReportARIN 36 IETF IPv6 Activities Report
ARIN 36 IETF IPv6 Activities Report
 
ARIN 36 ASO AC / NRO NC Report
ARIN 36 ASO AC / NRO NC ReportARIN 36 ASO AC / NRO NC Report
ARIN 36 ASO AC / NRO NC Report
 
ARIN 36 Engineering Report
ARIN 36 Engineering ReportARIN 36 Engineering Report
ARIN 36 Engineering Report
 
ARIN 36 Registration Services Report
ARIN 36 Registration Services ReportARIN 36 Registration Services Report
ARIN 36 Registration Services Report
 
ARIN 36 Advisory Council Report
ARIN 36 Advisory Council ReportARIN 36 Advisory Council Report
ARIN 36 Advisory Council Report
 
ARIN 36 Board of Trustees Report
ARIN 36 Board of Trustees ReportARIN 36 Board of Trustees Report
ARIN 36 Board of Trustees Report
 
ARIN 36 NRO Activities Report
ARIN 36 NRO Activities ReportARIN 36 NRO Activities Report
ARIN 36 NRO Activities Report
 
ARIN 35: NRO Activities Report
ARIN 35: NRO Activities ReportARIN 35: NRO Activities Report
ARIN 35: NRO Activities Report
 
ARIN 35: Internet Number Resource Status Report
ARIN 35: Internet Number Resource Status ReportARIN 35: Internet Number Resource Status Report
ARIN 35: Internet Number Resource Status Report
 
ARIN 35: CRISP Panel
ARIN 35: CRISP PanelARIN 35: CRISP Panel
ARIN 35: CRISP Panel
 
ARIN 35 Tutorial: How to certify your ARIN resources with RPKI
ARIN 35 Tutorial: How to certify your ARIN resources with RPKIARIN 35 Tutorial: How to certify your ARIN resources with RPKI
ARIN 35 Tutorial: How to certify your ARIN resources with RPKI
 
ARIN 35 Tutorial: Life after IPv4 depletion
ARIN 35 Tutorial: Life after IPv4 depletionARIN 35 Tutorial: Life after IPv4 depletion
ARIN 35 Tutorial: Life after IPv4 depletion
 
ARIN 34 ARIN Reports: Engineering
ARIN 34 ARIN Reports: EngineeringARIN 34 ARIN Reports: Engineering
ARIN 34 ARIN Reports: Engineering
 
ARIN 34 Policy Implementation and Experience Report
ARIN 34 Policy Implementation and Experience ReportARIN 34 Policy Implementation and Experience Report
ARIN 34 Policy Implementation and Experience Report
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Kürzlich hochgeladen (20)

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Building a High-Availability PostgreSQL Cluster at ARIN