Submit Search
Upload
PostgreSQL9.3 Switchover/Switchback
•
Download as PPT, PDF
•
4 likes
•
25,518 views
Vibhor Kumar
Follow
This presentation is about feature included in PostgreSQL 9.3 for switchover and switchback
Read less
Read more
Presentations & Public Speaking
Technology
Report
Share
Report
Share
1 of 16
Download now
Recommended
PostgreSQL Administration for System Administrators
PostgreSQL Administration for System Administrators
Command Prompt., Inc
Linux tuning to improve PostgreSQL performance
Linux tuning to improve PostgreSQL performance
PostgreSQL-Consulting
How does PostgreSQL work with disks: a DBA's checklist in detail. PGConf.US 2015
How does PostgreSQL work with disks: a DBA's checklist in detail. PGConf.US 2015
PostgreSQL-Consulting
PostgreSQL WAL for DBAs
PostgreSQL WAL for DBAs
PGConf APAC
Galera cluster for high availability
Galera cluster for high availability
Mydbops
Deep dive into PostgreSQL statistics.
Deep dive into PostgreSQL statistics.
Alexey Lesovsky
PostgreSQL HA
PostgreSQL HA
haroonm
PostgreSQL replication
PostgreSQL replication
NTT DATA OSS Professional Services
Recommended
PostgreSQL Administration for System Administrators
PostgreSQL Administration for System Administrators
Command Prompt., Inc
Linux tuning to improve PostgreSQL performance
Linux tuning to improve PostgreSQL performance
PostgreSQL-Consulting
How does PostgreSQL work with disks: a DBA's checklist in detail. PGConf.US 2015
How does PostgreSQL work with disks: a DBA's checklist in detail. PGConf.US 2015
PostgreSQL-Consulting
PostgreSQL WAL for DBAs
PostgreSQL WAL for DBAs
PGConf APAC
Galera cluster for high availability
Galera cluster for high availability
Mydbops
Deep dive into PostgreSQL statistics.
Deep dive into PostgreSQL statistics.
Alexey Lesovsky
PostgreSQL HA
PostgreSQL HA
haroonm
PostgreSQL replication
PostgreSQL replication
NTT DATA OSS Professional Services
MySQL Enterprise Backup (MEB)
MySQL Enterprise Backup (MEB)
Mydbops
PostgreSQL Extensions: A deeper look
PostgreSQL Extensions: A deeper look
Jignesh Shah
PostgreSQL Replication High Availability Methods
PostgreSQL Replication High Availability Methods
Mydbops
PostgreSQL and RAM usage
PostgreSQL and RAM usage
Alexey Bashtanov
5 Steps to PostgreSQL Performance
5 Steps to PostgreSQL Performance
Command Prompt., Inc
Mastering PostgreSQL Administration
Mastering PostgreSQL Administration
EDB
Troubleshooting PostgreSQL Streaming Replication
Troubleshooting PostgreSQL Streaming Replication
Alexey Lesovsky
Webinar: PostgreSQL continuous backup and PITR with Barman
Webinar: PostgreSQL continuous backup and PITR with Barman
Gabriele Bartolini
Apache Ignite vs Alluxio: Memory Speed Big Data Analytics
Apache Ignite vs Alluxio: Memory Speed Big Data Analytics
DataWorks Summit
Plny12 galera-cluster-best-practices
Plny12 galera-cluster-best-practices
Dimas Prasetyo
Getting started with postgresql
Getting started with postgresql
botsplash.com
M|18 Deep Dive: InnoDB Transactions and Write Paths
M|18 Deep Dive: InnoDB Transactions and Write Paths
MariaDB plc
HA環境構築のベスト・プラクティス
HA環境構築のベスト・プラクティス
EnterpriseDB
High Availability PostgreSQL with Zalando Patroni
High Availability PostgreSQL with Zalando Patroni
Zalando Technology
Oracle Enterprise Manager Cloud Control 13c for DBAs
Oracle Enterprise Manager Cloud Control 13c for DBAs
Gokhan Atil
PostgreSQLアーキテクチャ入門(PostgreSQL Conference 2012)
PostgreSQLアーキテクチャ入門(PostgreSQL Conference 2012)
Uptime Technologies LLC (JP)
Evolution of MySQL Parallel Replication
Evolution of MySQL Parallel Replication
Mydbops
MariaDB Server Performance Tuning & Optimization
MariaDB Server Performance Tuning & Optimization
MariaDB plc
PostgreSQL Replication Tutorial
PostgreSQL Replication Tutorial
Hans-Jürgen Schönig
Highly efficient backups with percona xtrabackup
Highly efficient backups with percona xtrabackup
Nilnandan Joshi
PostgreSQL replication
PostgreSQL replication
Masao Fujii
Postgres Point-in-Time Recovery
Postgres Point-in-Time Recovery
EDB
More Related Content
What's hot
MySQL Enterprise Backup (MEB)
MySQL Enterprise Backup (MEB)
Mydbops
PostgreSQL Extensions: A deeper look
PostgreSQL Extensions: A deeper look
Jignesh Shah
PostgreSQL Replication High Availability Methods
PostgreSQL Replication High Availability Methods
Mydbops
PostgreSQL and RAM usage
PostgreSQL and RAM usage
Alexey Bashtanov
5 Steps to PostgreSQL Performance
5 Steps to PostgreSQL Performance
Command Prompt., Inc
Mastering PostgreSQL Administration
Mastering PostgreSQL Administration
EDB
Troubleshooting PostgreSQL Streaming Replication
Troubleshooting PostgreSQL Streaming Replication
Alexey Lesovsky
Webinar: PostgreSQL continuous backup and PITR with Barman
Webinar: PostgreSQL continuous backup and PITR with Barman
Gabriele Bartolini
Apache Ignite vs Alluxio: Memory Speed Big Data Analytics
Apache Ignite vs Alluxio: Memory Speed Big Data Analytics
DataWorks Summit
Plny12 galera-cluster-best-practices
Plny12 galera-cluster-best-practices
Dimas Prasetyo
Getting started with postgresql
Getting started with postgresql
botsplash.com
M|18 Deep Dive: InnoDB Transactions and Write Paths
M|18 Deep Dive: InnoDB Transactions and Write Paths
MariaDB plc
HA環境構築のベスト・プラクティス
HA環境構築のベスト・プラクティス
EnterpriseDB
High Availability PostgreSQL with Zalando Patroni
High Availability PostgreSQL with Zalando Patroni
Zalando Technology
Oracle Enterprise Manager Cloud Control 13c for DBAs
Oracle Enterprise Manager Cloud Control 13c for DBAs
Gokhan Atil
PostgreSQLアーキテクチャ入門(PostgreSQL Conference 2012)
PostgreSQLアーキテクチャ入門(PostgreSQL Conference 2012)
Uptime Technologies LLC (JP)
Evolution of MySQL Parallel Replication
Evolution of MySQL Parallel Replication
Mydbops
MariaDB Server Performance Tuning & Optimization
MariaDB Server Performance Tuning & Optimization
MariaDB plc
PostgreSQL Replication Tutorial
PostgreSQL Replication Tutorial
Hans-Jürgen Schönig
Highly efficient backups with percona xtrabackup
Highly efficient backups with percona xtrabackup
Nilnandan Joshi
What's hot
(20)
MySQL Enterprise Backup (MEB)
MySQL Enterprise Backup (MEB)
PostgreSQL Extensions: A deeper look
PostgreSQL Extensions: A deeper look
PostgreSQL Replication High Availability Methods
PostgreSQL Replication High Availability Methods
PostgreSQL and RAM usage
PostgreSQL and RAM usage
5 Steps to PostgreSQL Performance
5 Steps to PostgreSQL Performance
Mastering PostgreSQL Administration
Mastering PostgreSQL Administration
Troubleshooting PostgreSQL Streaming Replication
Troubleshooting PostgreSQL Streaming Replication
Webinar: PostgreSQL continuous backup and PITR with Barman
Webinar: PostgreSQL continuous backup and PITR with Barman
Apache Ignite vs Alluxio: Memory Speed Big Data Analytics
Apache Ignite vs Alluxio: Memory Speed Big Data Analytics
Plny12 galera-cluster-best-practices
Plny12 galera-cluster-best-practices
Getting started with postgresql
Getting started with postgresql
M|18 Deep Dive: InnoDB Transactions and Write Paths
M|18 Deep Dive: InnoDB Transactions and Write Paths
HA環境構築のベスト・プラクティス
HA環境構築のベスト・プラクティス
High Availability PostgreSQL with Zalando Patroni
High Availability PostgreSQL with Zalando Patroni
Oracle Enterprise Manager Cloud Control 13c for DBAs
Oracle Enterprise Manager Cloud Control 13c for DBAs
PostgreSQLアーキテクチャ入門(PostgreSQL Conference 2012)
PostgreSQLアーキテクチャ入門(PostgreSQL Conference 2012)
Evolution of MySQL Parallel Replication
Evolution of MySQL Parallel Replication
MariaDB Server Performance Tuning & Optimization
MariaDB Server Performance Tuning & Optimization
PostgreSQL Replication Tutorial
PostgreSQL Replication Tutorial
Highly efficient backups with percona xtrabackup
Highly efficient backups with percona xtrabackup
Similar to PostgreSQL9.3 Switchover/Switchback
PostgreSQL replication
PostgreSQL replication
Masao Fujii
Postgres Point-in-Time Recovery
Postgres Point-in-Time Recovery
EDB
Upgrade to MySQL 5.6 without downtime
Upgrade to MySQL 5.6 without downtime
Olivier DASINI
PuppetConf 2016: An Introduction to Measuring and Tuning PE Performance – Cha...
PuppetConf 2016: An Introduction to Measuring and Tuning PE Performance – Cha...
Puppet
Solaris 11 Consolidation Tools
Solaris 11 Consolidation Tools
Roman Ivanov
MySQL 5.7 New Features to Exploit -- PHPTek/Chicago MySQL User Group May 2014
MySQL 5.7 New Features to Exploit -- PHPTek/Chicago MySQL User Group May 2014
Dave Stokes
Galera webinar migration to galera cluster from my sql async replication
Galera webinar migration to galera cluster from my sql async replication
Codership Oy - Creators of Galera Cluster
Postgres on OpenStack
Postgres on OpenStack
EDB
PostgreSQL on Kubernetes: Realizing High Availability with PGO (Postgres Ibiz...
PostgreSQL on Kubernetes: Realizing High Availability with PGO (Postgres Ibiz...
NTT DATA Technology & Innovation
Mitigating Kafka Broker ‘Gray’ Failures For Key Based Partitioners With Parti...
Mitigating Kafka Broker ‘Gray’ Failures For Key Based Partitioners With Parti...
HostedbyConfluent
RAC-Installing your First Cluster and Database
RAC-Installing your First Cluster and Database
Nikhil Kumar
Backing up Wikipedia Databases
Backing up Wikipedia Databases
Jaime Crespo
Apache Kudu: Technical Deep Dive
Apache Kudu: Technical Deep Dive
Cloudera, Inc.
Meb Backup & Recovery Performance
Meb Backup & Recovery Performance
Keith Hollman
MySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disks
Dave Stokes
Deploying PostgreSQL on Kubernetes
Deploying PostgreSQL on Kubernetes
Jimmy Angelakos
LVOUG meetup #4 - Case Study 10g to 11g
LVOUG meetup #4 - Case Study 10g to 11g
Maris Elsins
Start Counting: How We Unlocked Platform Efficiency and Reliability While Sav...
Start Counting: How We Unlocked Platform Efficiency and Reliability While Sav...
VMware Tanzu
Building tungsten-clusters-with-postgre sql-hot-standby-and-streaming-replica...
Building tungsten-clusters-with-postgre sql-hot-standby-and-streaming-replica...
Command Prompt., Inc
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
Paresh Patel
Similar to PostgreSQL9.3 Switchover/Switchback
(20)
PostgreSQL replication
PostgreSQL replication
Postgres Point-in-Time Recovery
Postgres Point-in-Time Recovery
Upgrade to MySQL 5.6 without downtime
Upgrade to MySQL 5.6 without downtime
PuppetConf 2016: An Introduction to Measuring and Tuning PE Performance – Cha...
PuppetConf 2016: An Introduction to Measuring and Tuning PE Performance – Cha...
Solaris 11 Consolidation Tools
Solaris 11 Consolidation Tools
MySQL 5.7 New Features to Exploit -- PHPTek/Chicago MySQL User Group May 2014
MySQL 5.7 New Features to Exploit -- PHPTek/Chicago MySQL User Group May 2014
Galera webinar migration to galera cluster from my sql async replication
Galera webinar migration to galera cluster from my sql async replication
Postgres on OpenStack
Postgres on OpenStack
PostgreSQL on Kubernetes: Realizing High Availability with PGO (Postgres Ibiz...
PostgreSQL on Kubernetes: Realizing High Availability with PGO (Postgres Ibiz...
Mitigating Kafka Broker ‘Gray’ Failures For Key Based Partitioners With Parti...
Mitigating Kafka Broker ‘Gray’ Failures For Key Based Partitioners With Parti...
RAC-Installing your First Cluster and Database
RAC-Installing your First Cluster and Database
Backing up Wikipedia Databases
Backing up Wikipedia Databases
Apache Kudu: Technical Deep Dive
Apache Kudu: Technical Deep Dive
Meb Backup & Recovery Performance
Meb Backup & Recovery Performance
MySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disks
Deploying PostgreSQL on Kubernetes
Deploying PostgreSQL on Kubernetes
LVOUG meetup #4 - Case Study 10g to 11g
LVOUG meetup #4 - Case Study 10g to 11g
Start Counting: How We Unlocked Platform Efficiency and Reliability While Sav...
Start Counting: How We Unlocked Platform Efficiency and Reliability While Sav...
Building tungsten-clusters-with-postgre sql-hot-standby-and-streaming-replica...
Building tungsten-clusters-with-postgre sql-hot-standby-and-streaming-replica...
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
Recently uploaded
Microsoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AI
Tatiana Gurgel
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
NETWAYS
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
NETWAYS
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Krijn Poppe
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
henrik385807
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
NETWAYS
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Delhi Call girls
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
NETWAYS
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
NikitaBankoti2
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Hasting Chen
Philippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.ppt
ssuser319dad
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
Sheetaleventcompany
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...
Kayode Fayemi
call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@
vikas rana
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
soniya singh
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
FamilyWorshipCenterD
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
mohammadalnahdi22
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Salam Al-Karadaghi
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
anamikaraghav4
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Pooja Nehwal
Recently uploaded
(20)
Microsoft Copilot AI for Everyone - created by AI
Microsoft Copilot AI for Everyone - created by AI
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
ANCHORING SCRIPT FOR A CULTURAL EVENT.docx
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Philippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.ppt
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...
call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
Call Girl Number in Khar Mumbai📲 9892124323 💞 Full Night Enjoy
PostgreSQL9.3 Switchover/Switchback
1.
© 2013 EnterpriseDB
Corporation - All rights reserved. 1 Streaming Replication Switchover/Switchback Vibhor Kumar Principal System Engineer.
2.
© 2013 EnterpriseDB
Corporation - All rights reserved. 2 • PostgreSQL Streaming Replication • Limitations in PG Version < 9.3 • Understanding Timelines • New in PostgreSQL >=9.3 • Possible switchover/switchback • Things to know about switchover/switchback • recovery.conf Agenda
3.
© 2013 EnterpriseDB
Corporation - All rights reserved. 3 PostgreSQL Streaming Replication (SR) • Streaming Replication (SR) provides capability to continuously ship and apply WAL/XLOG records to any number of standbys. • Introduced in PostgreSQL 9.0 • Currently two types supported: − Synchronous SR − Asynchronous SR
4.
© 2013 EnterpriseDB
Corporation - All rights reserved. 4 History: Streaming Replication • 9.0: Asynchronous SR • 9.1: − Synchronous SR − pg_basebackup • 9.2: − Cascaded Replication − Backup from Standby − New Sync replication mode. (remote_write, local write) • 9.3 − Streaming only replication. − Follow timeline changes.
5.
© 2013 EnterpriseDB
Corporation - All rights reserved. 5 Limitations before 9.3 • Timeline streaming issue • Intentional shutdown on master can leave Standby behind the master before 9.1. • If Standby is behind master: − Promote lead to new timeline. − Difference in Master and Standby. − Old Master can’t be standby of new master. − Need to take fresh backup or manual copy timeline file to old master. • Painful to take fresh backup if database size is large.
6.
© 2013 EnterpriseDB
Corporation - All rights reserved. 6 Understanding Timelines • Introduced with Point-in-Time-Recovery in version 8.0 • Every time you do PITR, a new timeline is formed • Timelines helps to differentiate WAL generated from different PITR. • When new WAL generated after PITR, PostgreSQL shouldn’t overwrite old WAL.
7.
© 2013 EnterpriseDB
Corporation - All rights reserved. 7 More about Timelines
8.
© 2013 EnterpriseDB
Corporation - All rights reserved. 8 More about Timelines
9.
© 2013 EnterpriseDB
Corporation - All rights reserved. 9 Timeline history file
10.
© 2013 EnterpriseDB
Corporation - All rights reserved. 10 New in 9.3 SR • Important Patches: − commit 985bd7d49726c9f178558491d31a570d47340459 − Author: Fujii Masao − Committed on Wed Jun 26 02:14:37 2013 +0900 − Make sures when we shutdown the master, walsender should tries to send all outstandng WAL records to Standby, and then to exit. − Back patched till 9.1 − commit abfd192b1b5ba5216ac4b1f31dcd553106304b19 − Author: Heikki Linnakangas − Committed on Thu Dec 13 19:00:00 2012 +0200 − Allow a streaming replication standby to follow a timeline switch. (Only in 9.3)
11.
© 2013 EnterpriseDB
Corporation - All rights reserved. 11 9.3: Now switchover/Switchback is possible • Difference between Switchover and Failover. (add points) • New commit in PostgreSQL helps: − Clean shutdown for maintenance operation of master server − Old master server can be new standby for New Master. − No more fresh backup in intentional promotion.
12.
© 2013 EnterpriseDB
Corporation - All rights reserved. 12 Things to know: switchover/switchback • Use –m fast or –m smart shutdown on Master for clean shutdown. • Before promoting standby: − Make sure all WAL sent by Master applied on elected node for New Master. − Use following function for when to promote: − pg_last_xlog_receive_location − pg_last_xlog_replay_location − Have proper archive location accessible to old Master. − Set proper archive_command
13.
© 2013 EnterpriseDB
Corporation - All rights reserved. 13 recovery.conf recovery_target_timeline = 'latest' standby_mode = 'on’ primary_conninfo = 'user=repuser password=repuser host=172.17.0.3 port=5432 restore_command = ‘cp /location/%f %p’
14.
© 2013 EnterpriseDB
Corporation - All rights reserved. 14 EFM: Promote Steps • When promote happens, EFM does following: − Send prepare information to Master, Witness and Slave − Agent on Master get promote signal and does following: − Release VIP if any. − create dummy recovery.conf, so that next startup master shouldn’t come up. − Message about Master failed. − Standby signaled to be promoted by trigger. • Explore EFM for possible switchover/switchback
15.
© 2013 EnterpriseDB
Corporation - All rights reserved. 15 Demo
16.
© 2013 EnterpriseDB
Corporation - All rights reserved. 16 Thanks
Download now