SlideShare a Scribd company logo
1 of 65
Download to read offline
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
MySQL High Availability and
Disaster Recovery
FromDoingitManuallytoAmazonRDSandAmazonAurora
Peter Zaitsev, CEO, Percona
D A T 3 6 1
© 2018 Percona.
3
About This Presentation
High Availability and Disaster Recovery
Implementing HA and DR manually
MySQL HA and DR with AWS DBaaS offerings
© 2018 Percona.
4
What Do We Want From Applications?
Work
correctly
Be “Up”
Have good
performance
© 2018 Percona.
5
From the Engineer’s Standpoint
• Many practices from design to proper
QACorrectness
• Benchmarks, load testing, capacity
planningPerformance
• Design, chaos engineeringHigh Availability
© 2018 Percona.
6
High Availability is Hard
Hard to foresee everything that can go wrong
Long tail of low probability problems
A lot of environment specifics
Depends on technology and operational practices
© 2018 Percona.
7
Engineered Systems
Like security, High Availability
favors well designed and
tested “Engineered Systems”
© 2018 Percona.
8
Pro Tip
Consider having expert
evaluation of your HA and DR
design, implementation and
operational practices.
© 2018 Percona.
9
High Availability and Disaster Recovery
High Availability
• High/medium event frequency
• Low/medium event impact
• No/minimum downtime
• No data loss
• No manual intervention needed
Disaster Recovery
• Rare event frequency
• High event impact
• Downtime may be allowed by
design
• Data loss may be allowed by design
• Manual intervention may be
needed
© 2018 Percona.
10
High Availability Versus Disaster Recovery
High Availability
•Failure of a single
server
•Failure of a single
Availability Zone
Disaster Recovery
•Multiple AZ failure
within region
•Major software issues
•Major security
incidents
© 2018 Percona.
11
High Availability Planning
What is the estimated time between events (MTBF)?
What is the acceptable impact to the system?
What is the mean time to recover (MTTR)?
© 2018 Percona.
12
Example: RAID5 Volume Disk Failure
Single SSD may have 1Mil+ hours between failures (100+ years)
With 1000s of disks in the data center, failure is not a rare event
Impact to the system: performance impact, loss of redundancy
Time to recover: hours
© 2018 Percona.
13
Achieving High Availability for a Database
Compute redundancy
Data redundancy and replication
Failover management
Service endpoint provisioning
© 2018 Percona.
14
HA and DR for MySQL
MySQL is often your “system of
record”
Appropriate HA and DR planning is
critically important
© 2018 Percona.
15
Choices for MySQL at AWS
Build your
own
Use AWS
DBaaS
services
© 2018 Percona.
16
Build Your Own
Advantages
•More flexibility
•More control
•Potentially lower
infrastructure costs
Disadvantages
•Additional time and
effort required
•Potentially
additional risks
© 2018 Percona.
17
Use DBaaS
Advantages
•Save time
•Reduce risk
•Empower
development team
Disadvantages
•Potentially higher
infrastructure costs
•Less flexibility
•Less control
© 2018 Percona.
18
Build Your Own HA Options for MySQL
© 2018 Percona.
19
Achieving Data Redundancy
Storage level Database level
External/application
level
© 2018 Percona.
20
Storage Level Redundancy
Mount EBS volume to another instance
DRBD
Clustered file systems
© 2018 Percona.
21
Database Level Redundancy
Classic MySQL replication
MySQL group replication/MySQL InnoDB Cluster
Percona XtraDB Cluster and other Galera-based technologies
MySQL Cluster (NDB)
© 2018 Percona.
22
External/Application Level
Manual
application
replication
Trigger-based
replication
Using Kafka as
message bus
© 2018 Percona.
23
Classic MySQL Replication
© 2018 Percona.
24
Classic MySQL Replication Properties
Asynchronous or semi-synchronous
Parallel (since MySQL 5.7)
Many masters to many slaves (MySQL 5.7)
No conflict resolution or “protection”
No built-in failover
© 2018 Percona.
25
Advanced MySQL Replication Topologies
© 2018 Percona.
26
MySQL Group Replication
© 2018 Percona.
27
MySQL Group Replication (New in 5.7)
“Group of peers”
Write-anywhere or dedicated writer
Asynchronous replication with flow control
Conflicts prevented through certification
Built in failover
No automated provisioning
© 2018 Percona.
28
Percona XtraDB Cluster/Galera
© 2018 Percona.
29
Percona XtraDB Cluster Topology
© 2018 Percona.
30
Percona XtraDB Cluster/Galera Properties
Write to any node
Certification based replication
Virtually synchronous; can ensure no stale reads
Built-in fail-over
Built-in node provisioning
© 2018 Percona.
31
Transaction Commit Flow
Node 1 (master) Node 2 (slave)
User Interaction
Time contributing
to response time
BEGIN
COMMIT
Responsetime
ofCOMMIT
Return
result of
COMMIT
query1
query2
query3
User transaction
Certification
Physical COMMIT (or
ROLLBACK)
Network
Event sent to
other node(s)
Certification
Apply event
(slave thread) Time out-
of-sync
Legend:
© 2018 Percona.
32
MySQL Cluster Properties
Niche use only
Synchronous replication
Initially designed for in-memory only
Built-in sharding
Very high network performance requirements
WAN replication with conflict resolution
© 2018 Percona.
33
MySQL NDB Cluster High Level Architecture
© 2018 Percona.
34
Failover Management
MySQL classic replication does not have
built-in failover management
Many custom made scripts were created
through the years; most of them are bad
© 2018 Percona.
35
• Highly available
• Manual and automated
failovers
• Auditing
• Plugin interface
MySQL Orchestrator
© 2018 Percona.
36
Service Point Provisioning
MySQL client library connects to
single host
How do you manage it during
failover?
© 2018 Percona.
37
Multiple Solutions
DNS based
Elastic load balancer
HAProxy
MySQL router
ProxySQL
© 2018 Percona.
38
100% open source
Well supported
Read-write splitting
Caching
Query rewrites
Load balancing
10k+ connection support
ProxySQL
© 2018 Percona.
39
3
9
Dedicated Shared ProxySQL
© 2018 Percona.
40
4
0
ProxySQL on Application Side
© 2018 Percona.
41
Backup and Restore
•MySQL Enterprise Backup
•Percona Xtrabackup
•MySQLDump/MyDumper
No HA
solution
replaces
need for
backup
© 2018 Percona.
42
Backup: PITR (Point-in-Time Recovery)
•MySQL binary log
archiving
•Storage level Continuous
Data Protection (CDP)
Do you need
to restore to
a specific
point in
time?
© 2018 Percona.
43
Flashback
•Can be done with some hacks
when using ROW binlog
format
•Does not work for table drops
or DDLs
Undo
unwanted
update/delete
© 2018 Percona.
44
Kubernetes?
Use Amazon Elastic Container Service for Kubernetes
(Amazon EKS) (Managed Kubernetes Service)
Roll your own Kubernetes on Amazon Elastic
Compute Cloud (Amazon EC2)
© 2018 Percona.
45
MySQL on Kubernetes
•Official MySQL Operator (Alpha)
•Presslabs MySQL Operator
•Percona is working on Operator
for Percona XtraDB Cluster
Early
Stage
© 2018 Percona.
46
100% free and open source
Based on industry leading technologies
Supports both self made and Amazon Relational Database
Service (Amazon RDS)
General health
Query performance
Replication and ProxySQL
Understanding Your Environment - PMM
© 2018 Percona.
47
Oh My…. It Sounds Complicated
Do it yourself MySQL High Availability at AWS is not easy
Percona provides Professional Services and Support to
assist
There is a modern way…
© 2018 Percona.
48
MySQL High Availability with DBaaS
© 2018 Percona.
49
DBaaS Options
• MySQL and MariaDB
• Minimal differences from open source
implementation
Amazon
RDS
• High performance engine designed for the cloud
• Additional features not present in open source MySQL
• May lag behind most recent MySQL release
Amazon
Aurora
© 2018 Percona.
50
Amazon RDS High Availability (Multi-AZ)
© 2018 Percona.
51
Amazon RDS High Availability Properties
Synchronous replication (no data loss on failover)
Failover time depends on transactional load (60-120 sec)
DNS record changes to healthy instance
© 2018 Percona.
52
Amazon RDS Read Replicas
Scaling reads
Reporting queries
Disaster recovery
© 2018 Percona.
53
Amazon RDS Backup and Snapshots
Backups are taken automatically
You can chose backup policy
Secondary is automatically used for backups if available
Backups suspend IO for a few seconds to few minutes
Specify backup window to manage it better
Create manual snapshots
Point in time recovery is available
© 2018 Percona.
54
Amazon Aurora offers
state-of-the-art High
Availability and DR
options for MySQL
Amazon Aurora
© 2018 Percona.
55
Single Instance Deployment
Data is replicated 6 ways across 3 availability zones
Any AZ failure causes no data loss and only brief
interruption of service
New instance is automatically created in case of instance
failure
© 2018 Percona.
56
Amazon Aurora Replicas
Replicas automatically promoted to primary upon failure
Faster than single instance recovery
Replicas can be used for read queries
Replication lag is lower than for MySQL replication
© 2018 Percona.
57
Amazon Aurora Deployment Overview
© 2018 Percona.
58
Amazon Aurora Read Replicas
Replication between Amazon Aurora clusters
.. or between Amazon RDS and Amazon Aurora
Often done between regions
Great feature for disaster recovery
© 2018 Percona.
59
Roll back the state of the
cluster
Supports DDL
Requires cluster restart
Amazon Aurora Backtrack
© 2018 Percona.
60
Built In Monitoring: Amazon CloudWatch
© 2018 Percona.
61
Built In Monitoring: Enhanced Monitoring
© 2018 Percona.
62
Performance Insights
© 2018 Percona.
63
Summary
You can build advanced custom MySQL HA architectures on MySQL
For many companies, Amazon RDS and Amazon is a great choice
Beware of “Unknown unknowns” in self-made MySQL HA architectures
Whatever path you take, Percona is ready to support you
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Peter Zaitsev, CEO, Percona
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

More Related Content

What's hot

Wellington Management: The Journey to All-In, One Data Center at a Time (FSV2...
Wellington Management: The Journey to All-In, One Data Center at a Time (FSV2...Wellington Management: The Journey to All-In, One Data Center at a Time (FSV2...
Wellington Management: The Journey to All-In, One Data Center at a Time (FSV2...Amazon Web Services
 
Introducing AWS DataSync - Simplify, automate, and accelerate online data tra...
Introducing AWS DataSync - Simplify, automate, and accelerate online data tra...Introducing AWS DataSync - Simplify, automate, and accelerate online data tra...
Introducing AWS DataSync - Simplify, automate, and accelerate online data tra...Amazon Web Services
 
Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...
Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...
Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...Amazon Web Services
 
Workshop: Architecting a Serverless Data Lake
Workshop: Architecting a Serverless Data LakeWorkshop: Architecting a Serverless Data Lake
Workshop: Architecting a Serverless Data LakeAmazon Web Services
 
Migrating Data to the Cloud: Exploring Your Options from AWS (STG205-R1) - AW...
Migrating Data to the Cloud: Exploring Your Options from AWS (STG205-R1) - AW...Migrating Data to the Cloud: Exploring Your Options from AWS (STG205-R1) - AW...
Migrating Data to the Cloud: Exploring Your Options from AWS (STG205-R1) - AW...Amazon Web Services
 
Hands-On Building and Deploying .NET Applications on AWS (DEV331-R1) - AWS re...
Hands-On Building and Deploying .NET Applications on AWS (DEV331-R1) - AWS re...Hands-On Building and Deploying .NET Applications on AWS (DEV331-R1) - AWS re...
Hands-On Building and Deploying .NET Applications on AWS (DEV331-R1) - AWS re...Amazon Web Services
 
Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018
Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018
Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018Amazon Web Services
 
Hands-On: Building a Migration Strategy for SQL Server on AWS (WIN310) - AWS ...
Hands-On: Building a Migration Strategy for SQL Server on AWS (WIN310) - AWS ...Hands-On: Building a Migration Strategy for SQL Server on AWS (WIN310) - AWS ...
Hands-On: Building a Migration Strategy for SQL Server on AWS (WIN310) - AWS ...Amazon Web Services
 
Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...
Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...
Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...Amazon Web Services
 
Introducing AWS Transfer for SFTP, a Fully Managed SFTP Service for Amazon S3...
Introducing AWS Transfer for SFTP, a Fully Managed SFTP Service for Amazon S3...Introducing AWS Transfer for SFTP, a Fully Managed SFTP Service for Amazon S3...
Introducing AWS Transfer for SFTP, a Fully Managed SFTP Service for Amazon S3...Amazon Web Services
 
Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...
Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...
Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...Amazon Web Services
 
Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...
Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...
Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...Amazon Web Services
 
[NEW LAUNCH!] Introducing Amazon Elastic Inference: Reduce Deep Learning Infe...
[NEW LAUNCH!] Introducing Amazon Elastic Inference: Reduce Deep Learning Infe...[NEW LAUNCH!] Introducing Amazon Elastic Inference: Reduce Deep Learning Infe...
[NEW LAUNCH!] Introducing Amazon Elastic Inference: Reduce Deep Learning Infe...Amazon Web Services
 
以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)
以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)
以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)Amazon Web Services
 
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)Amazon Web Services
 
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...Amazon Web Services
 
Reliability of the Cloud: How AWS Achieves High Availability (ARC317-R1) - AW...
Reliability of the Cloud: How AWS Achieves High Availability (ARC317-R1) - AW...Reliability of the Cloud: How AWS Achieves High Availability (ARC317-R1) - AW...
Reliability of the Cloud: How AWS Achieves High Availability (ARC317-R1) - AW...Amazon Web Services
 
AWS Greengrass, Containers, and Your Dev Process for Edge Apps (GPSWS404) - A...
AWS Greengrass, Containers, and Your Dev Process for Edge Apps (GPSWS404) - A...AWS Greengrass, Containers, and Your Dev Process for Edge Apps (GPSWS404) - A...
AWS Greengrass, Containers, and Your Dev Process for Edge Apps (GPSWS404) - A...Amazon Web Services
 
Improve Consistency & Governance in Cross-Account & Global Deployments (DEV34...
Improve Consistency & Governance in Cross-Account & Global Deployments (DEV34...Improve Consistency & Governance in Cross-Account & Global Deployments (DEV34...
Improve Consistency & Governance in Cross-Account & Global Deployments (DEV34...Amazon Web Services
 
Hands-On: Deploy Remote Graphics Desktops for Content Production (CMP422) - A...
Hands-On: Deploy Remote Graphics Desktops for Content Production (CMP422) - A...Hands-On: Deploy Remote Graphics Desktops for Content Production (CMP422) - A...
Hands-On: Deploy Remote Graphics Desktops for Content Production (CMP422) - A...Amazon Web Services
 

What's hot (20)

Wellington Management: The Journey to All-In, One Data Center at a Time (FSV2...
Wellington Management: The Journey to All-In, One Data Center at a Time (FSV2...Wellington Management: The Journey to All-In, One Data Center at a Time (FSV2...
Wellington Management: The Journey to All-In, One Data Center at a Time (FSV2...
 
Introducing AWS DataSync - Simplify, automate, and accelerate online data tra...
Introducing AWS DataSync - Simplify, automate, and accelerate online data tra...Introducing AWS DataSync - Simplify, automate, and accelerate online data tra...
Introducing AWS DataSync - Simplify, automate, and accelerate online data tra...
 
Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...
Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...
Deep Dive on Amazon Elastic File System (Amazon EFS) (STG301-R1) - AWS re:Inv...
 
Workshop: Architecting a Serverless Data Lake
Workshop: Architecting a Serverless Data LakeWorkshop: Architecting a Serverless Data Lake
Workshop: Architecting a Serverless Data Lake
 
Migrating Data to the Cloud: Exploring Your Options from AWS (STG205-R1) - AW...
Migrating Data to the Cloud: Exploring Your Options from AWS (STG205-R1) - AW...Migrating Data to the Cloud: Exploring Your Options from AWS (STG205-R1) - AW...
Migrating Data to the Cloud: Exploring Your Options from AWS (STG205-R1) - AW...
 
Hands-On Building and Deploying .NET Applications on AWS (DEV331-R1) - AWS re...
Hands-On Building and Deploying .NET Applications on AWS (DEV331-R1) - AWS re...Hands-On Building and Deploying .NET Applications on AWS (DEV331-R1) - AWS re...
Hands-On Building and Deploying .NET Applications on AWS (DEV331-R1) - AWS re...
 
Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018
Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018
Amazon EC2 Foundations (CMP208-R1) - AWS re:Invent 2018
 
Hands-On: Building a Migration Strategy for SQL Server on AWS (WIN310) - AWS ...
Hands-On: Building a Migration Strategy for SQL Server on AWS (WIN310) - AWS ...Hands-On: Building a Migration Strategy for SQL Server on AWS (WIN310) - AWS ...
Hands-On: Building a Migration Strategy for SQL Server on AWS (WIN310) - AWS ...
 
Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...
Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...
Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...
 
Introducing AWS Transfer for SFTP, a Fully Managed SFTP Service for Amazon S3...
Introducing AWS Transfer for SFTP, a Fully Managed SFTP Service for Amazon S3...Introducing AWS Transfer for SFTP, a Fully Managed SFTP Service for Amazon S3...
Introducing AWS Transfer for SFTP, a Fully Managed SFTP Service for Amazon S3...
 
Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...
Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...
Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...
 
Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...
Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...
Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...
 
[NEW LAUNCH!] Introducing Amazon Elastic Inference: Reduce Deep Learning Infe...
[NEW LAUNCH!] Introducing Amazon Elastic Inference: Reduce Deep Learning Infe...[NEW LAUNCH!] Introducing Amazon Elastic Inference: Reduce Deep Learning Infe...
[NEW LAUNCH!] Introducing Amazon Elastic Inference: Reduce Deep Learning Infe...
 
以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)
以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)
以 Amazon EC2 Spot 執行個體有效控制專案成本 (Level: 200)
 
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
 
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...
Accelerating Application Development with Amazon Aurora (DAT312-R2) - AWS re:...
 
Reliability of the Cloud: How AWS Achieves High Availability (ARC317-R1) - AW...
Reliability of the Cloud: How AWS Achieves High Availability (ARC317-R1) - AW...Reliability of the Cloud: How AWS Achieves High Availability (ARC317-R1) - AW...
Reliability of the Cloud: How AWS Achieves High Availability (ARC317-R1) - AW...
 
AWS Greengrass, Containers, and Your Dev Process for Edge Apps (GPSWS404) - A...
AWS Greengrass, Containers, and Your Dev Process for Edge Apps (GPSWS404) - A...AWS Greengrass, Containers, and Your Dev Process for Edge Apps (GPSWS404) - A...
AWS Greengrass, Containers, and Your Dev Process for Edge Apps (GPSWS404) - A...
 
Improve Consistency & Governance in Cross-Account & Global Deployments (DEV34...
Improve Consistency & Governance in Cross-Account & Global Deployments (DEV34...Improve Consistency & Governance in Cross-Account & Global Deployments (DEV34...
Improve Consistency & Governance in Cross-Account & Global Deployments (DEV34...
 
Hands-On: Deploy Remote Graphics Desktops for Content Production (CMP422) - A...
Hands-On: Deploy Remote Graphics Desktops for Content Production (CMP422) - A...Hands-On: Deploy Remote Graphics Desktops for Content Production (CMP422) - A...
Hands-On: Deploy Remote Graphics Desktops for Content Production (CMP422) - A...
 

Similar to MySQL High Availability & Disaster Recovery (DAT361) - AWS re:Invent 2018

NetBackup CloudCatalyst: Efficient, Cost-Effective Deduplication to the Cloud
NetBackup CloudCatalyst: Efficient, Cost-Effective Deduplication to the CloudNetBackup CloudCatalyst: Efficient, Cost-Effective Deduplication to the Cloud
NetBackup CloudCatalyst: Efficient, Cost-Effective Deduplication to the CloudVeritas Technologies LLC
 
MAA Best Practices for Oracle Database 19c
MAA Best Practices for Oracle Database 19cMAA Best Practices for Oracle Database 19c
MAA Best Practices for Oracle Database 19cMarkus Michalewicz
 
Enabling OpenStack for Enterprise - Tarso Dos Santos, Veritas
Enabling OpenStack for Enterprise - Tarso Dos Santos, VeritasEnabling OpenStack for Enterprise - Tarso Dos Santos, Veritas
Enabling OpenStack for Enterprise - Tarso Dos Santos, VeritasOpenStack
 
Why MySQL High Availability Matters
Why MySQL High Availability MattersWhy MySQL High Availability Matters
Why MySQL High Availability MattersMatt Lord
 
Discover & Migrate at Scale with AWS Migration Hub & Application Discovery Se...
Discover & Migrate at Scale with AWS Migration Hub & Application Discovery Se...Discover & Migrate at Scale with AWS Migration Hub & Application Discovery Se...
Discover & Migrate at Scale with AWS Migration Hub & Application Discovery Se...Amazon Web Services
 
Webinar NETGEAR - Acronis e Netgear - Soluzione per le Aziende
Webinar NETGEAR - Acronis e Netgear - Soluzione per le AziendeWebinar NETGEAR - Acronis e Netgear - Soluzione per le Aziende
Webinar NETGEAR - Acronis e Netgear - Soluzione per le AziendeNetgear Italia
 
NetBackup CloudCatalyst – efficient, cost-effective deduplication to the cloud
NetBackup CloudCatalyst – efficient, cost-effective deduplication to the cloudNetBackup CloudCatalyst – efficient, cost-effective deduplication to the cloud
NetBackup CloudCatalyst – efficient, cost-effective deduplication to the cloudVeritas Technologies LLC
 
Implement a Modern Flash-to-Flash-to-Cloud Backup Environment (DEV205-S) - AW...
Implement a Modern Flash-to-Flash-to-Cloud Backup Environment (DEV205-S) - AW...Implement a Modern Flash-to-Flash-to-Cloud Backup Environment (DEV205-S) - AW...
Implement a Modern Flash-to-Flash-to-Cloud Backup Environment (DEV205-S) - AW...Amazon Web Services
 
Application Modernization with PKS / Kubernetes
Application Modernization with PKS / KubernetesApplication Modernization with PKS / Kubernetes
Application Modernization with PKS / KubernetesPaul Czarkowski
 
How a Biotech Firm Streamlined Data Protection on AWS
 How a Biotech Firm Streamlined Data Protection on AWS How a Biotech Firm Streamlined Data Protection on AWS
How a Biotech Firm Streamlined Data Protection on AWSAmazon Web Services
 
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...Amazon Web Services
 
Data core overview - haluk-final
Data core overview - haluk-finalData core overview - haluk-final
Data core overview - haluk-finalHaluk Ulubay
 
How to Integrate Hyperconverged Systems with Existing SANs
How to Integrate Hyperconverged Systems with Existing SANsHow to Integrate Hyperconverged Systems with Existing SANs
How to Integrate Hyperconverged Systems with Existing SANsDataCore Software
 
RightScale Webinar: Key Considerations For Cloud Migration and Portability
RightScale Webinar:  Key Considerations For Cloud Migration and PortabilityRightScale Webinar:  Key Considerations For Cloud Migration and Portability
RightScale Webinar: Key Considerations For Cloud Migration and PortabilityRightScale
 
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaSCloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaSEDB
 

Similar to MySQL High Availability & Disaster Recovery (DAT361) - AWS re:Invent 2018 (20)

Amazon Aurora: Database Week SF
Amazon Aurora: Database Week SFAmazon Aurora: Database Week SF
Amazon Aurora: Database Week SF
 
Amazon Aurora
Amazon AuroraAmazon Aurora
Amazon Aurora
 
Oracle on AWS
Oracle on AWSOracle on AWS
Oracle on AWS
 
Oracle on AWS
Oracle on AWSOracle on AWS
Oracle on AWS
 
NetBackup CloudCatalyst: Efficient, Cost-Effective Deduplication to the Cloud
NetBackup CloudCatalyst: Efficient, Cost-Effective Deduplication to the CloudNetBackup CloudCatalyst: Efficient, Cost-Effective Deduplication to the Cloud
NetBackup CloudCatalyst: Efficient, Cost-Effective Deduplication to the Cloud
 
MAA Best Practices for Oracle Database 19c
MAA Best Practices for Oracle Database 19cMAA Best Practices for Oracle Database 19c
MAA Best Practices for Oracle Database 19c
 
Enabling OpenStack for Enterprise - Tarso Dos Santos, Veritas
Enabling OpenStack for Enterprise - Tarso Dos Santos, VeritasEnabling OpenStack for Enterprise - Tarso Dos Santos, Veritas
Enabling OpenStack for Enterprise - Tarso Dos Santos, Veritas
 
Why MySQL High Availability Matters
Why MySQL High Availability MattersWhy MySQL High Availability Matters
Why MySQL High Availability Matters
 
Managed NoSQL databases
Managed NoSQL databasesManaged NoSQL databases
Managed NoSQL databases
 
Discover & Migrate at Scale with AWS Migration Hub & Application Discovery Se...
Discover & Migrate at Scale with AWS Migration Hub & Application Discovery Se...Discover & Migrate at Scale with AWS Migration Hub & Application Discovery Se...
Discover & Migrate at Scale with AWS Migration Hub & Application Discovery Se...
 
Webinar NETGEAR - Acronis e Netgear - Soluzione per le Aziende
Webinar NETGEAR - Acronis e Netgear - Soluzione per le AziendeWebinar NETGEAR - Acronis e Netgear - Soluzione per le Aziende
Webinar NETGEAR - Acronis e Netgear - Soluzione per le Aziende
 
NetBackup CloudCatalyst – efficient, cost-effective deduplication to the cloud
NetBackup CloudCatalyst – efficient, cost-effective deduplication to the cloudNetBackup CloudCatalyst – efficient, cost-effective deduplication to the cloud
NetBackup CloudCatalyst – efficient, cost-effective deduplication to the cloud
 
Implement a Modern Flash-to-Flash-to-Cloud Backup Environment (DEV205-S) - AW...
Implement a Modern Flash-to-Flash-to-Cloud Backup Environment (DEV205-S) - AW...Implement a Modern Flash-to-Flash-to-Cloud Backup Environment (DEV205-S) - AW...
Implement a Modern Flash-to-Flash-to-Cloud Backup Environment (DEV205-S) - AW...
 
Application Modernization with PKS / Kubernetes
Application Modernization with PKS / KubernetesApplication Modernization with PKS / Kubernetes
Application Modernization with PKS / Kubernetes
 
How a Biotech Firm Streamlined Data Protection on AWS
 How a Biotech Firm Streamlined Data Protection on AWS How a Biotech Firm Streamlined Data Protection on AWS
How a Biotech Firm Streamlined Data Protection on AWS
 
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
 
Data core overview - haluk-final
Data core overview - haluk-finalData core overview - haluk-final
Data core overview - haluk-final
 
How to Integrate Hyperconverged Systems with Existing SANs
How to Integrate Hyperconverged Systems with Existing SANsHow to Integrate Hyperconverged Systems with Existing SANs
How to Integrate Hyperconverged Systems with Existing SANs
 
RightScale Webinar: Key Considerations For Cloud Migration and Portability
RightScale Webinar:  Key Considerations For Cloud Migration and PortabilityRightScale Webinar:  Key Considerations For Cloud Migration and Portability
RightScale Webinar: Key Considerations For Cloud Migration and Portability
 
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaSCloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

MySQL High Availability & Disaster Recovery (DAT361) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. MySQL High Availability and Disaster Recovery FromDoingitManuallytoAmazonRDSandAmazonAurora Peter Zaitsev, CEO, Percona D A T 3 6 1
  • 3. © 2018 Percona. 3 About This Presentation High Availability and Disaster Recovery Implementing HA and DR manually MySQL HA and DR with AWS DBaaS offerings
  • 4. © 2018 Percona. 4 What Do We Want From Applications? Work correctly Be “Up” Have good performance
  • 5. © 2018 Percona. 5 From the Engineer’s Standpoint • Many practices from design to proper QACorrectness • Benchmarks, load testing, capacity planningPerformance • Design, chaos engineeringHigh Availability
  • 6. © 2018 Percona. 6 High Availability is Hard Hard to foresee everything that can go wrong Long tail of low probability problems A lot of environment specifics Depends on technology and operational practices
  • 7. © 2018 Percona. 7 Engineered Systems Like security, High Availability favors well designed and tested “Engineered Systems”
  • 8. © 2018 Percona. 8 Pro Tip Consider having expert evaluation of your HA and DR design, implementation and operational practices.
  • 9. © 2018 Percona. 9 High Availability and Disaster Recovery High Availability • High/medium event frequency • Low/medium event impact • No/minimum downtime • No data loss • No manual intervention needed Disaster Recovery • Rare event frequency • High event impact • Downtime may be allowed by design • Data loss may be allowed by design • Manual intervention may be needed
  • 10. © 2018 Percona. 10 High Availability Versus Disaster Recovery High Availability •Failure of a single server •Failure of a single Availability Zone Disaster Recovery •Multiple AZ failure within region •Major software issues •Major security incidents
  • 11. © 2018 Percona. 11 High Availability Planning What is the estimated time between events (MTBF)? What is the acceptable impact to the system? What is the mean time to recover (MTTR)?
  • 12. © 2018 Percona. 12 Example: RAID5 Volume Disk Failure Single SSD may have 1Mil+ hours between failures (100+ years) With 1000s of disks in the data center, failure is not a rare event Impact to the system: performance impact, loss of redundancy Time to recover: hours
  • 13. © 2018 Percona. 13 Achieving High Availability for a Database Compute redundancy Data redundancy and replication Failover management Service endpoint provisioning
  • 14. © 2018 Percona. 14 HA and DR for MySQL MySQL is often your “system of record” Appropriate HA and DR planning is critically important
  • 15. © 2018 Percona. 15 Choices for MySQL at AWS Build your own Use AWS DBaaS services
  • 16. © 2018 Percona. 16 Build Your Own Advantages •More flexibility •More control •Potentially lower infrastructure costs Disadvantages •Additional time and effort required •Potentially additional risks
  • 17. © 2018 Percona. 17 Use DBaaS Advantages •Save time •Reduce risk •Empower development team Disadvantages •Potentially higher infrastructure costs •Less flexibility •Less control
  • 18. © 2018 Percona. 18 Build Your Own HA Options for MySQL
  • 19. © 2018 Percona. 19 Achieving Data Redundancy Storage level Database level External/application level
  • 20. © 2018 Percona. 20 Storage Level Redundancy Mount EBS volume to another instance DRBD Clustered file systems
  • 21. © 2018 Percona. 21 Database Level Redundancy Classic MySQL replication MySQL group replication/MySQL InnoDB Cluster Percona XtraDB Cluster and other Galera-based technologies MySQL Cluster (NDB)
  • 22. © 2018 Percona. 22 External/Application Level Manual application replication Trigger-based replication Using Kafka as message bus
  • 23. © 2018 Percona. 23 Classic MySQL Replication
  • 24. © 2018 Percona. 24 Classic MySQL Replication Properties Asynchronous or semi-synchronous Parallel (since MySQL 5.7) Many masters to many slaves (MySQL 5.7) No conflict resolution or “protection” No built-in failover
  • 25. © 2018 Percona. 25 Advanced MySQL Replication Topologies
  • 26. © 2018 Percona. 26 MySQL Group Replication
  • 27. © 2018 Percona. 27 MySQL Group Replication (New in 5.7) “Group of peers” Write-anywhere or dedicated writer Asynchronous replication with flow control Conflicts prevented through certification Built in failover No automated provisioning
  • 28. © 2018 Percona. 28 Percona XtraDB Cluster/Galera
  • 29. © 2018 Percona. 29 Percona XtraDB Cluster Topology
  • 30. © 2018 Percona. 30 Percona XtraDB Cluster/Galera Properties Write to any node Certification based replication Virtually synchronous; can ensure no stale reads Built-in fail-over Built-in node provisioning
  • 31. © 2018 Percona. 31 Transaction Commit Flow Node 1 (master) Node 2 (slave) User Interaction Time contributing to response time BEGIN COMMIT Responsetime ofCOMMIT Return result of COMMIT query1 query2 query3 User transaction Certification Physical COMMIT (or ROLLBACK) Network Event sent to other node(s) Certification Apply event (slave thread) Time out- of-sync Legend:
  • 32. © 2018 Percona. 32 MySQL Cluster Properties Niche use only Synchronous replication Initially designed for in-memory only Built-in sharding Very high network performance requirements WAN replication with conflict resolution
  • 33. © 2018 Percona. 33 MySQL NDB Cluster High Level Architecture
  • 34. © 2018 Percona. 34 Failover Management MySQL classic replication does not have built-in failover management Many custom made scripts were created through the years; most of them are bad
  • 35. © 2018 Percona. 35 • Highly available • Manual and automated failovers • Auditing • Plugin interface MySQL Orchestrator
  • 36. © 2018 Percona. 36 Service Point Provisioning MySQL client library connects to single host How do you manage it during failover?
  • 37. © 2018 Percona. 37 Multiple Solutions DNS based Elastic load balancer HAProxy MySQL router ProxySQL
  • 38. © 2018 Percona. 38 100% open source Well supported Read-write splitting Caching Query rewrites Load balancing 10k+ connection support ProxySQL
  • 40. © 2018 Percona. 40 4 0 ProxySQL on Application Side
  • 41. © 2018 Percona. 41 Backup and Restore •MySQL Enterprise Backup •Percona Xtrabackup •MySQLDump/MyDumper No HA solution replaces need for backup
  • 42. © 2018 Percona. 42 Backup: PITR (Point-in-Time Recovery) •MySQL binary log archiving •Storage level Continuous Data Protection (CDP) Do you need to restore to a specific point in time?
  • 43. © 2018 Percona. 43 Flashback •Can be done with some hacks when using ROW binlog format •Does not work for table drops or DDLs Undo unwanted update/delete
  • 44. © 2018 Percona. 44 Kubernetes? Use Amazon Elastic Container Service for Kubernetes (Amazon EKS) (Managed Kubernetes Service) Roll your own Kubernetes on Amazon Elastic Compute Cloud (Amazon EC2)
  • 45. © 2018 Percona. 45 MySQL on Kubernetes •Official MySQL Operator (Alpha) •Presslabs MySQL Operator •Percona is working on Operator for Percona XtraDB Cluster Early Stage
  • 46. © 2018 Percona. 46 100% free and open source Based on industry leading technologies Supports both self made and Amazon Relational Database Service (Amazon RDS) General health Query performance Replication and ProxySQL Understanding Your Environment - PMM
  • 47. © 2018 Percona. 47 Oh My…. It Sounds Complicated Do it yourself MySQL High Availability at AWS is not easy Percona provides Professional Services and Support to assist There is a modern way…
  • 48. © 2018 Percona. 48 MySQL High Availability with DBaaS
  • 49. © 2018 Percona. 49 DBaaS Options • MySQL and MariaDB • Minimal differences from open source implementation Amazon RDS • High performance engine designed for the cloud • Additional features not present in open source MySQL • May lag behind most recent MySQL release Amazon Aurora
  • 50. © 2018 Percona. 50 Amazon RDS High Availability (Multi-AZ)
  • 51. © 2018 Percona. 51 Amazon RDS High Availability Properties Synchronous replication (no data loss on failover) Failover time depends on transactional load (60-120 sec) DNS record changes to healthy instance
  • 52. © 2018 Percona. 52 Amazon RDS Read Replicas Scaling reads Reporting queries Disaster recovery
  • 53. © 2018 Percona. 53 Amazon RDS Backup and Snapshots Backups are taken automatically You can chose backup policy Secondary is automatically used for backups if available Backups suspend IO for a few seconds to few minutes Specify backup window to manage it better Create manual snapshots Point in time recovery is available
  • 54. © 2018 Percona. 54 Amazon Aurora offers state-of-the-art High Availability and DR options for MySQL Amazon Aurora
  • 55. © 2018 Percona. 55 Single Instance Deployment Data is replicated 6 ways across 3 availability zones Any AZ failure causes no data loss and only brief interruption of service New instance is automatically created in case of instance failure
  • 56. © 2018 Percona. 56 Amazon Aurora Replicas Replicas automatically promoted to primary upon failure Faster than single instance recovery Replicas can be used for read queries Replication lag is lower than for MySQL replication
  • 57. © 2018 Percona. 57 Amazon Aurora Deployment Overview
  • 58. © 2018 Percona. 58 Amazon Aurora Read Replicas Replication between Amazon Aurora clusters .. or between Amazon RDS and Amazon Aurora Often done between regions Great feature for disaster recovery
  • 59. © 2018 Percona. 59 Roll back the state of the cluster Supports DDL Requires cluster restart Amazon Aurora Backtrack
  • 60. © 2018 Percona. 60 Built In Monitoring: Amazon CloudWatch
  • 61. © 2018 Percona. 61 Built In Monitoring: Enhanced Monitoring
  • 63. © 2018 Percona. 63 Summary You can build advanced custom MySQL HA architectures on MySQL For many companies, Amazon RDS and Amazon is a great choice Beware of “Unknown unknowns” in self-made MySQL HA architectures Whatever path you take, Percona is ready to support you
  • 64. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Peter Zaitsev, CEO, Percona
  • 65. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.