SlideShare uma empresa Scribd logo
1 de 20
Baixar para ler offline
Experience with MySQL HA
solutions and Group Replication
Who am I ?
o Santhinesh Kumar Nagendran
o Currently working as Senior Database
Administrator @ Tesla Inc. Over 12 years
Industry experience in supporting
environments like healthcare, social
networking applications like AOL, IBIBO,
Sify etc. I primarily focus on Database
High availability and DB automations at
large scale.
Agenda
1. Why HA ?
2. HA Objectives
3. MySQL HA Solutions
4. Why MySQL GR ?
5. Implementation
6. Conclusion
Why HA ?
u Continuation of Services with minimal or no interruptions
u Improve Operations Standards by
u Hardware Upgrades ( Memory/CPU Upgrades )
u OS Security patches
u To meet application/Business/Customer SLAs
HA Objectives
v How much reliable is your HA solution ?
v Can we afford the complexity to fix issues caused by improper failover ?
v Cost associated with no/manual failover vs fixing unexpected improper failover ?
v Do we have the skill set to support the HA solution implemented
MySQL HA
Solutions
ü Master - Master Replication with HA proxy
ü MySQL MHA with Keepalived
ü MySQL MHA
ü InnodB Cluster
M - M Replication with HA proxy
S1
S2 S3
S1
S2 S3
crashed
HA2HA1
HA2HA1
F5 BigIP F5 BigIP
Master / RW
Slave1 / RO Slave2 / RO Master / RW Slave2 / RO
Application
R/W Traffic
Application
R/W Traffic
Application
RO Traffic
Application
RO Traffic
Users/App Users/App
M - M Replication with HA proxy
Good Bad
Seamlessly failover happened when
primary became inaccessible
Connections goes back to old primary if it
comes back online in read-write mode
New connections went to new master
without any user interruptions
Need to keep both the Master-Master
servers in read-write mode all the time
Read Write split using respective TCP
port
Very high probability to have accidental
writes on both the servers
Repointing of Replication to new master
Fixing data is a big mess
Ø Too Many HA proxy Servers to handle when deployed in large scale
Ø Not a cost effective as it needed 2 HA proxy servers for each 3 node clusters
Ø HA proxy is not technically designed for MySQL/Database alone
Ø Need to remove old server from the config file immediately after a failover
happens to avoid failback when the failed server comes back online.
Ø NON-DB components for customer to go through to reach the database
F5
HA
proxy
DB
Server
Existing Drawbacks and future Requirements
MySQL MHA with Keepalived
S1
S2 S3
S1
S2 S3
crashed
Alias to MHA VIP Alias to MHA VIP
Master / RW
Slave1 / RO Slave2 / RO Master / RW Slave2 / RO
Keepalived VIP
Keepalived Service should be running in Master and Candidate Masters
Keepalived VIP
MHA does failover by stopping
keepalived in old master
Users/App
Users/App
MySQL MHA with Keepalived
Good Bad
Seamlessly failover happened when primary
became inaccessible
MHA manager demon stops working to
avoid another failover so DBA is asked to
verify each failovers
New connections went to new master without
any user interruptions
Not a fully automatic solution it requires
necessary manual interventions
Corrupt server goes out of cluster by itself If the server goes unreachable due to
firewall issue
Keeps only one server in [ read—write mode ]
rest all the servers will be or should be in
read-only mode
Keepalived also fails over independently
Manual Failover is possible keeping existing
master alive or dead
Existing Drawbacks and future Requirements
Ø Non-Standard / Custom Monitoring required to monitor components and
failures
Ø Needed proper inventory and automations to support MHA clusters in large
scale
Ø Too many false failovers due to keepalived due to network glitches
Ø Too many components for customer to deal with in a HA setup
F5
Keepalived
MHA
DB
Server
MySQL MHA with F5
S1
S2 S3
S1
S2 S3
crashed
F5 BigIP
F5 BigIP
Master / RW
Slave1 / RO Slave2 / RO
Master / RW Slave2 / RO
F5 checks for read_only parameter
to be off to send traffic to prod F5 checks for read_only parameter
to be off to send traffic to prod
MHA does failover without any
other VIP involved
Users/App
Users/App
MySQL MHA with F5
Good Bad
Seamlessly failover happened when
primary became inaccessible
MHA manager demon stops working to avoid
another failover so its DBA JOB to verify each
failovers completely
F5 checks for server in read-write mode
New connections went to new master
without any user interruptions
Not a fully automatic solution it requires
necessary manual interventions
Corrupt server goes out of cluster by itself non standard / custom monitoring
components like mha_manager etc.
Keeps only one server in [ read—write
mode ] rest all the servers will be in read-
only mode.
Complicated Setup to support in large scale
Manual Failover is possible keeping
existing master alive or dead
Existing Drawbacks and future Requirements
Ø Non-Standard / Custom Monitoring required to alter failures
Ø Needed proper inventory and automations to support MHA clusters in large
scale
Ø Too many false failovers due to keepalived due to network glitches
Ø Too many components for customer to deal with in a HA setup
F5 MHA
DB
Server
S1S2 S3
F5 BigIP
primarysecondary Secondary
InnodB Cluster
RT2RT1
Read-Write
Read-OnlyRead-Only
3307 port
3306 port
Users/App
InnodB Cluster
Good NOTES
• Powered by mysql shell.
• mysqlsh makes setting innodb cluster
is extremely easy
Deafult user authentication plugin
change from mysql_native_password
(5.7) to caching_sha2_password (8.0)
Mysqlrouter servers can support multiple
innodb clusters which is a great relief
Replication between multi zonal clusters
can be challenging when a failover
happens
util.checkForServerUpgrade() makes DBAs
life so easy and saves hell lots of time
Can have replication between multiple
innodb clusters
Filtered multi-master replication
o Have lots of ways to monitoring
o Can get cluster status using mysql shell
o Can fetch the cluster status from performance_schema.
replication_group_members
o If we store the clusters is a proper inventory we can monitor respective clusters
and setup alerts for events like
o If a node gets out in a 3 node cluster then cluster status goes to OK_NO_TOLERANCE
o Can setup alerts when number of active group members are not equal to the number of
servers involved in that cluster as per inventory
How do you Monitor ?
Conclusion
o Group Replication has always been one of the best inhouse product for MySQL
o Empowered by Mysqlrouter and MySQL shell utilities
o One of the best and stable HA’s I have worked on till now.
EXPERIENCE WITH MYSQL HA SOLUTION AND GROUP REPLICATION

Mais conteúdo relacionado

Mais procurados

Efficient Performance Analysis and Tuning with MySQL Enterprise Monitor
Efficient Performance Analysis and Tuning with MySQL Enterprise MonitorEfficient Performance Analysis and Tuning with MySQL Enterprise Monitor
Efficient Performance Analysis and Tuning with MySQL Enterprise MonitorMark Matthews
 
Scaling Confluence Architecture: A Sneak Peek Under the Hood
Scaling Confluence Architecture: A Sneak Peek Under the HoodScaling Confluence Architecture: A Sneak Peek Under the Hood
Scaling Confluence Architecture: A Sneak Peek Under the HoodBhakti Mehta
 
Scalable Web Architectures: Common Patterns and Approaches - Web 2.0 Expo NYC
Scalable Web Architectures: Common Patterns and Approaches - Web 2.0 Expo NYCScalable Web Architectures: Common Patterns and Approaches - Web 2.0 Expo NYC
Scalable Web Architectures: Common Patterns and Approaches - Web 2.0 Expo NYCCal Henderson
 
MAKING MAGIC WITH ORACLE (Francisco Slide)
MAKING MAGIC WITH ORACLE (Francisco Slide)MAKING MAGIC WITH ORACLE (Francisco Slide)
MAKING MAGIC WITH ORACLE (Francisco Slide)TheGameZ
 
Setting up a free open source java e-commerce website
Setting up a free open source java e-commerce websiteSetting up a free open source java e-commerce website
Setting up a free open source java e-commerce websiteCsaba Toth
 
Securing oracle e-business suite 12.1 and 12.2 technology infrastructure
Securing oracle e-business suite 12.1 and 12.2 technology infrastructureSecuring oracle e-business suite 12.1 and 12.2 technology infrastructure
Securing oracle e-business suite 12.1 and 12.2 technology infrastructurevasuballa
 
Security of Oracle EBS - How I can Protect my System (UKOUG APPS 18 edition)
Security of Oracle EBS - How I can Protect my System (UKOUG APPS 18 edition)Security of Oracle EBS - How I can Protect my System (UKOUG APPS 18 edition)
Security of Oracle EBS - How I can Protect my System (UKOUG APPS 18 edition)Andrejs Prokopjevs
 
MongoDB World 2019: Why NBCUniversal Migrated to MongoDB Atlas
MongoDB World 2019: Why NBCUniversal Migrated to MongoDB AtlasMongoDB World 2019: Why NBCUniversal Migrated to MongoDB Atlas
MongoDB World 2019: Why NBCUniversal Migrated to MongoDB AtlasMongoDB
 
Microsoft Azure SQL Premium
Microsoft Azure SQL PremiumMicrosoft Azure SQL Premium
Microsoft Azure SQL PremiumTallan
 
Four Ways to Improve ASP .NET Performance and Scalability
 Four Ways to Improve ASP .NET Performance and Scalability Four Ways to Improve ASP .NET Performance and Scalability
Four Ways to Improve ASP .NET Performance and ScalabilityAlachisoft
 
Magento security best practices 2015
Magento security best practices 2015Magento security best practices 2015
Magento security best practices 2015Philippe Humeau
 
20160308 apex sso
20160308 apex sso20160308 apex sso
20160308 apex ssoMT AG
 
Exploiting Active Directory Administrator Insecurities
Exploiting Active Directory Administrator InsecuritiesExploiting Active Directory Administrator Insecurities
Exploiting Active Directory Administrator InsecuritiesPriyanka Aash
 
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...Niels de Bruijn
 
20160307 apex on_the_rocks
20160307 apex on_the_rocks20160307 apex on_the_rocks
20160307 apex on_the_rocksMT AG
 

Mais procurados (20)

Efficient Performance Analysis and Tuning with MySQL Enterprise Monitor
Efficient Performance Analysis and Tuning with MySQL Enterprise MonitorEfficient Performance Analysis and Tuning with MySQL Enterprise Monitor
Efficient Performance Analysis and Tuning with MySQL Enterprise Monitor
 
Devoxx2017
Devoxx2017Devoxx2017
Devoxx2017
 
Scaling Confluence Architecture: A Sneak Peek Under the Hood
Scaling Confluence Architecture: A Sneak Peek Under the HoodScaling Confluence Architecture: A Sneak Peek Under the Hood
Scaling Confluence Architecture: A Sneak Peek Under the Hood
 
Scalable Web Architectures: Common Patterns and Approaches - Web 2.0 Expo NYC
Scalable Web Architectures: Common Patterns and Approaches - Web 2.0 Expo NYCScalable Web Architectures: Common Patterns and Approaches - Web 2.0 Expo NYC
Scalable Web Architectures: Common Patterns and Approaches - Web 2.0 Expo NYC
 
XMPP Academy #1
XMPP Academy #1XMPP Academy #1
XMPP Academy #1
 
MAKING MAGIC WITH ORACLE (Francisco Slide)
MAKING MAGIC WITH ORACLE (Francisco Slide)MAKING MAGIC WITH ORACLE (Francisco Slide)
MAKING MAGIC WITH ORACLE (Francisco Slide)
 
Setting up a free open source java e-commerce website
Setting up a free open source java e-commerce websiteSetting up a free open source java e-commerce website
Setting up a free open source java e-commerce website
 
Securing oracle e-business suite 12.1 and 12.2 technology infrastructure
Securing oracle e-business suite 12.1 and 12.2 technology infrastructureSecuring oracle e-business suite 12.1 and 12.2 technology infrastructure
Securing oracle e-business suite 12.1 and 12.2 technology infrastructure
 
Security of Oracle EBS - How I can Protect my System (UKOUG APPS 18 edition)
Security of Oracle EBS - How I can Protect my System (UKOUG APPS 18 edition)Security of Oracle EBS - How I can Protect my System (UKOUG APPS 18 edition)
Security of Oracle EBS - How I can Protect my System (UKOUG APPS 18 edition)
 
MongoDB World 2019: Why NBCUniversal Migrated to MongoDB Atlas
MongoDB World 2019: Why NBCUniversal Migrated to MongoDB AtlasMongoDB World 2019: Why NBCUniversal Migrated to MongoDB Atlas
MongoDB World 2019: Why NBCUniversal Migrated to MongoDB Atlas
 
MySQL Tech Tour Nov, 2013
MySQL Tech Tour Nov, 2013MySQL Tech Tour Nov, 2013
MySQL Tech Tour Nov, 2013
 
Microsoft Azure SQL Premium
Microsoft Azure SQL PremiumMicrosoft Azure SQL Premium
Microsoft Azure SQL Premium
 
Four Ways to Improve ASP .NET Performance and Scalability
 Four Ways to Improve ASP .NET Performance and Scalability Four Ways to Improve ASP .NET Performance and Scalability
Four Ways to Improve ASP .NET Performance and Scalability
 
Magento security best practices 2015
Magento security best practices 2015Magento security best practices 2015
Magento security best practices 2015
 
20160308 apex sso
20160308 apex sso20160308 apex sso
20160308 apex sso
 
Dal deck
Dal deckDal deck
Dal deck
 
Lamp presentation
Lamp presentationLamp presentation
Lamp presentation
 
Exploiting Active Directory Administrator Insecurities
Exploiting Active Directory Administrator InsecuritiesExploiting Active Directory Administrator Insecurities
Exploiting Active Directory Administrator Insecurities
 
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
Single Sign-On for APEX applications based on Kerberos (Important: latest ver...
 
20160307 apex on_the_rocks
20160307 apex on_the_rocks20160307 apex on_the_rocks
20160307 apex on_the_rocks
 

Semelhante a EXPERIENCE WITH MYSQL HA SOLUTION AND GROUP REPLICATION

Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #2: Galera Cluster
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #2: Galera ClusterWebinar Slides: MySQL HA/DR/Geo-Scale - High Noon #2: Galera Cluster
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #2: Galera ClusterContinuent
 
Netherlands Tech Tour 02 - MySQL Fabric
Netherlands Tech Tour 02 -   MySQL FabricNetherlands Tech Tour 02 -   MySQL Fabric
Netherlands Tech Tour 02 - MySQL FabricMark Swarbrick
 
MariaDB High Availability
MariaDB High AvailabilityMariaDB High Availability
MariaDB High AvailabilityMariaDB plc
 
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed ServiceCloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed ServiceVMware Tanzu
 
PoC: Using a Group Communication System to improve MySQL Replication HA
PoC: Using a Group Communication System to improve MySQL Replication HAPoC: Using a Group Communication System to improve MySQL Replication HA
PoC: Using a Group Communication System to improve MySQL Replication HAUlf Wendel
 
Alta Disponibilidade no MySQL 5.7
Alta Disponibilidade no MySQL 5.7Alta Disponibilidade no MySQL 5.7
Alta Disponibilidade no MySQL 5.7MySQL Brasil
 
MySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated EnvironmentMySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated EnvironmentJean-François Gagné
 
MySQL High Availability Solutions - Feb 2015 webinar
MySQL High Availability Solutions - Feb 2015 webinarMySQL High Availability Solutions - Feb 2015 webinar
MySQL High Availability Solutions - Feb 2015 webinarAndrew Morgan
 
M|18 Choosing the Right High Availability Strategy for You
M|18 Choosing the Right High Availability Strategy for YouM|18 Choosing the Right High Availability Strategy for You
M|18 Choosing the Right High Availability Strategy for YouMariaDB plc
 
Continuent Tungsten - Scalable Saa S Data Management
Continuent Tungsten - Scalable Saa S Data ManagementContinuent Tungsten - Scalable Saa S Data Management
Continuent Tungsten - Scalable Saa S Data Managementguest2e11e8
 
Database failover from client perspective
Database failover from client perspectiveDatabase failover from client perspective
Database failover from client perspectivePriit Piipuu
 
High availability solution database mirroring
High availability solution database mirroringHigh availability solution database mirroring
High availability solution database mirroringMustafa EL-Masry
 
Webinar slides: Replication Topology Changes for MySQL and MariaDB
Webinar slides: Replication Topology Changes for MySQL and MariaDBWebinar slides: Replication Topology Changes for MySQL and MariaDB
Webinar slides: Replication Topology Changes for MySQL and MariaDBSeveralnines
 
200 million qps on commodity hardware : Getting started with MySQL Cluster 7.4
200 million qps on commodity hardware : Getting started with MySQL Cluster 7.4200 million qps on commodity hardware : Getting started with MySQL Cluster 7.4
200 million qps on commodity hardware : Getting started with MySQL Cluster 7.4Frazer Clement
 
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...Continuent
 
MySQL HA with PaceMaker
MySQL HA with  PaceMakerMySQL HA with  PaceMaker
MySQL HA with PaceMakerKris Buytaert
 
Become a MySQL DBA - webinar series - slides: Which High Availability solution?
Become a MySQL DBA - webinar series - slides: Which High Availability solution?Become a MySQL DBA - webinar series - slides: Which High Availability solution?
Become a MySQL DBA - webinar series - slides: Which High Availability solution?Severalnines
 
MySQL's NoSQL -- Texas Linuxfest August 22nd 2015
MySQL's NoSQL  -- Texas Linuxfest August 22nd 2015MySQL's NoSQL  -- Texas Linuxfest August 22nd 2015
MySQL's NoSQL -- Texas Linuxfest August 22nd 2015Dave Stokes
 
Comparing the TCO of HP NonStop with Oracle RAC
Comparing the TCO of HP NonStop with Oracle RACComparing the TCO of HP NonStop with Oracle RAC
Comparing the TCO of HP NonStop with Oracle RACThomas Burg
 
Choosing the right high availability strategy
Choosing the right high availability strategyChoosing the right high availability strategy
Choosing the right high availability strategyMariaDB plc
 

Semelhante a EXPERIENCE WITH MYSQL HA SOLUTION AND GROUP REPLICATION (20)

Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #2: Galera Cluster
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #2: Galera ClusterWebinar Slides: MySQL HA/DR/Geo-Scale - High Noon #2: Galera Cluster
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #2: Galera Cluster
 
Netherlands Tech Tour 02 - MySQL Fabric
Netherlands Tech Tour 02 -   MySQL FabricNetherlands Tech Tour 02 -   MySQL Fabric
Netherlands Tech Tour 02 - MySQL Fabric
 
MariaDB High Availability
MariaDB High AvailabilityMariaDB High Availability
MariaDB High Availability
 
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed ServiceCloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
Cloud-Native Patterns and the Benefits of MySQL as a Platform Managed Service
 
PoC: Using a Group Communication System to improve MySQL Replication HA
PoC: Using a Group Communication System to improve MySQL Replication HAPoC: Using a Group Communication System to improve MySQL Replication HA
PoC: Using a Group Communication System to improve MySQL Replication HA
 
Alta Disponibilidade no MySQL 5.7
Alta Disponibilidade no MySQL 5.7Alta Disponibilidade no MySQL 5.7
Alta Disponibilidade no MySQL 5.7
 
MySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated EnvironmentMySQL Scalability and Reliability for Replicated Environment
MySQL Scalability and Reliability for Replicated Environment
 
MySQL High Availability Solutions - Feb 2015 webinar
MySQL High Availability Solutions - Feb 2015 webinarMySQL High Availability Solutions - Feb 2015 webinar
MySQL High Availability Solutions - Feb 2015 webinar
 
M|18 Choosing the Right High Availability Strategy for You
M|18 Choosing the Right High Availability Strategy for YouM|18 Choosing the Right High Availability Strategy for You
M|18 Choosing the Right High Availability Strategy for You
 
Continuent Tungsten - Scalable Saa S Data Management
Continuent Tungsten - Scalable Saa S Data ManagementContinuent Tungsten - Scalable Saa S Data Management
Continuent Tungsten - Scalable Saa S Data Management
 
Database failover from client perspective
Database failover from client perspectiveDatabase failover from client perspective
Database failover from client perspective
 
High availability solution database mirroring
High availability solution database mirroringHigh availability solution database mirroring
High availability solution database mirroring
 
Webinar slides: Replication Topology Changes for MySQL and MariaDB
Webinar slides: Replication Topology Changes for MySQL and MariaDBWebinar slides: Replication Topology Changes for MySQL and MariaDB
Webinar slides: Replication Topology Changes for MySQL and MariaDB
 
200 million qps on commodity hardware : Getting started with MySQL Cluster 7.4
200 million qps on commodity hardware : Getting started with MySQL Cluster 7.4200 million qps on commodity hardware : Getting started with MySQL Cluster 7.4
200 million qps on commodity hardware : Getting started with MySQL Cluster 7.4
 
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
Marketing Automation at Scale: How Marketo Solved Key Data Management Challen...
 
MySQL HA with PaceMaker
MySQL HA with  PaceMakerMySQL HA with  PaceMaker
MySQL HA with PaceMaker
 
Become a MySQL DBA - webinar series - slides: Which High Availability solution?
Become a MySQL DBA - webinar series - slides: Which High Availability solution?Become a MySQL DBA - webinar series - slides: Which High Availability solution?
Become a MySQL DBA - webinar series - slides: Which High Availability solution?
 
MySQL's NoSQL -- Texas Linuxfest August 22nd 2015
MySQL's NoSQL  -- Texas Linuxfest August 22nd 2015MySQL's NoSQL  -- Texas Linuxfest August 22nd 2015
MySQL's NoSQL -- Texas Linuxfest August 22nd 2015
 
Comparing the TCO of HP NonStop with Oracle RAC
Comparing the TCO of HP NonStop with Oracle RACComparing the TCO of HP NonStop with Oracle RAC
Comparing the TCO of HP NonStop with Oracle RAC
 
Choosing the right high availability strategy
Choosing the right high availability strategyChoosing the right high availability strategy
Choosing the right high availability strategy
 

Mais de Mysql User Camp

Json improvements in my sql 8.0
Json improvements in my sql 8.0  Json improvements in my sql 8.0
Json improvements in my sql 8.0 Mysql User Camp
 
MySQL docker with demo by Ramana Yeruva
MySQL docker with demo by Ramana YeruvaMySQL docker with demo by Ramana Yeruva
MySQL docker with demo by Ramana YeruvaMysql User Camp
 
Customer Experience: InnoDB Cluster Implementation by PR Karthik
Customer Experience: InnoDB Cluster Implementation by PR KarthikCustomer Experience: InnoDB Cluster Implementation by PR Karthik
Customer Experience: InnoDB Cluster Implementation by PR KarthikMysql User Camp
 
Optimizer overviewoow2014
Optimizer overviewoow2014Optimizer overviewoow2014
Optimizer overviewoow2014Mysql User Camp
 
Multi source replication pdf
Multi source replication pdfMulti source replication pdf
Multi source replication pdfMysql User Camp
 
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL SupportMysql User Camp
 
Mysql User Camp : 20-June-14 : Mysql Fabric
Mysql User Camp : 20-June-14 : Mysql FabricMysql User Camp : 20-June-14 : Mysql Fabric
Mysql User Camp : 20-June-14 : Mysql FabricMysql User Camp
 

Mais de Mysql User Camp (10)

Json improvements in my sql 8.0
Json improvements in my sql 8.0  Json improvements in my sql 8.0
Json improvements in my sql 8.0
 
Doc store
Doc storeDoc store
Doc store
 
My sql8 innodb_cluster
My sql8 innodb_clusterMy sql8 innodb_cluster
My sql8 innodb_cluster
 
Mysql8for blr usercamp
Mysql8for blr usercampMysql8for blr usercamp
Mysql8for blr usercamp
 
MySQL docker with demo by Ramana Yeruva
MySQL docker with demo by Ramana YeruvaMySQL docker with demo by Ramana Yeruva
MySQL docker with demo by Ramana Yeruva
 
Customer Experience: InnoDB Cluster Implementation by PR Karthik
Customer Experience: InnoDB Cluster Implementation by PR KarthikCustomer Experience: InnoDB Cluster Implementation by PR Karthik
Customer Experience: InnoDB Cluster Implementation by PR Karthik
 
Optimizer overviewoow2014
Optimizer overviewoow2014Optimizer overviewoow2014
Optimizer overviewoow2014
 
Multi source replication pdf
Multi source replication pdfMulti source replication pdf
Multi source replication pdf
 
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 
Mysql User Camp : 20-June-14 : Mysql Fabric
Mysql User Camp : 20-June-14 : Mysql FabricMysql User Camp : 20-June-14 : Mysql Fabric
Mysql User Camp : 20-June-14 : Mysql Fabric
 

Último

Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 

Último (20)

Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 

EXPERIENCE WITH MYSQL HA SOLUTION AND GROUP REPLICATION

  • 1. Experience with MySQL HA solutions and Group Replication
  • 2. Who am I ? o Santhinesh Kumar Nagendran o Currently working as Senior Database Administrator @ Tesla Inc. Over 12 years Industry experience in supporting environments like healthcare, social networking applications like AOL, IBIBO, Sify etc. I primarily focus on Database High availability and DB automations at large scale.
  • 3. Agenda 1. Why HA ? 2. HA Objectives 3. MySQL HA Solutions 4. Why MySQL GR ? 5. Implementation 6. Conclusion
  • 4. Why HA ? u Continuation of Services with minimal or no interruptions u Improve Operations Standards by u Hardware Upgrades ( Memory/CPU Upgrades ) u OS Security patches u To meet application/Business/Customer SLAs
  • 5. HA Objectives v How much reliable is your HA solution ? v Can we afford the complexity to fix issues caused by improper failover ? v Cost associated with no/manual failover vs fixing unexpected improper failover ? v Do we have the skill set to support the HA solution implemented
  • 6. MySQL HA Solutions ü Master - Master Replication with HA proxy ü MySQL MHA with Keepalived ü MySQL MHA ü InnodB Cluster
  • 7. M - M Replication with HA proxy S1 S2 S3 S1 S2 S3 crashed HA2HA1 HA2HA1 F5 BigIP F5 BigIP Master / RW Slave1 / RO Slave2 / RO Master / RW Slave2 / RO Application R/W Traffic Application R/W Traffic Application RO Traffic Application RO Traffic Users/App Users/App
  • 8. M - M Replication with HA proxy Good Bad Seamlessly failover happened when primary became inaccessible Connections goes back to old primary if it comes back online in read-write mode New connections went to new master without any user interruptions Need to keep both the Master-Master servers in read-write mode all the time Read Write split using respective TCP port Very high probability to have accidental writes on both the servers Repointing of Replication to new master Fixing data is a big mess
  • 9. Ø Too Many HA proxy Servers to handle when deployed in large scale Ø Not a cost effective as it needed 2 HA proxy servers for each 3 node clusters Ø HA proxy is not technically designed for MySQL/Database alone Ø Need to remove old server from the config file immediately after a failover happens to avoid failback when the failed server comes back online. Ø NON-DB components for customer to go through to reach the database F5 HA proxy DB Server Existing Drawbacks and future Requirements
  • 10. MySQL MHA with Keepalived S1 S2 S3 S1 S2 S3 crashed Alias to MHA VIP Alias to MHA VIP Master / RW Slave1 / RO Slave2 / RO Master / RW Slave2 / RO Keepalived VIP Keepalived Service should be running in Master and Candidate Masters Keepalived VIP MHA does failover by stopping keepalived in old master Users/App Users/App
  • 11. MySQL MHA with Keepalived Good Bad Seamlessly failover happened when primary became inaccessible MHA manager demon stops working to avoid another failover so DBA is asked to verify each failovers New connections went to new master without any user interruptions Not a fully automatic solution it requires necessary manual interventions Corrupt server goes out of cluster by itself If the server goes unreachable due to firewall issue Keeps only one server in [ read—write mode ] rest all the servers will be or should be in read-only mode Keepalived also fails over independently Manual Failover is possible keeping existing master alive or dead
  • 12. Existing Drawbacks and future Requirements Ø Non-Standard / Custom Monitoring required to monitor components and failures Ø Needed proper inventory and automations to support MHA clusters in large scale Ø Too many false failovers due to keepalived due to network glitches Ø Too many components for customer to deal with in a HA setup F5 Keepalived MHA DB Server
  • 13. MySQL MHA with F5 S1 S2 S3 S1 S2 S3 crashed F5 BigIP F5 BigIP Master / RW Slave1 / RO Slave2 / RO Master / RW Slave2 / RO F5 checks for read_only parameter to be off to send traffic to prod F5 checks for read_only parameter to be off to send traffic to prod MHA does failover without any other VIP involved Users/App Users/App
  • 14. MySQL MHA with F5 Good Bad Seamlessly failover happened when primary became inaccessible MHA manager demon stops working to avoid another failover so its DBA JOB to verify each failovers completely F5 checks for server in read-write mode New connections went to new master without any user interruptions Not a fully automatic solution it requires necessary manual interventions Corrupt server goes out of cluster by itself non standard / custom monitoring components like mha_manager etc. Keeps only one server in [ read—write mode ] rest all the servers will be in read- only mode. Complicated Setup to support in large scale Manual Failover is possible keeping existing master alive or dead
  • 15. Existing Drawbacks and future Requirements Ø Non-Standard / Custom Monitoring required to alter failures Ø Needed proper inventory and automations to support MHA clusters in large scale Ø Too many false failovers due to keepalived due to network glitches Ø Too many components for customer to deal with in a HA setup F5 MHA DB Server
  • 16. S1S2 S3 F5 BigIP primarysecondary Secondary InnodB Cluster RT2RT1 Read-Write Read-OnlyRead-Only 3307 port 3306 port Users/App
  • 17. InnodB Cluster Good NOTES • Powered by mysql shell. • mysqlsh makes setting innodb cluster is extremely easy Deafult user authentication plugin change from mysql_native_password (5.7) to caching_sha2_password (8.0) Mysqlrouter servers can support multiple innodb clusters which is a great relief Replication between multi zonal clusters can be challenging when a failover happens util.checkForServerUpgrade() makes DBAs life so easy and saves hell lots of time Can have replication between multiple innodb clusters Filtered multi-master replication
  • 18. o Have lots of ways to monitoring o Can get cluster status using mysql shell o Can fetch the cluster status from performance_schema. replication_group_members o If we store the clusters is a proper inventory we can monitor respective clusters and setup alerts for events like o If a node gets out in a 3 node cluster then cluster status goes to OK_NO_TOLERANCE o Can setup alerts when number of active group members are not equal to the number of servers involved in that cluster as per inventory How do you Monitor ?
  • 19. Conclusion o Group Replication has always been one of the best inhouse product for MySQL o Empowered by Mysqlrouter and MySQL shell utilities o One of the best and stable HA’s I have worked on till now.