SlideShare a Scribd company logo
1 of 15
Disaster Recovery Site
Implementation
Configuration and Parameter Settings
MySQL
Author
• Astute corporate resource with 10+ years of corporate experience with emphasis on database management, programming, software
development, testing, web technologies and product improvement for corporations. Combines expert software and database management
expertise with strong qualifications in Software, Data Engineering & Information Management.
Concurrently, manage all the database functions for the current company. Industry experience in Information Technology. Strong
understanding of the complex challenges in Software Development and problem troubleshooting. An expert on identifying and solving
problems, gaining new business contacts, reducing costs, coordinating staff and evaluating performance. Professional traits include;
problem-solving, decision-making, time management, multitasking, analytical thinking, effective communication, and computer
competencies.
• Oracle Certified Professional OCA on 9i
• Oracle Certified Professional OCP on 9i
• Oracle Certified Professional OCP on 10g
• Oracle Certified Professional OCP on 11g
• Oracle Certified Professional OCP on MySQL 5
• Oracle Certified Professional OCE on 10g managing on Linux
• Oracle Certified Professional OCP on E-Business Apps DBA
• Microsoft Certified Technology Specialist on SQL Server 2005
• Microsoft Certified Technology Specialist on SQL Server 2008
• Microsoft Certified IT Professional on SQL Server 2005
• Microsoft Certified IT Professional on SQL Server 2008
• Sun Certified Java Programmer 5.0
• IBM Certified Database(DB2) Associate 9.0
• ITIL V3 Foundation Certified
• COBIT 5 Foundation Certified
• PRINCE2 Foundation Certified
By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
Agenda
• MySQLAvailable HA Solutions
• MySQL Replication
• Types of Replication
• How ReplicationWorks
• Replication requirement
• Replication-MasterConfiguration
• Replication-SlaveConfiguration my.cnf
• Benefits of Replication
• Network upload bandwidth requirement
• Application download bandwidth requirement
By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
MySQL Available HA Solutions
•Operating System Cluster
• Active/Passive OS level clustering such as
• Windows Cluster
• Red Hat Cluster
• Oracle
• Sun Solaris
•Operating System Replication
• DRBD – Distributed Replication block device
• Software based HA – support synchronous and asynchronous mirroring of
data from one node to another node
• www.drdb.org
By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
MySQL Available HA Solutions
• MySQL Cluster Carrier Grade
• MySQLCluster enables users to meet the database challenges of next generation web, cloud, and
communications services with uncompromising scalability, uptime and agility
• Expensive solution
• Minimal downtime
• MySQL Fabric
• MySQL Fabric is an extensible framework for managing farms of MySQL Servers.Two primary
features have been implemented - HighAvailability (HA) and scaling out using data sharding.These
features can be used in isolation or in combination
• MySQL Replication
• MySQL Replication enables users to cost-effectively deliver application performance, scalability and
high availability. Many of the world's most trafficked web properties like eBay, Facebook, Tumblr,
Twitter andYouTube rely on MySQL Replication to serve hundreds of millions of users and handle
exponential growth
• Supported synchronous and asynchronous
• Available with Enterprise Edition
By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
MySQL Replication
• MySQL’s built-in replication is the foundation for building large, high-
performance applications on top of MySQL, using the so-called “scale-
out” architecture
• The basic problem replication solves is keeping one server’s data
synchronized with another’s. Many replicas can connect to a single
master and stay in sync with it, and a replica can, in turn, act as a
master.You can arrange masters and replicas in many different ways
By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
Types of Replication
• MySQL supports two kinds of replication: statement-based replication and
row-based replication.
• Statement-based (or “logical”) replication has been available since MySQL 3.23.
• Row-based replication was added in MySQL 5.1.
• Both kinds work by recording changes in the master’s binary log and replaying
the log on the replica
By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
How Replication works
• How MySQL actually replicates data. At a high level, replication is a simple
three-part process:
• The master records changes to its data in its binary log. (These records are called
binary log events.)
• The replica copies the master’s binary log events to its relay log.
• The replica replays the events in the relay log, applying the changes to its own
data
By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
Replication Configuration
• Setting up replication is a fairly simple process in MySQL, but there are many
variations on the basic steps, depending on the scenario. The most basic scenario is a
freshly installed master and replica. At a high level, the process is as follows
• Set up replication accounts on each server.
• Configure the master and replica.
• Instruct the replica to connect to and replicate from the master
By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
Replication Configuration
•Creating Replication Accounts.
• mysql> GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO
<user>@'192.168.0.%' IDENTIFIED BY ‘jbhsyed';
•Configuring the Master and Replica (Slave )
• Binary logs must have to enable
• Server Id must be assigned , master and other slaves have unique server id
By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
Replica ( Slave ) Configuration
• mysql> CHANGE MASTERTO MASTER_HOST=‘ServerM',
-> MASTER_USER=‘replicationuser',
-> MASTER_PASSWORD=‘jbhsyed',
-> MASTER_LOG_FILE='mysql-bin.000001',
-> MASTER_LOG_POS=0;
By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
Replica (Slave) –my.cnf
• Parameters
• Relay_log
• The relay log consists of the events read from the binary log of the master and written
by the slave I/O thread. Events in the relay log are executed on the slave as part of the
SQL thread.
• Log_slave_updates
• Normally, a slave does not log to its own binary log any updates that are received from a
master server.This option tells the slave to log the updates performed by its SQL thread
to its own binary log.
• Read_only
• Make the server read-only, so that it processes only retrievals and blocks updates
• Relay_log_purge
• Disable or enable automatic purging of relay logs as soon as they are no longer needed.
The default value is 1 (enabled).This is a global variable that can be changed dynamically
with SETGLOBAL relay_log_purge = N
• --Master-info-file
• The name to use for the file in which the slave records information about the master.
The default name ismaster.info in the data directory
• --Relay-log-info-file
• The name to use for the file in which the slave records information about the relay logs.
The default name isrelay-log.info in the data directory.
By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
Benefits of Replication
• Data Distribution
• It is useful to maintaining a copy of data in geographically distant locations.
• Load Balancing
• Balance the load of your read queries with the help of Replicas.
• Backups
• Backup more than one locations
• High Availability and Failover
• If Primary Site will be down then backup site is ready to take connection and the downtime will be minimize.
• Testing of Releases
• Test can be perform on the Replica.
By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
Network Upload bandwidth
• Network upload bandwidth requirement
• It depends on the
• Binary log size.
•Configure minimum size of binary logs as possible.
•Separate disk or partition for binary logs.
• MonitoringTool (Optional)
•Workbench and other tools which is using from the Primary Site to the Backup
Site.
• Etc..
By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
Network Download bandwidth
• Calculation for Network Download bandwidth requirement factors
• Application Server on the Primary Site
• Largest Row in the Database
• (Maximum Row Size *Total Number of Records fetch at a time) * Number of
Concurrent Requests.
• Application Server on the DR Site
• Maximum data packet size at a time * Number of concurrent requests.
By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F

More Related Content

What's hot

Company report xinglian
Company report xinglianCompany report xinglian
Company report xinglianXinglian Liu
 
(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...
(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...
(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...Hiram Fleitas León
 
Data Warehousing Trends, Best Practices, and Future Outlook
Data Warehousing Trends, Best Practices, and Future OutlookData Warehousing Trends, Best Practices, and Future Outlook
Data Warehousing Trends, Best Practices, and Future OutlookJames Serra
 
How to select a modern data warehouse and get the most out of it?
How to select a modern data warehouse and get the most out of it?How to select a modern data warehouse and get the most out of it?
How to select a modern data warehouse and get the most out of it?Slim Baltagi
 
Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]shuwutong
 
BarbaraZigmanResume 2016
BarbaraZigmanResume 2016BarbaraZigmanResume 2016
BarbaraZigmanResume 2016bzigman
 
Modern-Data-Warehouses-In-The-Cloud-Use-Cases-Slim-Baltagi
Modern-Data-Warehouses-In-The-Cloud-Use-Cases-Slim-BaltagiModern-Data-Warehouses-In-The-Cloud-Use-Cases-Slim-Baltagi
Modern-Data-Warehouses-In-The-Cloud-Use-Cases-Slim-BaltagiSlim Baltagi
 
Piranha vs. mammoth predator appliances that chew up big data
Piranha vs. mammoth   predator appliances that chew up big dataPiranha vs. mammoth   predator appliances that chew up big data
Piranha vs. mammoth predator appliances that chew up big dataJack (Yaakov) Bezalel
 
Data Lakehouse, Data Mesh, and Data Fabric (r1)
Data Lakehouse, Data Mesh, and Data Fabric (r1)Data Lakehouse, Data Mesh, and Data Fabric (r1)
Data Lakehouse, Data Mesh, and Data Fabric (r1)James Serra
 
Building a Modern Data Architecture by Ben Sharma at Strata + Hadoop World Sa...
Building a Modern Data Architecture by Ben Sharma at Strata + Hadoop World Sa...Building a Modern Data Architecture by Ben Sharma at Strata + Hadoop World Sa...
Building a Modern Data Architecture by Ben Sharma at Strata + Hadoop World Sa...Zaloni
 
Enterprise Data Lake - Scalable Digital
Enterprise Data Lake - Scalable DigitalEnterprise Data Lake - Scalable Digital
Enterprise Data Lake - Scalable Digitalsambiswal
 
Big data architectures and the data lake
Big data architectures and the data lakeBig data architectures and the data lake
Big data architectures and the data lakeJames Serra
 
How Apache Hadoop is Revolutionizing Business Intelligence and Data Analytics...
How Apache Hadoop is Revolutionizing Business Intelligence and Data Analytics...How Apache Hadoop is Revolutionizing Business Intelligence and Data Analytics...
How Apache Hadoop is Revolutionizing Business Intelligence and Data Analytics...Amr Awadallah
 
Kave Salamatian, Universite de Savoie and Eiko Yoneki, University of Cambridg...
Kave Salamatian, Universite de Savoie and Eiko Yoneki, University of Cambridg...Kave Salamatian, Universite de Savoie and Eiko Yoneki, University of Cambridg...
Kave Salamatian, Universite de Savoie and Eiko Yoneki, University of Cambridg...i_scienceEU
 
Big Data Platforms: An Overview
Big Data Platforms: An OverviewBig Data Platforms: An Overview
Big Data Platforms: An OverviewC. Scyphers
 
Logical Data Lakes: From Single Purpose to Multipurpose Data Lakes (APAC)
Logical Data Lakes: From Single Purpose to Multipurpose Data Lakes (APAC)Logical Data Lakes: From Single Purpose to Multipurpose Data Lakes (APAC)
Logical Data Lakes: From Single Purpose to Multipurpose Data Lakes (APAC)Denodo
 
Building an Effective Data Warehouse Architecture
Building an Effective Data Warehouse ArchitectureBuilding an Effective Data Warehouse Architecture
Building an Effective Data Warehouse ArchitectureJames Serra
 

What's hot (20)

Company report xinglian
Company report xinglianCompany report xinglian
Company report xinglian
 
Data management
Data managementData management
Data management
 
(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...
(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...
(BI Advanced) Hiram Fleitas - SQL Server Machine Learning Predict Sentiment O...
 
Data Warehousing Trends, Best Practices, and Future Outlook
Data Warehousing Trends, Best Practices, and Future OutlookData Warehousing Trends, Best Practices, and Future Outlook
Data Warehousing Trends, Best Practices, and Future Outlook
 
How to select a modern data warehouse and get the most out of it?
How to select a modern data warehouse and get the most out of it?How to select a modern data warehouse and get the most out of it?
How to select a modern data warehouse and get the most out of it?
 
Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]
 
BarbaraZigmanResume 2016
BarbaraZigmanResume 2016BarbaraZigmanResume 2016
BarbaraZigmanResume 2016
 
Data Federation
Data FederationData Federation
Data Federation
 
Modern-Data-Warehouses-In-The-Cloud-Use-Cases-Slim-Baltagi
Modern-Data-Warehouses-In-The-Cloud-Use-Cases-Slim-BaltagiModern-Data-Warehouses-In-The-Cloud-Use-Cases-Slim-Baltagi
Modern-Data-Warehouses-In-The-Cloud-Use-Cases-Slim-Baltagi
 
Piranha vs. mammoth predator appliances that chew up big data
Piranha vs. mammoth   predator appliances that chew up big dataPiranha vs. mammoth   predator appliances that chew up big data
Piranha vs. mammoth predator appliances that chew up big data
 
Data Lakehouse, Data Mesh, and Data Fabric (r1)
Data Lakehouse, Data Mesh, and Data Fabric (r1)Data Lakehouse, Data Mesh, and Data Fabric (r1)
Data Lakehouse, Data Mesh, and Data Fabric (r1)
 
Building a Modern Data Architecture by Ben Sharma at Strata + Hadoop World Sa...
Building a Modern Data Architecture by Ben Sharma at Strata + Hadoop World Sa...Building a Modern Data Architecture by Ben Sharma at Strata + Hadoop World Sa...
Building a Modern Data Architecture by Ben Sharma at Strata + Hadoop World Sa...
 
Enterprise Data Lake - Scalable Digital
Enterprise Data Lake - Scalable DigitalEnterprise Data Lake - Scalable Digital
Enterprise Data Lake - Scalable Digital
 
Big data architectures and the data lake
Big data architectures and the data lakeBig data architectures and the data lake
Big data architectures and the data lake
 
How Apache Hadoop is Revolutionizing Business Intelligence and Data Analytics...
How Apache Hadoop is Revolutionizing Business Intelligence and Data Analytics...How Apache Hadoop is Revolutionizing Business Intelligence and Data Analytics...
How Apache Hadoop is Revolutionizing Business Intelligence and Data Analytics...
 
Kave Salamatian, Universite de Savoie and Eiko Yoneki, University of Cambridg...
Kave Salamatian, Universite de Savoie and Eiko Yoneki, University of Cambridg...Kave Salamatian, Universite de Savoie and Eiko Yoneki, University of Cambridg...
Kave Salamatian, Universite de Savoie and Eiko Yoneki, University of Cambridg...
 
Data vault what's Next: Part 2
Data vault what's Next: Part 2Data vault what's Next: Part 2
Data vault what's Next: Part 2
 
Big Data Platforms: An Overview
Big Data Platforms: An OverviewBig Data Platforms: An Overview
Big Data Platforms: An Overview
 
Logical Data Lakes: From Single Purpose to Multipurpose Data Lakes (APAC)
Logical Data Lakes: From Single Purpose to Multipurpose Data Lakes (APAC)Logical Data Lakes: From Single Purpose to Multipurpose Data Lakes (APAC)
Logical Data Lakes: From Single Purpose to Multipurpose Data Lakes (APAC)
 
Building an Effective Data Warehouse Architecture
Building an Effective Data Warehouse ArchitectureBuilding an Effective Data Warehouse Architecture
Building an Effective Data Warehouse Architecture
 

Similar to Disaster Recovery Site Implementation with MySQL

Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale NetApp
 
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. 2015Mario Beck
 
Maria DB Galera Cluster for High Availability
Maria DB Galera Cluster for High AvailabilityMaria DB Galera Cluster for High Availability
Maria DB Galera Cluster for High AvailabilityOSSCube
 
MariaDB Galera Cluster
MariaDB Galera ClusterMariaDB Galera Cluster
MariaDB Galera ClusterAbdul Manaf
 
My sqlstrategyroadmap
My sqlstrategyroadmapMy sqlstrategyroadmap
My sqlstrategyroadmapslidethanks
 
MySQL Strategy&Roadmap
MySQL Strategy&RoadmapMySQL Strategy&Roadmap
MySQL Strategy&Roadmapslidethanks
 
MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014Sanjay Manwani
 
2010 12 mysql_clusteroverview
2010 12 mysql_clusteroverview2010 12 mysql_clusteroverview
2010 12 mysql_clusteroverviewDimas Prasetyo
 
What's New in MySQL 5.7
What's New in MySQL 5.7What's New in MySQL 5.7
What's New in MySQL 5.7Olivier DASINI
 
Stay productive_while_slicing_up_the_monolith
Stay productive_while_slicing_up_the_monolithStay productive_while_slicing_up_the_monolith
Stay productive_while_slicing_up_the_monolithMarkus Eisele
 
Deep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdf
Deep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdfDeep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdf
Deep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdfMiguel Araújo
 
Intro to MySQL Master Slave Replication
Intro to MySQL Master Slave ReplicationIntro to MySQL Master Slave Replication
Intro to MySQL Master Slave Replicationsatejsahu
 
My sql crashcourse_intro_kdl
My sql crashcourse_intro_kdlMy sql crashcourse_intro_kdl
My sql crashcourse_intro_kdlsqlhjalp
 
MySQL Options in OpenStack
MySQL Options in OpenStackMySQL Options in OpenStack
MySQL Options in OpenStackTesora
 
OpenStack Days East -- MySQL Options in OpenStack
OpenStack Days East -- MySQL Options in OpenStackOpenStack Days East -- MySQL Options in OpenStack
OpenStack Days East -- MySQL Options in OpenStackMatt Lord
 
MySQL 5.6 Replication Webinar
MySQL 5.6 Replication WebinarMySQL 5.6 Replication Webinar
MySQL 5.6 Replication WebinarMark Swarbrick
 
Project oriented online realtime training on sql
Project oriented online realtime training on sqlProject oriented online realtime training on sql
Project oriented online realtime training on sqlsssql
 
MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)
MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)
MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)Andrew Morgan
 
Professional sql server dba online training
Professional sql server dba online trainingProfessional sql server dba online training
Professional sql server dba online trainingsssql
 

Similar to Disaster Recovery Site Implementation with MySQL (20)

Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale
 
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
 
MySQL 5.7 what's new
MySQL 5.7 what's newMySQL 5.7 what's new
MySQL 5.7 what's new
 
Maria DB Galera Cluster for High Availability
Maria DB Galera Cluster for High AvailabilityMaria DB Galera Cluster for High Availability
Maria DB Galera Cluster for High Availability
 
MariaDB Galera Cluster
MariaDB Galera ClusterMariaDB Galera Cluster
MariaDB Galera Cluster
 
My sqlstrategyroadmap
My sqlstrategyroadmapMy sqlstrategyroadmap
My sqlstrategyroadmap
 
MySQL Strategy&Roadmap
MySQL Strategy&RoadmapMySQL Strategy&Roadmap
MySQL Strategy&Roadmap
 
MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014
 
2010 12 mysql_clusteroverview
2010 12 mysql_clusteroverview2010 12 mysql_clusteroverview
2010 12 mysql_clusteroverview
 
What's New in MySQL 5.7
What's New in MySQL 5.7What's New in MySQL 5.7
What's New in MySQL 5.7
 
Stay productive_while_slicing_up_the_monolith
Stay productive_while_slicing_up_the_monolithStay productive_while_slicing_up_the_monolith
Stay productive_while_slicing_up_the_monolith
 
Deep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdf
Deep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdfDeep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdf
Deep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdf
 
Intro to MySQL Master Slave Replication
Intro to MySQL Master Slave ReplicationIntro to MySQL Master Slave Replication
Intro to MySQL Master Slave Replication
 
My sql crashcourse_intro_kdl
My sql crashcourse_intro_kdlMy sql crashcourse_intro_kdl
My sql crashcourse_intro_kdl
 
MySQL Options in OpenStack
MySQL Options in OpenStackMySQL Options in OpenStack
MySQL Options in OpenStack
 
OpenStack Days East -- MySQL Options in OpenStack
OpenStack Days East -- MySQL Options in OpenStackOpenStack Days East -- MySQL Options in OpenStack
OpenStack Days East -- MySQL Options in OpenStack
 
MySQL 5.6 Replication Webinar
MySQL 5.6 Replication WebinarMySQL 5.6 Replication Webinar
MySQL 5.6 Replication Webinar
 
Project oriented online realtime training on sql
Project oriented online realtime training on sqlProject oriented online realtime training on sql
Project oriented online realtime training on sql
 
MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)
MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)
MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)
 
Professional sql server dba online training
Professional sql server dba online trainingProfessional sql server dba online training
Professional sql server dba online training
 

Recently uploaded

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 

Recently uploaded (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 

Disaster Recovery Site Implementation with MySQL

  • 2. Author • Astute corporate resource with 10+ years of corporate experience with emphasis on database management, programming, software development, testing, web technologies and product improvement for corporations. Combines expert software and database management expertise with strong qualifications in Software, Data Engineering & Information Management. Concurrently, manage all the database functions for the current company. Industry experience in Information Technology. Strong understanding of the complex challenges in Software Development and problem troubleshooting. An expert on identifying and solving problems, gaining new business contacts, reducing costs, coordinating staff and evaluating performance. Professional traits include; problem-solving, decision-making, time management, multitasking, analytical thinking, effective communication, and computer competencies. • Oracle Certified Professional OCA on 9i • Oracle Certified Professional OCP on 9i • Oracle Certified Professional OCP on 10g • Oracle Certified Professional OCP on 11g • Oracle Certified Professional OCP on MySQL 5 • Oracle Certified Professional OCE on 10g managing on Linux • Oracle Certified Professional OCP on E-Business Apps DBA • Microsoft Certified Technology Specialist on SQL Server 2005 • Microsoft Certified Technology Specialist on SQL Server 2008 • Microsoft Certified IT Professional on SQL Server 2005 • Microsoft Certified IT Professional on SQL Server 2008 • Sun Certified Java Programmer 5.0 • IBM Certified Database(DB2) Associate 9.0 • ITIL V3 Foundation Certified • COBIT 5 Foundation Certified • PRINCE2 Foundation Certified By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
  • 3. Agenda • MySQLAvailable HA Solutions • MySQL Replication • Types of Replication • How ReplicationWorks • Replication requirement • Replication-MasterConfiguration • Replication-SlaveConfiguration my.cnf • Benefits of Replication • Network upload bandwidth requirement • Application download bandwidth requirement By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
  • 4. MySQL Available HA Solutions •Operating System Cluster • Active/Passive OS level clustering such as • Windows Cluster • Red Hat Cluster • Oracle • Sun Solaris •Operating System Replication • DRBD – Distributed Replication block device • Software based HA – support synchronous and asynchronous mirroring of data from one node to another node • www.drdb.org By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
  • 5. MySQL Available HA Solutions • MySQL Cluster Carrier Grade • MySQLCluster enables users to meet the database challenges of next generation web, cloud, and communications services with uncompromising scalability, uptime and agility • Expensive solution • Minimal downtime • MySQL Fabric • MySQL Fabric is an extensible framework for managing farms of MySQL Servers.Two primary features have been implemented - HighAvailability (HA) and scaling out using data sharding.These features can be used in isolation or in combination • MySQL Replication • MySQL Replication enables users to cost-effectively deliver application performance, scalability and high availability. Many of the world's most trafficked web properties like eBay, Facebook, Tumblr, Twitter andYouTube rely on MySQL Replication to serve hundreds of millions of users and handle exponential growth • Supported synchronous and asynchronous • Available with Enterprise Edition By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
  • 6. MySQL Replication • MySQL’s built-in replication is the foundation for building large, high- performance applications on top of MySQL, using the so-called “scale- out” architecture • The basic problem replication solves is keeping one server’s data synchronized with another’s. Many replicas can connect to a single master and stay in sync with it, and a replica can, in turn, act as a master.You can arrange masters and replicas in many different ways By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
  • 7. Types of Replication • MySQL supports two kinds of replication: statement-based replication and row-based replication. • Statement-based (or “logical”) replication has been available since MySQL 3.23. • Row-based replication was added in MySQL 5.1. • Both kinds work by recording changes in the master’s binary log and replaying the log on the replica By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
  • 8. How Replication works • How MySQL actually replicates data. At a high level, replication is a simple three-part process: • The master records changes to its data in its binary log. (These records are called binary log events.) • The replica copies the master’s binary log events to its relay log. • The replica replays the events in the relay log, applying the changes to its own data By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
  • 9. Replication Configuration • Setting up replication is a fairly simple process in MySQL, but there are many variations on the basic steps, depending on the scenario. The most basic scenario is a freshly installed master and replica. At a high level, the process is as follows • Set up replication accounts on each server. • Configure the master and replica. • Instruct the replica to connect to and replicate from the master By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
  • 10. Replication Configuration •Creating Replication Accounts. • mysql> GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO <user>@'192.168.0.%' IDENTIFIED BY ‘jbhsyed'; •Configuring the Master and Replica (Slave ) • Binary logs must have to enable • Server Id must be assigned , master and other slaves have unique server id By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
  • 11. Replica ( Slave ) Configuration • mysql> CHANGE MASTERTO MASTER_HOST=‘ServerM', -> MASTER_USER=‘replicationuser', -> MASTER_PASSWORD=‘jbhsyed', -> MASTER_LOG_FILE='mysql-bin.000001', -> MASTER_LOG_POS=0; By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
  • 12. Replica (Slave) –my.cnf • Parameters • Relay_log • The relay log consists of the events read from the binary log of the master and written by the slave I/O thread. Events in the relay log are executed on the slave as part of the SQL thread. • Log_slave_updates • Normally, a slave does not log to its own binary log any updates that are received from a master server.This option tells the slave to log the updates performed by its SQL thread to its own binary log. • Read_only • Make the server read-only, so that it processes only retrievals and blocks updates • Relay_log_purge • Disable or enable automatic purging of relay logs as soon as they are no longer needed. The default value is 1 (enabled).This is a global variable that can be changed dynamically with SETGLOBAL relay_log_purge = N • --Master-info-file • The name to use for the file in which the slave records information about the master. The default name ismaster.info in the data directory • --Relay-log-info-file • The name to use for the file in which the slave records information about the relay logs. The default name isrelay-log.info in the data directory. By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
  • 13. Benefits of Replication • Data Distribution • It is useful to maintaining a copy of data in geographically distant locations. • Load Balancing • Balance the load of your read queries with the help of Replicas. • Backups • Backup more than one locations • High Availability and Failover • If Primary Site will be down then backup site is ready to take connection and the downtime will be minimize. • Testing of Releases • Test can be perform on the Replica. By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
  • 14. Network Upload bandwidth • Network upload bandwidth requirement • It depends on the • Binary log size. •Configure minimum size of binary logs as possible. •Separate disk or partition for binary logs. • MonitoringTool (Optional) •Workbench and other tools which is using from the Primary Site to the Backup Site. • Etc.. By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F
  • 15. Network Download bandwidth • Calculation for Network Download bandwidth requirement factors • Application Server on the Primary Site • Largest Row in the Database • (Maximum Row Size *Total Number of Records fetch at a time) * Number of Concurrent Requests. • Application Server on the DR Site • Maximum data packet size at a time * Number of concurrent requests. By JBH Syed | BSCS | MSDIEM | MCTS | MCITP | OCA | OCP | OCE | SCJP | ITILv3 | PRINCE2 | COBIT5F