SlideShare una empresa de Scribd logo
1 de 37
Descargar para leer sin conexión
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
MySQL Enterprise Backup
Ted Wennmark, MySQL solution architect
ted.wennmark@oracle.com
Oracle Confidential –Internal/Restricted/Highly Restricted 2
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Why backups?
• Datais your most valuable IP. You hate to protect it from loss
• DisasterRecovery
• Hardware, Software, Developer or DBA error
• Migration and Upgrades – Change Hardware
• Create replica’ s for HA setup
• Archival – requirements to keep data for X number of years
• Move chunks of data
• Setup Test Environments
Oracle Confidential –Internal/Restricted/Highly Restricted 3
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Backup and Recovery can be trickier than it appears
Requires some fore thought and planning
• How do you backup your critical production systems?
• While servers are performing critical business functions
• And downtown is not acceptable
• Where negative performance impacts are not acceptable
• Finding proper backup storage is critical
Oracle Confidential –Internal/Restricted/Highly Restricted 4
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
What you can use depends on what you are backing up
• Size – A tiny table or a Massive Database
• Activity – Is the Database very busy or it is an inactive database
– Try not to overlap busy database with backups if possible
– For logical you ‘’l get locking collisions
– For physical the backup will be larger
• It collects data to make everything consistent – this takes space
• Recoverywill take longer – it must apply the data to make consistent.
• Cost – Is the data within the database compressed?
– Most databases are highly compressible– however if your database contains
compressedcell data – don’t recompression won’t help and will slow things down
Oracle Confidential –Internal/Restricted/Highly Restricted 5
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Recovery
• How fast do you need to recover?
• Immediate
– Replication
• ASAP
– Physicalis several orders of magnitude faster
• Doesn’t matter (its Archival)
– Then cost and size more of a factor
• Doesn’t matter (its Logical)
– Will be slower but flexibility is more important
Oracle Confidential –Internal/Restricted/Highly Restricted 6
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Cost/Benefit
Do the math
• Is it archived?
– Writing to a media manager or tape
– Writing to Cloud Storage
• Long term disk or other media cost
– Compressioncan save you $s
Oracle Confidential –Internal/Restricted/Highly Restricted 7
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
• Logical
– New mysqlpump (included in 5.7)
• A modern highly parallel data pump
– Mysqldump
– Mysqldbexport/import
• Part of MySQL Utilities
• Physical
• MySQL Enterprise Backup (MEB)
• Transportable Table Spaces
• OS Backups
– “Cold”File System Backups
– Snapshots
• For example LVM, other Filesystems or HW
based
• Continuous
– Replicas (MySQL Replication)
• Often with slave lag
– Binlog Tools
Oracle Confidential –Internal/Restricted/Highly Restricted 8
One size does Not fit all “Use Cases”
Pick the right tool(s) for the job(s)
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Logical Backups
• Backup
– Creates collection of SQL Statements used to recreate database objects (tables etc)
and the data within them – Inserts statements
– May include data in separate files saved in a cross platform format
• Restore
– Runs these SQL Statements to restore objects and the data
Oracle Confidential –Internal/Restricted/Highly Restricted 9
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Logical Backup
• Advantages
– Easy of use - simple commands allow you to easily backup and restore
– Good for small database or tables – minimum impact on backup and restore
performance
– Flexibility – logical backup allows you to choose what you want to backup and not
backup.Change the scripts to restore partially etc.
– Cross Platform –works no matter the platform
– Readability - Good assurance that database files are not corrupt - all the data is read
and it is read using standard SQL queries.
Oracle Confidential –Internal/Restricted/Highly Restricted 10
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Logical Backup
• Disadvantages
– Not an online solution – write operations are locked while performing the backup,
thereby blocking use of the database
– Poor to VERY Poor performance – backup and especially restore times are very slow
for larger databases( 1or more orders of magnitude)
– Large Files – will be many times larger than actually database files
– Not consistent unless you lock everything the database won’t necessarily be restored
to a consistentstate
– No incremental backup – all backups are full backups,can be time consuming and
require more storage
Oracle Confidential –Internal/Restricted/Highly Restricted 11
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
• HOT, NON-Blocking for Innodb
• Performance –faster for backups and faster for
restore
• Scalable – performance is near linear for larger
databases.
• Efficient –processed mostly run outside server
• More compact backup files – up to 90%
compression in some cases
• Secure – supports AES 256 compression
• Flexible – support for incremental backups,
partial backups, backup compression, point
in time recovery and more.
• Many target supported directly
– MediaManagers–Oracle Secure Backup
– Cloud Storage– AES S3,OpenStackSwift
– GeneralStreaming(pipe to SSH etc)
• Archival Backups – suitable archival format
for historical purposes
• Consistent – delivers consistent point in time
recovery
Oracle Confidential –Internal/Restricted/Highly Restricted 12
Physical Backup (MEB)
• Copy of the internal files that constitute the MySQL database
• Restore Copy back Internal Files and Replay data changes to make data
consistent.
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
• FULL Logical Backups
– Impractical in many situations
• Logical RESTORE takes much longer
– Typically2x of BACKUP time
Oracle Confidential –Internal/Restricted/Highly Restricted 13
Performance with MySQL Enterprise Backup
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
TransportableTablespace (MEB)
• Copy and Move a MySQL Innodb Tablespace
• Advantages
– Fast
• Runs at file level
• Flexible
– Can move one or more tablespaces
– Instanceremains up when “restoring” a tablespace
Oracle Confidential –Internal/Restricted/Highly Restricted 14
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
To consider performance think of structure of a
running backup – one way is like this
Oracle Confidential –Internal/Restricted/Highly Restricted 15
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
To consider performance think of structure of a
running backup – or like this
Oracle Confidential –Internal/Restricted/Highly Restricted 16
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
To consider performance think of structure of a
running backup – or like this
Oracle Confidential –Internal/Restricted/Highly Restricted 17
MEB 4.0 now
reports back
with Tape ID
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
To consider performance think of structure of a
running backup – or like this
Oracle Confidential –Internal/Restricted/Highly Restricted 18
Cloud
Storage
(S3, Swift))
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Oracle Secure Backup (OSB)
• Centralized Tape Backup Management
Oracle Confidential –Internal/Restricted/Highly Restricted 19
• RMAN-Oracle Recovery Manager,MEB– MySQLEnterprise Backup,SBT – Oracle’sAPI for Integrationwith Media
Managers
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
What determines backup speed? The longest time
Oracle Confidential –Internal/Restricted/Highly Restricted 20
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
What determines backup speed? The longest time
Oracle Confidential –Internal/Restricted/Highly Restricted 21
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
What determines backup speed? The longest time
Oracle Confidential –Internal/Restricted/Highly Restricted 22
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
What determines backup speed? The longest Time
Oracle Confidential –Internal/Restricted/Highly Restricted 23
Unlikely on
modern systems
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Too much Sharing – slows things down –
Mostly IO Contention, At times CPU
Oracle Confidential –Internal/Restricted/Highly Restricted 24
RISKY
Lose database
and database
backupif storage
systemfails
And SLOW
And has Side
Effects
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Improving backup speed
Oracle Confidential –Internal/Restricted/Highly Restricted 25
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Does Highest Compression=Higher Speed
Not typically
Oracle Confidential –Internal/Restricted/Highly Restricted 26
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
MySQL Enterprise Backup is Truly Parallel
Read, Write, Processing
Oracle Confidential –Internal/Restricted/Highly Restricted 27
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Selective backup with TTS
• What is TTS, why better (in some cases) than normal partial backup
Oracle Confidential –Internal/Restricted/Highly Restricted 28
• MySQL 5.6+ feature: Transportable
• Table spaces
– Online table portability: Import/Export
• In MySQL 5.7 supports TTS per
partition
• MEB implements methods that
– LimitedLocking time
– Easy of use
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Image or Directory backup and Performance
• MySQL Enterprise Backup supports
– Backup to a single image – a single file or streamed
– Backup to a directory
• In our testing confirms – Image is often a bit better
– Performance advantage comes from combining different steps that you might
otherwise have to perform in sequence
• Going forward - Focus on image (a file)
– Only supported for encryption, Cloud Storage, Media Managers..
– Image is simpler to manage
Oracle Confidential –Internal/Restricted/Highly Restricted 30
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
• Full Instance
– Config/Settings
• Selective
– Leverages TTS
– Great for large tables
• Encryption
– AES – required for sensitive data
• Skip Unused Pages
– Reduces space
• Continuous progress
– % Bytes, Status
• Monitor disk space
– Optional actions
• Warn & Retry, Abort, Remove
Oracle Confidential –Internal/Restricted/Highly Restricted 31
Other features MEB provides
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Understanding your system
• CPU load
– Patterns – look at times of day
– Load level – is it low or high – often DBs are low = 30%
• IO load
– Patterns – look at times of day
– Architecture
• IO rate
– How fast can you read database files?
– How fast can you write?
– Run DD or other tools – whats you MB/sec?
Oracle Confidential –Internal/Restricted/Highly Restricted 32
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Backup Strategy
• A comprehensive plan for backup and recovery
Oracle Confidential –Internal/Restricted/Highly Restricted 34
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Validate
• No backup strategy is complete without validating backup
Oracle Confidential –Internal/Restricted/Highly Restricted 35
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
References
• MySQL Enterprise Backup: Product Information
– www.mysql.com/products/enterprise/backup.html
• MySQL Enterprise Backup Team Blog
– https://blogs.oracle.com/mysqlenterprisebackup/
• MySQL Enterprise Backup: Documentation
– dev.mysql.com/doc/mysql-enterprisebackup/3.10/en/index.html
• How Do I get it
– https://edelivery.oracle.com
• Support and patches (My Oracle Support = MOS)
– https://support.oracle.com
Oracle Confidential –Internal/Restricted/Highly Restricted 36
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. |
Thanks for Attending
• You‟ll get the slides
• Please don‟t hesitate to send us ideas, feedback, doc requests, blog
requests, etc.
• http://bugs.mysql.com/report.php
• Directly through support
• Blog Comments
• Email
Oracle Confidential –Internal/Restricted/Highly Restricted 37
Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Oracle Confidential –Internal/Restricted/Highly Restricted 38
MySQL Enterprise Backup apr 2016

Más contenido relacionado

La actualidad más candente

What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
Geir Høydalsvik
 

La actualidad más candente (20)

MySQL Tech Tour 2015 - 5.7 Security
MySQL Tech Tour 2015 - 5.7 SecurityMySQL Tech Tour 2015 - 5.7 Security
MySQL Tech Tour 2015 - 5.7 Security
 
MySQL Enterprise Edition Overview
MySQL Enterprise Edition OverviewMySQL Enterprise Edition Overview
MySQL Enterprise Edition Overview
 
MySQL Tech Tour 2015 - 5.7 Whats new
MySQL Tech Tour 2015 - 5.7 Whats newMySQL Tech Tour 2015 - 5.7 Whats new
MySQL Tech Tour 2015 - 5.7 Whats new
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
 
MySQL Security
MySQL SecurityMySQL Security
MySQL Security
 
MySQL Security
MySQL SecurityMySQL Security
MySQL Security
 
MySQL Manchester TT - Security
MySQL Manchester TT  - SecurityMySQL Manchester TT  - Security
MySQL Manchester TT - Security
 
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
 
My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015
 
MySQL Cluster as Transactional NoSQL (KVS)
MySQL Cluster as Transactional NoSQL (KVS)MySQL Cluster as Transactional NoSQL (KVS)
MySQL Cluster as Transactional NoSQL (KVS)
 
MySQL Community and Commercial Edition
MySQL Community and Commercial EditionMySQL Community and Commercial Edition
MySQL Community and Commercial Edition
 
20140722 Taiwan MySQL User Group Meeting Tech Updates
20140722 Taiwan MySQL User Group Meeting Tech Updates20140722 Taiwan MySQL User Group Meeting Tech Updates
20140722 Taiwan MySQL User Group Meeting Tech Updates
 
MySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & TuneMySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & Tune
 
MySQL Manchester TT - 5.7 Whats new
MySQL Manchester TT - 5.7 Whats newMySQL Manchester TT - 5.7 Whats new
MySQL Manchester TT - 5.7 Whats new
 
MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015
 
My sql 5.6&MySQL Cluster 7.3
My sql 5.6&MySQL Cluster 7.3My sql 5.6&MySQL Cluster 7.3
My sql 5.6&MySQL Cluster 7.3
 
MySQL Intro JSON NoSQL
MySQL Intro JSON NoSQLMySQL Intro JSON NoSQL
MySQL Intro JSON NoSQL
 
Why MySQL High Availability Matters
Why MySQL High Availability MattersWhy MySQL High Availability Matters
Why MySQL High Availability Matters
 
MySQL Technology Overview
MySQL Technology OverviewMySQL Technology Overview
MySQL Technology Overview
 
TWJUG August, MySQL JDBC Driver "Connector/J"
TWJUG August, MySQL JDBC Driver "Connector/J"TWJUG August, MySQL JDBC Driver "Connector/J"
TWJUG August, MySQL JDBC Driver "Connector/J"
 

Similar a MySQL Enterprise Backup apr 2016

The Sun ZFS Backup Appliance
The Sun ZFS Backup ApplianceThe Sun ZFS Backup Appliance
The Sun ZFS Backup Appliance
omnidba
 
Oracle Cloud DBaaS
Oracle Cloud DBaaSOracle Cloud DBaaS
Oracle Cloud DBaaS
Arush Jain
 

Similar a MySQL Enterprise Backup apr 2016 (20)

The Sun ZFS Backup Appliance
The Sun ZFS Backup ApplianceThe Sun ZFS Backup Appliance
The Sun ZFS Backup Appliance
 
MySQL Enterprise Backup: Better Very Large Database Backup & Recovery and More!!
MySQL Enterprise Backup: Better Very Large Database Backup & Recovery and More!!MySQL Enterprise Backup: Better Very Large Database Backup & Recovery and More!!
MySQL Enterprise Backup: Better Very Large Database Backup & Recovery and More!!
 
MySQL Cloud Service Deep Dive
MySQL Cloud Service Deep DiveMySQL Cloud Service Deep Dive
MySQL Cloud Service Deep Dive
 
Backup_exadata_update
Backup_exadata_updateBackup_exadata_update
Backup_exadata_update
 
Oracle Storage a ochrana dat
Oracle Storage a ochrana datOracle Storage a ochrana dat
Oracle Storage a ochrana dat
 
Apouc 2014-enterprise-manager-12c
Apouc 2014-enterprise-manager-12cApouc 2014-enterprise-manager-12c
Apouc 2014-enterprise-manager-12c
 
Data protection for oracle databases
Data protection for oracle databasesData protection for oracle databases
Data protection for oracle databases
 
Developer day v2
Developer day v2Developer day v2
Developer day v2
 
Oracle EM12c Release 4 New Features!
Oracle EM12c Release 4 New Features!Oracle EM12c Release 4 New Features!
Oracle EM12c Release 4 New Features!
 
Kscope Not Your Father's Enterprise Manager
Kscope Not Your Father's Enterprise ManagerKscope Not Your Father's Enterprise Manager
Kscope Not Your Father's Enterprise Manager
 
Primavera p6 and the oracle rdbms - Oracle Primavera Collaborate 14
Primavera p6 and the oracle rdbms - Oracle Primavera Collaborate 14Primavera p6 and the oracle rdbms - Oracle Primavera Collaborate 14
Primavera p6 and the oracle rdbms - Oracle Primavera Collaborate 14
 
MySQL in OPC(Oracle Public Cloud)
MySQL in OPC(Oracle Public Cloud)MySQL in OPC(Oracle Public Cloud)
MySQL in OPC(Oracle Public Cloud)
 
Oracle Cloud Storage Service & Oracle Database Backup Cloud Service
Oracle Cloud Storage Service & Oracle Database Backup Cloud ServiceOracle Cloud Storage Service & Oracle Database Backup Cloud Service
Oracle Cloud Storage Service & Oracle Database Backup Cloud Service
 
BGOUG17: Cloudy with a chance of MySQL
BGOUG17: Cloudy with a chance of MySQLBGOUG17: Cloudy with a chance of MySQL
BGOUG17: Cloudy with a chance of MySQL
 
Still All on One Server: Perforce at Scale
Still All on One Server: Perforce at Scale Still All on One Server: Perforce at Scale
Still All on One Server: Perforce at Scale
 
C6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloud
C6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloudC6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloud
C6 oracles storage_strategy_from_databases_to_engineered_systems_to_cloud
 
Exadata 12c New Features RMOUG
Exadata 12c New Features RMOUGExadata 12c New Features RMOUG
Exadata 12c New Features RMOUG
 
Oracle Dataguard
Oracle DataguardOracle Dataguard
Oracle Dataguard
 
Oracle Cloud DBaaS
Oracle Cloud DBaaSOracle Cloud DBaaS
Oracle Cloud DBaaS
 
Top10 list planningpostgresdeployment.2014
Top10 list planningpostgresdeployment.2014Top10 list planningpostgresdeployment.2014
Top10 list planningpostgresdeployment.2014
 

Más de Ted Wennmark

Más de Ted Wennmark (10)

MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0MySQL NDB Cluster 8.0
MySQL NDB Cluster 8.0
 
Upgrade to MySQL 8.0!
Upgrade to MySQL 8.0!Upgrade to MySQL 8.0!
Upgrade to MySQL 8.0!
 
MySQL Performance - Best practices
MySQL Performance - Best practices MySQL Performance - Best practices
MySQL Performance - Best practices
 
01 upgrade to my sql8
01 upgrade to my sql8 01 upgrade to my sql8
01 upgrade to my sql8
 
MySQL as a Document Store
MySQL as a Document StoreMySQL as a Document Store
MySQL as a Document Store
 
Upgrade to MySQL 5.7 and latest news planned for MySQL 8
Upgrade to MySQL 5.7 and latest news planned for MySQL 8Upgrade to MySQL 5.7 and latest news planned for MySQL 8
Upgrade to MySQL 5.7 and latest news planned for MySQL 8
 
MySQL HA
MySQL HAMySQL HA
MySQL HA
 
MySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding for MySQLMySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding for MySQL
 
The MySQL Performance Schema & New SYS Schema
The MySQL Performance Schema & New SYS SchemaThe MySQL Performance Schema & New SYS Schema
The MySQL Performance Schema & New SYS Schema
 
MySQL@king
MySQL@kingMySQL@king
MySQL@king
 

Último

一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
pyhepag
 
一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理
cyebo
 
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotecAbortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理
cyebo
 
一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理
pyhepag
 
Fuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertaintyFuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertainty
RafigAliyev2
 
一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理
pyhepag
 
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
pyhepag
 

Último (20)

Generative AI for Trailblazers_ Unlock the Future of AI.pdf
Generative AI for Trailblazers_ Unlock the Future of AI.pdfGenerative AI for Trailblazers_ Unlock the Future of AI.pdf
Generative AI for Trailblazers_ Unlock the Future of AI.pdf
 
Pre-ProductionImproveddsfjgndflghtgg.pptx
Pre-ProductionImproveddsfjgndflghtgg.pptxPre-ProductionImproveddsfjgndflghtgg.pptx
Pre-ProductionImproveddsfjgndflghtgg.pptx
 
Artificial_General_Intelligence__storm_gen_article.pdf
Artificial_General_Intelligence__storm_gen_article.pdfArtificial_General_Intelligence__storm_gen_article.pdf
Artificial_General_Intelligence__storm_gen_article.pdf
 
basics of data science with application areas.pdf
basics of data science with application areas.pdfbasics of data science with application areas.pdf
basics of data science with application areas.pdf
 
How I opened a fake bank account and didn't go to prison
How I opened a fake bank account and didn't go to prisonHow I opened a fake bank account and didn't go to prison
How I opened a fake bank account and didn't go to prison
 
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
 
一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理一比一原版麦考瑞大学毕业证成绩单如何办理
一比一原版麦考瑞大学毕业证成绩单如何办理
 
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotecAbortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
 
Webinar One View, Multiple Systems No-Code Integration of Salesforce and ERPs
Webinar One View, Multiple Systems No-Code Integration of Salesforce and ERPsWebinar One View, Multiple Systems No-Code Integration of Salesforce and ERPs
Webinar One View, Multiple Systems No-Code Integration of Salesforce and ERPs
 
一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理
 
Data analytics courses in Nepal Presentation
Data analytics courses in Nepal PresentationData analytics courses in Nepal Presentation
Data analytics courses in Nepal Presentation
 
一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理一比一原版阿德莱德大学毕业证成绩单如何办理
一比一原版阿德莱德大学毕业证成绩单如何办理
 
Fuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertaintyFuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertainty
 
Atlantic Grupa Case Study (Mintec Data AI)
Atlantic Grupa Case Study (Mintec Data AI)Atlantic Grupa Case Study (Mintec Data AI)
Atlantic Grupa Case Study (Mintec Data AI)
 
一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理一比一原版西悉尼大学毕业证成绩单如何办理
一比一原版西悉尼大学毕业证成绩单如何办理
 
Easy and simple project file on mp online
Easy and simple project file on mp onlineEasy and simple project file on mp online
Easy and simple project file on mp online
 
2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group Meeting2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group Meeting
 
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
一比一原版(Monash毕业证书)莫纳什大学毕业证成绩单如何办理
 
2024 Q1 Tableau User Group Leader Quarterly Call
2024 Q1 Tableau User Group Leader Quarterly Call2024 Q1 Tableau User Group Leader Quarterly Call
2024 Q1 Tableau User Group Leader Quarterly Call
 
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflictSupply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
 

MySQL Enterprise Backup apr 2016

  • 1.
  • 2. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | MySQL Enterprise Backup Ted Wennmark, MySQL solution architect ted.wennmark@oracle.com Oracle Confidential –Internal/Restricted/Highly Restricted 2
  • 3. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Why backups? • Datais your most valuable IP. You hate to protect it from loss • DisasterRecovery • Hardware, Software, Developer or DBA error • Migration and Upgrades – Change Hardware • Create replica’ s for HA setup • Archival – requirements to keep data for X number of years • Move chunks of data • Setup Test Environments Oracle Confidential –Internal/Restricted/Highly Restricted 3
  • 4. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Backup and Recovery can be trickier than it appears Requires some fore thought and planning • How do you backup your critical production systems? • While servers are performing critical business functions • And downtown is not acceptable • Where negative performance impacts are not acceptable • Finding proper backup storage is critical Oracle Confidential –Internal/Restricted/Highly Restricted 4
  • 5. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | What you can use depends on what you are backing up • Size – A tiny table or a Massive Database • Activity – Is the Database very busy or it is an inactive database – Try not to overlap busy database with backups if possible – For logical you ‘’l get locking collisions – For physical the backup will be larger • It collects data to make everything consistent – this takes space • Recoverywill take longer – it must apply the data to make consistent. • Cost – Is the data within the database compressed? – Most databases are highly compressible– however if your database contains compressedcell data – don’t recompression won’t help and will slow things down Oracle Confidential –Internal/Restricted/Highly Restricted 5
  • 6. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Recovery • How fast do you need to recover? • Immediate – Replication • ASAP – Physicalis several orders of magnitude faster • Doesn’t matter (its Archival) – Then cost and size more of a factor • Doesn’t matter (its Logical) – Will be slower but flexibility is more important Oracle Confidential –Internal/Restricted/Highly Restricted 6
  • 7. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Cost/Benefit Do the math • Is it archived? – Writing to a media manager or tape – Writing to Cloud Storage • Long term disk or other media cost – Compressioncan save you $s Oracle Confidential –Internal/Restricted/Highly Restricted 7
  • 8. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | • Logical – New mysqlpump (included in 5.7) • A modern highly parallel data pump – Mysqldump – Mysqldbexport/import • Part of MySQL Utilities • Physical • MySQL Enterprise Backup (MEB) • Transportable Table Spaces • OS Backups – “Cold”File System Backups – Snapshots • For example LVM, other Filesystems or HW based • Continuous – Replicas (MySQL Replication) • Often with slave lag – Binlog Tools Oracle Confidential –Internal/Restricted/Highly Restricted 8 One size does Not fit all “Use Cases” Pick the right tool(s) for the job(s)
  • 9. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Logical Backups • Backup – Creates collection of SQL Statements used to recreate database objects (tables etc) and the data within them – Inserts statements – May include data in separate files saved in a cross platform format • Restore – Runs these SQL Statements to restore objects and the data Oracle Confidential –Internal/Restricted/Highly Restricted 9
  • 10. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Logical Backup • Advantages – Easy of use - simple commands allow you to easily backup and restore – Good for small database or tables – minimum impact on backup and restore performance – Flexibility – logical backup allows you to choose what you want to backup and not backup.Change the scripts to restore partially etc. – Cross Platform –works no matter the platform – Readability - Good assurance that database files are not corrupt - all the data is read and it is read using standard SQL queries. Oracle Confidential –Internal/Restricted/Highly Restricted 10
  • 11. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Logical Backup • Disadvantages – Not an online solution – write operations are locked while performing the backup, thereby blocking use of the database – Poor to VERY Poor performance – backup and especially restore times are very slow for larger databases( 1or more orders of magnitude) – Large Files – will be many times larger than actually database files – Not consistent unless you lock everything the database won’t necessarily be restored to a consistentstate – No incremental backup – all backups are full backups,can be time consuming and require more storage Oracle Confidential –Internal/Restricted/Highly Restricted 11
  • 12. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | • HOT, NON-Blocking for Innodb • Performance –faster for backups and faster for restore • Scalable – performance is near linear for larger databases. • Efficient –processed mostly run outside server • More compact backup files – up to 90% compression in some cases • Secure – supports AES 256 compression • Flexible – support for incremental backups, partial backups, backup compression, point in time recovery and more. • Many target supported directly – MediaManagers–Oracle Secure Backup – Cloud Storage– AES S3,OpenStackSwift – GeneralStreaming(pipe to SSH etc) • Archival Backups – suitable archival format for historical purposes • Consistent – delivers consistent point in time recovery Oracle Confidential –Internal/Restricted/Highly Restricted 12 Physical Backup (MEB) • Copy of the internal files that constitute the MySQL database • Restore Copy back Internal Files and Replay data changes to make data consistent.
  • 13. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | • FULL Logical Backups – Impractical in many situations • Logical RESTORE takes much longer – Typically2x of BACKUP time Oracle Confidential –Internal/Restricted/Highly Restricted 13 Performance with MySQL Enterprise Backup
  • 14. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | TransportableTablespace (MEB) • Copy and Move a MySQL Innodb Tablespace • Advantages – Fast • Runs at file level • Flexible – Can move one or more tablespaces – Instanceremains up when “restoring” a tablespace Oracle Confidential –Internal/Restricted/Highly Restricted 14
  • 15. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | To consider performance think of structure of a running backup – one way is like this Oracle Confidential –Internal/Restricted/Highly Restricted 15
  • 16. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | To consider performance think of structure of a running backup – or like this Oracle Confidential –Internal/Restricted/Highly Restricted 16
  • 17. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | To consider performance think of structure of a running backup – or like this Oracle Confidential –Internal/Restricted/Highly Restricted 17 MEB 4.0 now reports back with Tape ID
  • 18. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | To consider performance think of structure of a running backup – or like this Oracle Confidential –Internal/Restricted/Highly Restricted 18 Cloud Storage (S3, Swift))
  • 19. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Oracle Secure Backup (OSB) • Centralized Tape Backup Management Oracle Confidential –Internal/Restricted/Highly Restricted 19 • RMAN-Oracle Recovery Manager,MEB– MySQLEnterprise Backup,SBT – Oracle’sAPI for Integrationwith Media Managers
  • 20. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | What determines backup speed? The longest time Oracle Confidential –Internal/Restricted/Highly Restricted 20
  • 21. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | What determines backup speed? The longest time Oracle Confidential –Internal/Restricted/Highly Restricted 21
  • 22. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | What determines backup speed? The longest time Oracle Confidential –Internal/Restricted/Highly Restricted 22
  • 23. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | What determines backup speed? The longest Time Oracle Confidential –Internal/Restricted/Highly Restricted 23 Unlikely on modern systems
  • 24. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Too much Sharing – slows things down – Mostly IO Contention, At times CPU Oracle Confidential –Internal/Restricted/Highly Restricted 24 RISKY Lose database and database backupif storage systemfails And SLOW And has Side Effects
  • 25. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Improving backup speed Oracle Confidential –Internal/Restricted/Highly Restricted 25
  • 26. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Does Highest Compression=Higher Speed Not typically Oracle Confidential –Internal/Restricted/Highly Restricted 26
  • 27. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | MySQL Enterprise Backup is Truly Parallel Read, Write, Processing Oracle Confidential –Internal/Restricted/Highly Restricted 27
  • 28. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Selective backup with TTS • What is TTS, why better (in some cases) than normal partial backup Oracle Confidential –Internal/Restricted/Highly Restricted 28 • MySQL 5.6+ feature: Transportable • Table spaces – Online table portability: Import/Export • In MySQL 5.7 supports TTS per partition • MEB implements methods that – LimitedLocking time – Easy of use
  • 29. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Image or Directory backup and Performance • MySQL Enterprise Backup supports – Backup to a single image – a single file or streamed – Backup to a directory • In our testing confirms – Image is often a bit better – Performance advantage comes from combining different steps that you might otherwise have to perform in sequence • Going forward - Focus on image (a file) – Only supported for encryption, Cloud Storage, Media Managers.. – Image is simpler to manage Oracle Confidential –Internal/Restricted/Highly Restricted 30
  • 30. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | • Full Instance – Config/Settings • Selective – Leverages TTS – Great for large tables • Encryption – AES – required for sensitive data • Skip Unused Pages – Reduces space • Continuous progress – % Bytes, Status • Monitor disk space – Optional actions • Warn & Retry, Abort, Remove Oracle Confidential –Internal/Restricted/Highly Restricted 31 Other features MEB provides
  • 31. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Understanding your system • CPU load – Patterns – look at times of day – Load level – is it low or high – often DBs are low = 30% • IO load – Patterns – look at times of day – Architecture • IO rate – How fast can you read database files? – How fast can you write? – Run DD or other tools – whats you MB/sec? Oracle Confidential –Internal/Restricted/Highly Restricted 32
  • 32. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Backup Strategy • A comprehensive plan for backup and recovery Oracle Confidential –Internal/Restricted/Highly Restricted 34
  • 33. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Validate • No backup strategy is complete without validating backup Oracle Confidential –Internal/Restricted/Highly Restricted 35
  • 34. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | References • MySQL Enterprise Backup: Product Information – www.mysql.com/products/enterprise/backup.html • MySQL Enterprise Backup Team Blog – https://blogs.oracle.com/mysqlenterprisebackup/ • MySQL Enterprise Backup: Documentation – dev.mysql.com/doc/mysql-enterprisebackup/3.10/en/index.html • How Do I get it – https://edelivery.oracle.com • Support and patches (My Oracle Support = MOS) – https://support.oracle.com Oracle Confidential –Internal/Restricted/Highly Restricted 36
  • 35. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Thanks for Attending • You‟ll get the slides • Please don‟t hesitate to send us ideas, feedback, doc requests, blog requests, etc. • http://bugs.mysql.com/report.php • Directly through support • Blog Comments • Email Oracle Confidential –Internal/Restricted/Highly Restricted 37
  • 36. Copyright © 2014, Oracleand/orits affiliates. Allrights reserved. | Oracle Confidential –Internal/Restricted/Highly Restricted 38