SlideShare a Scribd company logo
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
Ad

More Related Content

What's hot (20)

Company report xinglian
Company report xinglianCompany report xinglian
Company report xinglian
Xinglian Liu
 
Data management
Data managementData management
Data management
RahulJoshi975765
 
(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 Outlook
James 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 2016
bzigman
 
Data Federation
Data FederationData Federation
Data Federation
Stephen Lahanas
 
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
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
Jack (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 Digital
sambiswal
 
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
James 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
 
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
Empowered Holdings, LLC
 
Big Data Platforms: An Overview
Big Data Platforms: An OverviewBig Data Platforms: An Overview
Big Data Platforms: An Overview
C. 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 Architecture
James Serra
 
Company report xinglian
Company report xinglianCompany report xinglian
Company report xinglian
Xinglian 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 Outlook
James 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 2016
bzigman
 
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
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
Jack (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 Digital
sambiswal
 
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
James 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 Overview
C. 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 Architecture
James Serra
 

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
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. 2015
Mario Beck
 
MySQL 5.7 what's new
MySQL 5.7 what's newMySQL 5.7 what's new
MySQL 5.7 what's new
Ricky Setyawan
 
MariaDB Galera Cluster
MariaDB Galera ClusterMariaDB Galera Cluster
MariaDB Galera Cluster
Abdul Manaf
 
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
OSSCube
 
My sqlstrategyroadmap
My sqlstrategyroadmapMy sqlstrategyroadmap
My sqlstrategyroadmap
slidethanks
 
MySQL Strategy&Roadmap
MySQL Strategy&RoadmapMySQL Strategy&Roadmap
MySQL Strategy&Roadmap
slidethanks
 
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
Sanjay Manwani
 
2010 12 mysql_clusteroverview
2010 12 mysql_clusteroverview2010 12 mysql_clusteroverview
2010 12 mysql_clusteroverview
Dimas 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.7
Olivier 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_monolith
Markus 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.pdf
Miguel Araújo
 
Intro to MySQL Master Slave Replication
Intro to MySQL Master Slave ReplicationIntro to MySQL Master Slave Replication
Intro to MySQL Master Slave Replication
satejsahu
 
My sql crashcourse_intro_kdl
My sql crashcourse_intro_kdlMy sql crashcourse_intro_kdl
My sql crashcourse_intro_kdl
sqlhjalp
 
MySQL Options in OpenStack
MySQL Options in OpenStackMySQL Options in OpenStack
MySQL Options in OpenStack
Tesora
 
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
Matt Lord
 
MySQL 5.6 Replication Webinar
MySQL 5.6 Replication WebinarMySQL 5.6 Replication Webinar
MySQL 5.6 Replication Webinar
Mark 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 sql
sssql
 
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 training
sssql
 
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. 2015
Mario Beck
 
MariaDB Galera Cluster
MariaDB Galera ClusterMariaDB Galera Cluster
MariaDB Galera Cluster
Abdul Manaf
 
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
OSSCube
 
My sqlstrategyroadmap
My sqlstrategyroadmapMy sqlstrategyroadmap
My sqlstrategyroadmap
slidethanks
 
MySQL Strategy&Roadmap
MySQL Strategy&RoadmapMySQL Strategy&Roadmap
MySQL Strategy&Roadmap
slidethanks
 
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
Sanjay Manwani
 
2010 12 mysql_clusteroverview
2010 12 mysql_clusteroverview2010 12 mysql_clusteroverview
2010 12 mysql_clusteroverview
Dimas 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.7
Olivier 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_monolith
Markus 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.pdf
Miguel Araújo
 
Intro to MySQL Master Slave Replication
Intro to MySQL Master Slave ReplicationIntro to MySQL Master Slave Replication
Intro to MySQL Master Slave Replication
satejsahu
 
My sql crashcourse_intro_kdl
My sql crashcourse_intro_kdlMy sql crashcourse_intro_kdl
My sql crashcourse_intro_kdl
sqlhjalp
 
MySQL Options in OpenStack
MySQL Options in OpenStackMySQL Options in OpenStack
MySQL Options in OpenStack
Tesora
 
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
Matt Lord
 
MySQL 5.6 Replication Webinar
MySQL 5.6 Replication WebinarMySQL 5.6 Replication Webinar
MySQL 5.6 Replication Webinar
Mark 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 sql
sssql
 
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 training
sssql
 
Ad

Recently uploaded (20)

Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Ad

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