SlideShare a Scribd company logo
1 of 33
Download to read offline
Database High Availability Using SHADOW
Systems
Jaemyung Kim, Kenneth Salem, Khuzaima Daudjee,
Ashraf Aboulnaga, and Xin Pan
University of Waterloo
SoCC 2015
SHADOW Hot Standby HA for Cloud
How can we exploit
shared persistent storage
to build better
highly available database systems?
2
Overview
1 Standalone and Hot Standby Failure Handling
2 Shared Storage in Cloud Settings
3 SHADOW: Hot Standby HA for Cloud
4 Performance Evaluation
5 Conclusion
3
Example DBMS Setting
x DBMS
bu↵er pool
Log DB
C
4
Standalone Restart Recovery
x DBMS
bu↵er pool
Log DB
C
node
failure
4
Standalone Restart Recovery
x DBMS
bu↵er pool
Log DB
C
restart recovery
4
Typical Shared-Nothing Hot Standby
Active DBMS
bu↵er pool
Log DB
Standby DBMS
bu↵er pool
Log DB
x
C C
5
Hot Standby Failure and Failover
Active DBMS
bu↵er pool
Log DB
Standby DBMS
bu↵er pool
Log DB
x node
failure
C C
5
Hot Standby Failure and Failover
Active DBMS
bu↵er pool
Log DB
Standby DBMS
bu↵er pool
Log DB
x node
failure
failover
C C
5
Hot Standby Is Widely Used
Active DBMS
bu↵er pool
Log DB
Standby DBMS
bu↵er pool
Log DB
x node
failure
C C
5
Typical Hot Standby High Availability
Active DBMS
bu↵er pool
Log DB
Standby DBMS
bu↵er pool
Log DB
6
Shared Storage in Cloud Settings
Storage in Cloud?
Active DBMS
bu↵er pool
Log DB
Standby DBMS
bu↵er pool
Log DB
6
Shared Storage in Cloud Settings
Active DBMS
bu↵er pool
Log DB
Standby DBMS
bu↵er pool
Log DB
Persistent Storage = Reliable Shared Storage
6
Shared Storage in Cloud Settings
Active DBMS
bu↵er pool
Log DB
Standby DBMS
bu↵er pool
Log DB
How can we exploit shared persistent storage
to build better highly available database systems?
6
SHADOW: Hot Standby HA for Cloud
Active DBMS
bu↵er pool
Standby DBMS
bu↵er pool
DB DBLog Log
Recycled Hot Standby HA in Cloud
7
SHADOW: Single Logical Log
Active DBMS
bu↵er pool
Standby DBMS
bu↵er pool
DB DBLogLog
async rep
Single Logical Log
7
SHADOW: Single Logical Database
Active DBMS
bu↵er pool
Standby DBMS
bu↵er pool
DB DBLogLog
Xwrite-o✏oading coordinated
checkpoint
Single Logical Database
7
SHADOW: Hot Standby HA for Cloud
Active DBMS
bu↵er pool
Standby DBMS
bu↵er pool
x
DBLog
SHADOW High Availability
7
SHADOW: Hot Standby HA for Cloud
Active DBMS
bu↵er pool
Standby DBMS
bu↵er pool
x
DBLog
C
7
SHADOW: Node Failure and Failover
Active DBMS
bu↵er pool
Standby DBMS
bu↵er pool
x node
failure
DBLog
C
7
SHADOW: Node Failure and Failover
Active DBMS
bu↵er pool
Standby DBMS
bu↵er pool
x node
failure
failover
DBLog
C
7
Advantages of SHADOW HA
Active DBMS
bu↵er pool
Standby DBMS
bu↵er pool
x node
failure
DBLog
C
Simplicity: pushes responsibility for durability
and replication into the storage system
7
Advantages of SHADOW HA
Active DBMS
bu↵er pool
Standby DBMS
bu↵er pool
x node
failure
DBLog
C
Simplicity: pushes responsibility for durability
and replication into the storage system
Flexibility: decouples database replication from
DBMS replication
7
Advantages of SHADOW HA
Active DBMS
bu↵er pool
Standby DBMS
bu↵er pool
x node
failure
DBLog
C
Simplicity: pushes responsibility for durability
and replication into the storage system
Flexibility: decouples database replication from
DBMS replication
Performance: write-o✏oading (logging and
checkpointing)
7
Advantages of SHADOW HA
Active DBMS
bu↵er pool
Standby DBMS
bu↵er pool
x node
failure
DBLog
C
Simplicity: pushes responsibility for durability
and replication into the storage system
Flexibility: decouples database replication from
DBMS replication
Performance: write-o✏oading (logging and
checkpointing)
E ciency: less I/O bandwidth
7
Advantages of SHADOW HA
Active DBMS
bu↵er pool
Standby DBMS
bu↵er pool
x node
failure
DBLog
C
Simplicity: pushes responsibility for durability
and replication into the storage system
Flexibility: decouples database replication from
DBMS replication
Performance: write-o✏oading (logging and
checkpointing)
E ciency: less I/O bandwidth
7
Experimental Methodology
Compare SHADOW System with two baselines
Standalone (SA): single DBMS with restart recovery (varying
checkpint interval)
Synchronous Replication (SR): two replicated DBMSes (native
PostgreSQL implementation)
TPC-C Benchmark (100 Warehouses), no think time
PostgreSQL 9.3 (database fits in memory)
Linux kernel 3.2.0-56
Amazon EC2 with Elastic Block Store (EBS)
8
TPC-C Benchmark Throughtput
0
10000
20000
30000
40000
50000
60000
SAD SA10 SA
Throughput(tpmC)
Standalone
Amazon EC2 c3.4xlarge instances, 100WH TPC-C workload
database fits in memory (PostgreSQL 9.3, Linux kernel 3.2.0-56)
9
TPC-C Benchmark Throughtput
0
10000
20000
30000
40000
50000
60000
SAD SA10 SA SR
Throughput(tpmC)
Standalone
Amazon EC2 c3.4xlarge instances, 100WH TPC-C workload
database fits in memory (PostgreSQL 9.3, Linux kernel 3.2.0-56)
Hot Standby
9
TPC-C Benchmark Throughtput
0
10000
20000
30000
40000
50000
60000
SAD SA10 SA SR SHADOW
Throughput(tpmC)
Standalone
Amazon EC2 c3.4xlarge instances, 100WH TPC-C workload
database fits in memory (PostgreSQL 9.3, Linux kernel 3.2.0-56)
Hot Standby
9
Variability of TPC-C Throughput
0
10000
20000
30000
40000
50000
60000
SAD SA10 SA
tpmC
Standalone
Box-and-whisker plot (Q1,Q2,Q3)
Ten second interval (new order transactions per second x 60))
0
10000
20000
30000
40000
50000
60000
SAD SA10 SA SR SHADOW
tpmC
Hot Standby
10
Conclusion
SHADOW Hot Standby HA for Cloud
How to exploit shared storage to build better high available
database systems?
Single logical copy of the database and log
Pushes responsibility for replication out of the DBMS and into
the underlying storage tier
Decouples database replication from DBMS replication
Outperforms PostgreSQL’s native replication on a TPC-C
benchmark
Stabler throughput(tpmC) over time
Geographical limitation
Replication coverage is limited to shared storage coverage
11
Mahalo!
12

More Related Content

What's hot

Building Spark as Service in Cloud
Building Spark as Service in CloudBuilding Spark as Service in Cloud
Building Spark as Service in CloudInMobi Technology
 
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 2015How 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 2015PostgreSQL-Consulting
 
Out of the box replication in postgres 9.4
Out of the box replication in postgres 9.4Out of the box replication in postgres 9.4
Out of the box replication in postgres 9.4Denish Patel
 
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...Equnix Business Solutions
 
Oracle: Binding versus caging
Oracle: Binding versus cagingOracle: Binding versus caging
Oracle: Binding versus cagingBertrandDrouvot
 
Clug 2011 March web server optimisation
Clug 2011 March  web server optimisationClug 2011 March  web server optimisation
Clug 2011 March web server optimisationgrooverdan
 
W1.1 i os in database
W1.1   i os in databaseW1.1   i os in database
W1.1 i os in databasegafurov_x
 
Cassandra South Bay Meetup - Backup And Restore For Apache Cassandra
Cassandra South Bay Meetup - Backup And Restore For Apache CassandraCassandra South Bay Meetup - Backup And Restore For Apache Cassandra
Cassandra South Bay Meetup - Backup And Restore For Apache Cassandraaaronmorton
 
Как PostgreSQL работает с диском
Как PostgreSQL работает с дискомКак PostgreSQL работает с диском
Как PostgreSQL работает с дискомPostgreSQL-Consulting
 
Toro DB- Open-source, MongoDB-compatible database, built on top of PostgreSQL
Toro DB- Open-source, MongoDB-compatible database,  built on top of PostgreSQLToro DB- Open-source, MongoDB-compatible database,  built on top of PostgreSQL
Toro DB- Open-source, MongoDB-compatible database, built on top of PostgreSQLInMobi Technology
 
HBase 0.20.0 Performance Evaluation
HBase 0.20.0 Performance EvaluationHBase 0.20.0 Performance Evaluation
HBase 0.20.0 Performance EvaluationSchubert Zhang
 
Managing PostgreSQL with PgCenter
Managing PostgreSQL with PgCenterManaging PostgreSQL with PgCenter
Managing PostgreSQL with PgCenterAlexey Lesovsky
 
HBase at Flurry
HBase at FlurryHBase at Flurry
HBase at Flurryddlatham
 
NoSQL 동향
NoSQL 동향NoSQL 동향
NoSQL 동향NAVER D2
 
Deep dive into PostgreSQL statistics.
Deep dive into PostgreSQL statistics.Deep dive into PostgreSQL statistics.
Deep dive into PostgreSQL statistics.Alexey Lesovsky
 
Out of the box replication in postgres 9.4(pg confus)
Out of the box replication in postgres 9.4(pg confus)Out of the box replication in postgres 9.4(pg confus)
Out of the box replication in postgres 9.4(pg confus)Denish Patel
 
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...Mydbops
 
Troubleshooting PostgreSQL Streaming Replication
Troubleshooting PostgreSQL Streaming ReplicationTroubleshooting PostgreSQL Streaming Replication
Troubleshooting PostgreSQL Streaming ReplicationAlexey Lesovsky
 

What's hot (20)

Building Spark as Service in Cloud
Building Spark as Service in CloudBuilding Spark as Service in Cloud
Building Spark as Service in Cloud
 
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 2015How 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
 
Out of the box replication in postgres 9.4
Out of the box replication in postgres 9.4Out of the box replication in postgres 9.4
Out of the box replication in postgres 9.4
 
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
 
Oracle: Binding versus caging
Oracle: Binding versus cagingOracle: Binding versus caging
Oracle: Binding versus caging
 
PostgreSQL
PostgreSQLPostgreSQL
PostgreSQL
 
Clug 2011 March web server optimisation
Clug 2011 March  web server optimisationClug 2011 March  web server optimisation
Clug 2011 March web server optimisation
 
W1.1 i os in database
W1.1   i os in databaseW1.1   i os in database
W1.1 i os in database
 
Cassandra South Bay Meetup - Backup And Restore For Apache Cassandra
Cassandra South Bay Meetup - Backup And Restore For Apache CassandraCassandra South Bay Meetup - Backup And Restore For Apache Cassandra
Cassandra South Bay Meetup - Backup And Restore For Apache Cassandra
 
Как PostgreSQL работает с диском
Как PostgreSQL работает с дискомКак PostgreSQL работает с диском
Как PostgreSQL работает с диском
 
Toro DB- Open-source, MongoDB-compatible database, built on top of PostgreSQL
Toro DB- Open-source, MongoDB-compatible database,  built on top of PostgreSQLToro DB- Open-source, MongoDB-compatible database,  built on top of PostgreSQL
Toro DB- Open-source, MongoDB-compatible database, built on top of PostgreSQL
 
HBase 0.20.0 Performance Evaluation
HBase 0.20.0 Performance EvaluationHBase 0.20.0 Performance Evaluation
HBase 0.20.0 Performance Evaluation
 
Managing PostgreSQL with PgCenter
Managing PostgreSQL with PgCenterManaging PostgreSQL with PgCenter
Managing PostgreSQL with PgCenter
 
HBase at Flurry
HBase at FlurryHBase at Flurry
HBase at Flurry
 
NoSQL 동향
NoSQL 동향NoSQL 동향
NoSQL 동향
 
Multimaster
MultimasterMultimaster
Multimaster
 
Deep dive into PostgreSQL statistics.
Deep dive into PostgreSQL statistics.Deep dive into PostgreSQL statistics.
Deep dive into PostgreSQL statistics.
 
Out of the box replication in postgres 9.4(pg confus)
Out of the box replication in postgres 9.4(pg confus)Out of the box replication in postgres 9.4(pg confus)
Out of the box replication in postgres 9.4(pg confus)
 
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
 
Troubleshooting PostgreSQL Streaming Replication
Troubleshooting PostgreSQL Streaming ReplicationTroubleshooting PostgreSQL Streaming Replication
Troubleshooting PostgreSQL Streaming Replication
 

Similar to Database High Availability Using SHADOW Systems

Built-in-Physical-and-Logical-Replication-in-Postgresql-Firat-Gulec.pptx
Built-in-Physical-and-Logical-Replication-in-Postgresql-Firat-Gulec.pptxBuilt-in-Physical-and-Logical-Replication-in-Postgresql-Firat-Gulec.pptx
Built-in-Physical-and-Logical-Replication-in-Postgresql-Firat-Gulec.pptxnadirpervez2
 
Built in physical and logical replication in postgresql-Firat Gulec
Built in physical and logical replication in postgresql-Firat GulecBuilt in physical and logical replication in postgresql-Firat Gulec
Built in physical and logical replication in postgresql-Firat GulecFIRAT GULEC
 
SRV407 Deep Dive on Amazon Aurora
SRV407 Deep Dive on Amazon AuroraSRV407 Deep Dive on Amazon Aurora
SRV407 Deep Dive on Amazon AuroraAmazon Web Services
 
Deep Dive on the Amazon Aurora MySQL-compatible Edition - DAT301 - re:Invent ...
Deep Dive on the Amazon Aurora MySQL-compatible Edition - DAT301 - re:Invent ...Deep Dive on the Amazon Aurora MySQL-compatible Edition - DAT301 - re:Invent ...
Deep Dive on the Amazon Aurora MySQL-compatible Edition - DAT301 - re:Invent ...Amazon Web Services
 
Hadoop Cluster With High Availability
Hadoop Cluster With High AvailabilityHadoop Cluster With High Availability
Hadoop Cluster With High AvailabilityEdureka!
 
Power Hadoop Cluster with AWS Cloud
Power Hadoop Cluster with AWS CloudPower Hadoop Cluster with AWS Cloud
Power Hadoop Cluster with AWS CloudEdureka!
 
Ceph at salesforce ceph day external presentation
Ceph at salesforce   ceph day external presentationCeph at salesforce   ceph day external presentation
Ceph at salesforce ceph day external presentationSameer Tiwari
 
Ceph Day San Jose - Ceph at Salesforce
Ceph Day San Jose - Ceph at Salesforce Ceph Day San Jose - Ceph at Salesforce
Ceph Day San Jose - Ceph at Salesforce Ceph Community
 
Storage, San And Business Continuity Overview
Storage, San And Business Continuity OverviewStorage, San And Business Continuity Overview
Storage, San And Business Continuity OverviewAlan McSweeney
 
Sql saturday azure storage by Anton Vidishchev
Sql saturday azure storage by Anton VidishchevSql saturday azure storage by Anton Vidishchev
Sql saturday azure storage by Anton VidishchevAlex Tumanoff
 
Windows Azure Storage: Overview, Internals, and Best Practices
Windows Azure Storage: Overview, Internals, and Best PracticesWindows Azure Storage: Overview, Internals, and Best Practices
Windows Azure Storage: Overview, Internals, and Best PracticesAnton Vidishchev
 
Tsm7.1 seminar Stavanger
Tsm7.1 seminar StavangerTsm7.1 seminar Stavanger
Tsm7.1 seminar StavangerSolv AS
 
IMC Summit 2016 Breakout - Per Minoborg - Work with Multiple Hot Terabytes in...
IMC Summit 2016 Breakout - Per Minoborg - Work with Multiple Hot Terabytes in...IMC Summit 2016 Breakout - Per Minoborg - Work with Multiple Hot Terabytes in...
IMC Summit 2016 Breakout - Per Minoborg - Work with Multiple Hot Terabytes in...In-Memory Computing Summit
 
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New FeaturesAmazon Web Services
 
Clustered Architecture Patterns Delivering Scalability And Availability
Clustered Architecture Patterns Delivering Scalability And AvailabilityClustered Architecture Patterns Delivering Scalability And Availability
Clustered Architecture Patterns Delivering Scalability And AvailabilityConSanFrancisco123
 

Similar to Database High Availability Using SHADOW Systems (20)

Built-in-Physical-and-Logical-Replication-in-Postgresql-Firat-Gulec.pptx
Built-in-Physical-and-Logical-Replication-in-Postgresql-Firat-Gulec.pptxBuilt-in-Physical-and-Logical-Replication-in-Postgresql-Firat-Gulec.pptx
Built-in-Physical-and-Logical-Replication-in-Postgresql-Firat-Gulec.pptx
 
Built in physical and logical replication in postgresql-Firat Gulec
Built in physical and logical replication in postgresql-Firat GulecBuilt in physical and logical replication in postgresql-Firat Gulec
Built in physical and logical replication in postgresql-Firat Gulec
 
SRV407 Deep Dive on Amazon Aurora
SRV407 Deep Dive on Amazon AuroraSRV407 Deep Dive on Amazon Aurora
SRV407 Deep Dive on Amazon Aurora
 
Disaster Recovery Synapse
Disaster Recovery SynapseDisaster Recovery Synapse
Disaster Recovery Synapse
 
11g R2
11g R211g R2
11g R2
 
Deep Dive on the Amazon Aurora MySQL-compatible Edition - DAT301 - re:Invent ...
Deep Dive on the Amazon Aurora MySQL-compatible Edition - DAT301 - re:Invent ...Deep Dive on the Amazon Aurora MySQL-compatible Edition - DAT301 - re:Invent ...
Deep Dive on the Amazon Aurora MySQL-compatible Edition - DAT301 - re:Invent ...
 
Hadoop Cluster With High Availability
Hadoop Cluster With High AvailabilityHadoop Cluster With High Availability
Hadoop Cluster With High Availability
 
Power Hadoop Cluster with AWS Cloud
Power Hadoop Cluster with AWS CloudPower Hadoop Cluster with AWS Cloud
Power Hadoop Cluster with AWS Cloud
 
Ceph at salesforce ceph day external presentation
Ceph at salesforce   ceph day external presentationCeph at salesforce   ceph day external presentation
Ceph at salesforce ceph day external presentation
 
Ceph Day San Jose - Ceph at Salesforce
Ceph Day San Jose - Ceph at Salesforce Ceph Day San Jose - Ceph at Salesforce
Ceph Day San Jose - Ceph at Salesforce
 
What’s New in Amazon Aurora
What’s New in Amazon AuroraWhat’s New in Amazon Aurora
What’s New in Amazon Aurora
 
Storage, San And Business Continuity Overview
Storage, San And Business Continuity OverviewStorage, San And Business Continuity Overview
Storage, San And Business Continuity Overview
 
Sql saturday azure storage by Anton Vidishchev
Sql saturday azure storage by Anton VidishchevSql saturday azure storage by Anton Vidishchev
Sql saturday azure storage by Anton Vidishchev
 
Windows Azure Storage: Overview, Internals, and Best Practices
Windows Azure Storage: Overview, Internals, and Best PracticesWindows Azure Storage: Overview, Internals, and Best Practices
Windows Azure Storage: Overview, Internals, and Best Practices
 
Tsm7.1 seminar Stavanger
Tsm7.1 seminar StavangerTsm7.1 seminar Stavanger
Tsm7.1 seminar Stavanger
 
Frb Briefing Database
Frb Briefing DatabaseFrb Briefing Database
Frb Briefing Database
 
IMC Summit 2016 Breakout - Per Minoborg - Work with Multiple Hot Terabytes in...
IMC Summit 2016 Breakout - Per Minoborg - Work with Multiple Hot Terabytes in...IMC Summit 2016 Breakout - Per Minoborg - Work with Multiple Hot Terabytes in...
IMC Summit 2016 Breakout - Per Minoborg - Work with Multiple Hot Terabytes in...
 
Deep Dive on Amazon Aurora
Deep Dive on Amazon AuroraDeep Dive on Amazon Aurora
Deep Dive on Amazon Aurora
 
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
 
Clustered Architecture Patterns Delivering Scalability And Availability
Clustered Architecture Patterns Delivering Scalability And AvailabilityClustered Architecture Patterns Delivering Scalability And Availability
Clustered Architecture Patterns Delivering Scalability And Availability
 

More from Jaemyung Kim

Write Amplification: An Analysis of In-Memory Database Durability Techniques
Write Amplification: An Analysis of In-Memory Database Durability TechniquesWrite Amplification: An Analysis of In-Memory Database Durability Techniques
Write Amplification: An Analysis of In-Memory Database Durability TechniquesJaemyung Kim
 
Reducing Cache Misses in Hash Join Probing Phase by Pre-sorting Strategy
Reducing Cache Misses in Hash Join Probing Phase by Pre-sorting StrategyReducing Cache Misses in Hash Join Probing Phase by Pre-sorting Strategy
Reducing Cache Misses in Hash Join Probing Phase by Pre-sorting StrategyJaemyung Kim
 
Altibase DSM: CTable for Pull-based Processing in SPE
Altibase DSM: CTable for Pull-based Processing in SPEAltibase DSM: CTable for Pull-based Processing in SPE
Altibase DSM: CTable for Pull-based Processing in SPEJaemyung Kim
 
Implementation of Bitmap based Incognito and Performance Evaluation
Implementation of Bitmap based Incognito and Performance EvaluationImplementation of Bitmap based Incognito and Performance Evaluation
Implementation of Bitmap based Incognito and Performance EvaluationJaemyung Kim
 
IPL 기법의 인덱스 연산 분석
IPL 기법의 인덱스 연산 분석IPL 기법의 인덱스 연산 분석
IPL 기법의 인덱스 연산 분석Jaemyung Kim
 
정보과학회 FTL논문 아이디어
정보과학회 FTL논문 아이디어정보과학회 FTL논문 아이디어
정보과학회 FTL논문 아이디어Jaemyung Kim
 

More from Jaemyung Kim (6)

Write Amplification: An Analysis of In-Memory Database Durability Techniques
Write Amplification: An Analysis of In-Memory Database Durability TechniquesWrite Amplification: An Analysis of In-Memory Database Durability Techniques
Write Amplification: An Analysis of In-Memory Database Durability Techniques
 
Reducing Cache Misses in Hash Join Probing Phase by Pre-sorting Strategy
Reducing Cache Misses in Hash Join Probing Phase by Pre-sorting StrategyReducing Cache Misses in Hash Join Probing Phase by Pre-sorting Strategy
Reducing Cache Misses in Hash Join Probing Phase by Pre-sorting Strategy
 
Altibase DSM: CTable for Pull-based Processing in SPE
Altibase DSM: CTable for Pull-based Processing in SPEAltibase DSM: CTable for Pull-based Processing in SPE
Altibase DSM: CTable for Pull-based Processing in SPE
 
Implementation of Bitmap based Incognito and Performance Evaluation
Implementation of Bitmap based Incognito and Performance EvaluationImplementation of Bitmap based Incognito and Performance Evaluation
Implementation of Bitmap based Incognito and Performance Evaluation
 
IPL 기법의 인덱스 연산 분석
IPL 기법의 인덱스 연산 분석IPL 기법의 인덱스 연산 분석
IPL 기법의 인덱스 연산 분석
 
정보과학회 FTL논문 아이디어
정보과학회 FTL논문 아이디어정보과학회 FTL논문 아이디어
정보과학회 FTL논문 아이디어
 

Recently uploaded

Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 

Recently uploaded (20)

Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 

Database High Availability Using SHADOW Systems

  • 1. Database High Availability Using SHADOW Systems Jaemyung Kim, Kenneth Salem, Khuzaima Daudjee, Ashraf Aboulnaga, and Xin Pan University of Waterloo SoCC 2015
  • 2. SHADOW Hot Standby HA for Cloud How can we exploit shared persistent storage to build better highly available database systems? 2
  • 3. Overview 1 Standalone and Hot Standby Failure Handling 2 Shared Storage in Cloud Settings 3 SHADOW: Hot Standby HA for Cloud 4 Performance Evaluation 5 Conclusion 3
  • 4. Example DBMS Setting x DBMS bu↵er pool Log DB C 4
  • 5. Standalone Restart Recovery x DBMS bu↵er pool Log DB C node failure 4
  • 6. Standalone Restart Recovery x DBMS bu↵er pool Log DB C restart recovery 4
  • 7. Typical Shared-Nothing Hot Standby Active DBMS bu↵er pool Log DB Standby DBMS bu↵er pool Log DB x C C 5
  • 8. Hot Standby Failure and Failover Active DBMS bu↵er pool Log DB Standby DBMS bu↵er pool Log DB x node failure C C 5
  • 9. Hot Standby Failure and Failover Active DBMS bu↵er pool Log DB Standby DBMS bu↵er pool Log DB x node failure failover C C 5
  • 10. Hot Standby Is Widely Used Active DBMS bu↵er pool Log DB Standby DBMS bu↵er pool Log DB x node failure C C 5
  • 11. Typical Hot Standby High Availability Active DBMS bu↵er pool Log DB Standby DBMS bu↵er pool Log DB 6
  • 12. Shared Storage in Cloud Settings Storage in Cloud? Active DBMS bu↵er pool Log DB Standby DBMS bu↵er pool Log DB 6
  • 13. Shared Storage in Cloud Settings Active DBMS bu↵er pool Log DB Standby DBMS bu↵er pool Log DB Persistent Storage = Reliable Shared Storage 6
  • 14. Shared Storage in Cloud Settings Active DBMS bu↵er pool Log DB Standby DBMS bu↵er pool Log DB How can we exploit shared persistent storage to build better highly available database systems? 6
  • 15. SHADOW: Hot Standby HA for Cloud Active DBMS bu↵er pool Standby DBMS bu↵er pool DB DBLog Log Recycled Hot Standby HA in Cloud 7
  • 16. SHADOW: Single Logical Log Active DBMS bu↵er pool Standby DBMS bu↵er pool DB DBLogLog async rep Single Logical Log 7
  • 17. SHADOW: Single Logical Database Active DBMS bu↵er pool Standby DBMS bu↵er pool DB DBLogLog Xwrite-o✏oading coordinated checkpoint Single Logical Database 7
  • 18. SHADOW: Hot Standby HA for Cloud Active DBMS bu↵er pool Standby DBMS bu↵er pool x DBLog SHADOW High Availability 7
  • 19. SHADOW: Hot Standby HA for Cloud Active DBMS bu↵er pool Standby DBMS bu↵er pool x DBLog C 7
  • 20. SHADOW: Node Failure and Failover Active DBMS bu↵er pool Standby DBMS bu↵er pool x node failure DBLog C 7
  • 21. SHADOW: Node Failure and Failover Active DBMS bu↵er pool Standby DBMS bu↵er pool x node failure failover DBLog C 7
  • 22. Advantages of SHADOW HA Active DBMS bu↵er pool Standby DBMS bu↵er pool x node failure DBLog C Simplicity: pushes responsibility for durability and replication into the storage system 7
  • 23. Advantages of SHADOW HA Active DBMS bu↵er pool Standby DBMS bu↵er pool x node failure DBLog C Simplicity: pushes responsibility for durability and replication into the storage system Flexibility: decouples database replication from DBMS replication 7
  • 24. Advantages of SHADOW HA Active DBMS bu↵er pool Standby DBMS bu↵er pool x node failure DBLog C Simplicity: pushes responsibility for durability and replication into the storage system Flexibility: decouples database replication from DBMS replication Performance: write-o✏oading (logging and checkpointing) 7
  • 25. Advantages of SHADOW HA Active DBMS bu↵er pool Standby DBMS bu↵er pool x node failure DBLog C Simplicity: pushes responsibility for durability and replication into the storage system Flexibility: decouples database replication from DBMS replication Performance: write-o✏oading (logging and checkpointing) E ciency: less I/O bandwidth 7
  • 26. Advantages of SHADOW HA Active DBMS bu↵er pool Standby DBMS bu↵er pool x node failure DBLog C Simplicity: pushes responsibility for durability and replication into the storage system Flexibility: decouples database replication from DBMS replication Performance: write-o✏oading (logging and checkpointing) E ciency: less I/O bandwidth 7
  • 27. Experimental Methodology Compare SHADOW System with two baselines Standalone (SA): single DBMS with restart recovery (varying checkpint interval) Synchronous Replication (SR): two replicated DBMSes (native PostgreSQL implementation) TPC-C Benchmark (100 Warehouses), no think time PostgreSQL 9.3 (database fits in memory) Linux kernel 3.2.0-56 Amazon EC2 with Elastic Block Store (EBS) 8
  • 28. TPC-C Benchmark Throughtput 0 10000 20000 30000 40000 50000 60000 SAD SA10 SA Throughput(tpmC) Standalone Amazon EC2 c3.4xlarge instances, 100WH TPC-C workload database fits in memory (PostgreSQL 9.3, Linux kernel 3.2.0-56) 9
  • 29. TPC-C Benchmark Throughtput 0 10000 20000 30000 40000 50000 60000 SAD SA10 SA SR Throughput(tpmC) Standalone Amazon EC2 c3.4xlarge instances, 100WH TPC-C workload database fits in memory (PostgreSQL 9.3, Linux kernel 3.2.0-56) Hot Standby 9
  • 30. TPC-C Benchmark Throughtput 0 10000 20000 30000 40000 50000 60000 SAD SA10 SA SR SHADOW Throughput(tpmC) Standalone Amazon EC2 c3.4xlarge instances, 100WH TPC-C workload database fits in memory (PostgreSQL 9.3, Linux kernel 3.2.0-56) Hot Standby 9
  • 31. Variability of TPC-C Throughput 0 10000 20000 30000 40000 50000 60000 SAD SA10 SA tpmC Standalone Box-and-whisker plot (Q1,Q2,Q3) Ten second interval (new order transactions per second x 60)) 0 10000 20000 30000 40000 50000 60000 SAD SA10 SA SR SHADOW tpmC Hot Standby 10
  • 32. Conclusion SHADOW Hot Standby HA for Cloud How to exploit shared storage to build better high available database systems? Single logical copy of the database and log Pushes responsibility for replication out of the DBMS and into the underlying storage tier Decouples database replication from DBMS replication Outperforms PostgreSQL’s native replication on a TPC-C benchmark Stabler throughput(tpmC) over time Geographical limitation Replication coverage is limited to shared storage coverage 11