SlideShare a Scribd company logo
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
MySQL Router
Prasad Vasudevan
Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
Safe Harbor Statement
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 3
The following is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, and timing of any features or
functionality described for Oracle’s products remains at the sole discretion of Oracle.
Program
Agenda
Introduction to MySQL Router
Connection Routing
InnoDB Cluster
Metadata cache Routing
Demo
1
2
3
4
5
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 4
Program
Agenda
Introduction to MySQL Router
Connection Routing
InnoDB Cluster
Metadata cache Routing
Demo
1
2
3
4
5
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 5
MySQL Router: Need ?
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 6
•High availability
– On server failure, the application should connect to proper server
– Not desirable for the application to handle this
• Load balancing
– In a HA system, efficiency is increased using more resources
– Helps to handle traffic properly
MySQL Router: Key Features
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 7
•Provides transparent routing between application and
backend MySQL servers
•Pluggable Architecture
– Allows MySQL developers to easily extend the product with
additional features
– Allows users to create their own custom plugins
•Provides High availability and Load balancing
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 8
Program
Agenda
Introduction to MySQL Router
Connection Routing
InnoDB Cluster
Metadata cache Routing
Demo
1
2
3
4
5
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 9
Connection Routing
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 10
• Forwards MySQL packets to backend server without
inspecting or modifying them
• Achieved with routing plugin
• Routing strategy :
– First available
– Round robin
Connection Routing : Example
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 11
Connection Routing : Configuration
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 12
Connection Routing : Start Routing
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 13
Program
Agenda
Introduction to MySQL Router
Connection Routing
InnoDB Cluster
Metadata cache Routing
Demo
1
2
3
4
5
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 14
InnoDB Cluster : Introduction
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 15
• Provides complete HA solution for MySQL
• MySQL Shell enables to easily configure and administer MySQL
server instances to function as an InnoDB Cluster
• Servers run MySQL Group Replication :
– Replicate data
– Built-in failover
InnoDB Cluster : How to ?
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 16
• MySQL Shell includes Admin API which is accessed through the
dba global variable and its associated methods
• The methods allow to deploy, configure and administer InnoDB
clusters
• Shell provides two scripting language modes, JavaScript and
Python, in addition to SQL mode
– Default mode : JavaScript
– Switch modes issuing js , py, sql
InnoDB Cluster : How to ?
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 17
InnoDB Cluster : How to ?
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 18
InnoDB Cluster : Overview
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 19
Program
Agenda
Introduction to MySQL Router
Connection Routing
InnoDB Cluster
Metadata cache Routing
Demo
1
2
3
4
5
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 20
Metadata cache Routing : Introduction
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 21
• Provides transparent client routing, load balancing and failover
to InnoDB clusters
• Achieved with metadata_cache plugin
• Router uses metadata_cache plugin to retrieve InnoDB cluster’s
metadata periodically
•In the event of server failure, cluster adjusts the topology and
Router detects this change
Metadata cache Routing : How to ?
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 22
• Using --bootstrap option, Router retrieves the InnoDB cluster
metadata and automatically creates a configuration file
• Generated Router configuration by default creates TCP ports which
can be used to connect to cluster
• Additionally, sockets to connect, can be created using
--conf-use-sockets option while bootstrapping
• Ports, Sockets for both MySQL Protocol and X Protocol created
Metadata cache Routing : Configuration
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 23
• Bootstrap example :
•Configuration file generated is automatically generated at
/home/prasad/dir/mysqlrouter.conf
Metadata cache Routing : Configuration
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 24
Metadata cache Routing : Configuration
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 25
Metadata cache Routing : Configuration
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 26
Metadata cache Routing : Start Routing
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 27
Metadata cache Routing : Key Features
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 28
• User doesn’t need to be aware of the topology information and
details of all servers
• Routing will be proper :
– In the event of failover
– When new servers get added to the cluster
Program
Agenda
Introduction to MySQL Router
Connection Routing
InnoDB Cluster
Metadata cache Routing
Demo
1
2
3
4
5
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 29
THANK YOU!
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 30
My sql router

More Related Content

What's hot

The Oracle Autonomous Database
The Oracle Autonomous DatabaseThe Oracle Autonomous Database
The Oracle Autonomous Database
Connor McDonald
 
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
 
Using MySQL in the Cloud
Using MySQL in the CloudUsing MySQL in the Cloud
Using MySQL in the Cloud
Matt Lord
 
MySQL InnoDB Cluster: High Availability Made Easy!
MySQL InnoDB Cluster: High Availability Made Easy!MySQL InnoDB Cluster: High Availability Made Easy!
MySQL InnoDB Cluster: High Availability Made Easy!
Vittorio Cioe
 
Writing powerful stored procedures in PL/SQL
Writing powerful stored procedures in PL/SQLWriting powerful stored procedures in PL/SQL
Writing powerful stored procedures in PL/SQL
MariaDB plc
 
Data stream with cruise control
Data stream with cruise controlData stream with cruise control
Data stream with cruise control
Bill Liu
 
MySQL Intro JSON NoSQL
MySQL Intro JSON NoSQLMySQL Intro JSON NoSQL
MySQL Intro JSON NoSQL
Mark Swarbrick
 
MySQL 5.7 Replication News
MySQL 5.7 Replication News MySQL 5.7 Replication News
MySQL 5.7 Replication News
Ted Wennmark
 
OSB Exception Handling Logging - OFM Canberra September 2014
OSB Exception Handling Logging - OFM Canberra September 2014OSB Exception Handling Logging - OFM Canberra September 2014
OSB Exception Handling Logging - OFM Canberra September 2014
Joelith
 
NoSQL no MySQL 5.7
NoSQL no MySQL 5.7NoSQL no MySQL 5.7
NoSQL no MySQL 5.7
MySQL Brasil
 
Oracle OpenWorld - Getting started with MySQL Cluster
Oracle OpenWorld - Getting started with MySQL ClusterOracle OpenWorld - Getting started with MySQL Cluster
Oracle OpenWorld - Getting started with MySQL Cluster
Benedita Paúl Vasconcelos
 
MySQL 8.0, what's new ? - Forum PHP 2018
MySQL 8.0, what's new ? - Forum PHP 2018MySQL 8.0, what's new ? - Forum PHP 2018
MySQL 8.0, what's new ? - Forum PHP 2018
Olivier DASINI
 
Oracle virtualbox basic to rac attack
Oracle virtualbox basic to rac attackOracle virtualbox basic to rac attack
Oracle virtualbox basic to rac attack
Bobby Curtis
 
Upgrading to my sql 8.0
Upgrading to my sql 8.0Upgrading to my sql 8.0
Upgrading to my sql 8.0
Ståle Deraas
 
Enabling digital transformation with MySQL
Enabling digital transformation with MySQLEnabling digital transformation with MySQL
Enabling digital transformation with MySQL
MySQL Brasil
 
Alta Disponibilidade no MySQL 5.7
Alta Disponibilidade no MySQL 5.7Alta Disponibilidade no MySQL 5.7
Alta Disponibilidade no MySQL 5.7
MySQL Brasil
 
Hit Refresh with Oracle GoldenGate Microservices
Hit Refresh with Oracle GoldenGate MicroservicesHit Refresh with Oracle GoldenGate Microservices
Hit Refresh with Oracle GoldenGate Microservices
Bobby Curtis
 
MySQL 5.6, news in 5.7 and our HA options
MySQL 5.6, news in 5.7 and our HA optionsMySQL 5.6, news in 5.7 and our HA options
MySQL 5.6, news in 5.7 and our HA options
Ted Wennmark
 
Oracle GoldenGate on Docker
Oracle GoldenGate on DockerOracle GoldenGate on Docker
Oracle GoldenGate on Docker
Bobby Curtis
 
Hannes end-of-the-router-tnc17
Hannes end-of-the-router-tnc17Hannes end-of-the-router-tnc17
Hannes end-of-the-router-tnc17
Hannes Gredler
 

What's hot (20)

The Oracle Autonomous Database
The Oracle Autonomous DatabaseThe Oracle Autonomous Database
The Oracle Autonomous Database
 
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
 
Using MySQL in the Cloud
Using MySQL in the CloudUsing MySQL in the Cloud
Using MySQL in the Cloud
 
MySQL InnoDB Cluster: High Availability Made Easy!
MySQL InnoDB Cluster: High Availability Made Easy!MySQL InnoDB Cluster: High Availability Made Easy!
MySQL InnoDB Cluster: High Availability Made Easy!
 
Writing powerful stored procedures in PL/SQL
Writing powerful stored procedures in PL/SQLWriting powerful stored procedures in PL/SQL
Writing powerful stored procedures in PL/SQL
 
Data stream with cruise control
Data stream with cruise controlData stream with cruise control
Data stream with cruise control
 
MySQL Intro JSON NoSQL
MySQL Intro JSON NoSQLMySQL Intro JSON NoSQL
MySQL Intro JSON NoSQL
 
MySQL 5.7 Replication News
MySQL 5.7 Replication News MySQL 5.7 Replication News
MySQL 5.7 Replication News
 
OSB Exception Handling Logging - OFM Canberra September 2014
OSB Exception Handling Logging - OFM Canberra September 2014OSB Exception Handling Logging - OFM Canberra September 2014
OSB Exception Handling Logging - OFM Canberra September 2014
 
NoSQL no MySQL 5.7
NoSQL no MySQL 5.7NoSQL no MySQL 5.7
NoSQL no MySQL 5.7
 
Oracle OpenWorld - Getting started with MySQL Cluster
Oracle OpenWorld - Getting started with MySQL ClusterOracle OpenWorld - Getting started with MySQL Cluster
Oracle OpenWorld - Getting started with MySQL Cluster
 
MySQL 8.0, what's new ? - Forum PHP 2018
MySQL 8.0, what's new ? - Forum PHP 2018MySQL 8.0, what's new ? - Forum PHP 2018
MySQL 8.0, what's new ? - Forum PHP 2018
 
Oracle virtualbox basic to rac attack
Oracle virtualbox basic to rac attackOracle virtualbox basic to rac attack
Oracle virtualbox basic to rac attack
 
Upgrading to my sql 8.0
Upgrading to my sql 8.0Upgrading to my sql 8.0
Upgrading to my sql 8.0
 
Enabling digital transformation with MySQL
Enabling digital transformation with MySQLEnabling digital transformation with MySQL
Enabling digital transformation with MySQL
 
Alta Disponibilidade no MySQL 5.7
Alta Disponibilidade no MySQL 5.7Alta Disponibilidade no MySQL 5.7
Alta Disponibilidade no MySQL 5.7
 
Hit Refresh with Oracle GoldenGate Microservices
Hit Refresh with Oracle GoldenGate MicroservicesHit Refresh with Oracle GoldenGate Microservices
Hit Refresh with Oracle GoldenGate Microservices
 
MySQL 5.6, news in 5.7 and our HA options
MySQL 5.6, news in 5.7 and our HA optionsMySQL 5.6, news in 5.7 and our HA options
MySQL 5.6, news in 5.7 and our HA options
 
Oracle GoldenGate on Docker
Oracle GoldenGate on DockerOracle GoldenGate on Docker
Oracle GoldenGate on Docker
 
Hannes end-of-the-router-tnc17
Hannes end-of-the-router-tnc17Hannes end-of-the-router-tnc17
Hannes end-of-the-router-tnc17
 

Similar to My sql router

MySQL High Availability -- InnoDB Clusters
MySQL High Availability -- InnoDB ClustersMySQL High Availability -- InnoDB Clusters
MySQL High Availability -- InnoDB Clusters
Matt Lord
 
MySQL HA
MySQL HAMySQL HA
MySQL HA
Ted Wennmark
 
My sql8 innodb_cluster
My sql8 innodb_clusterMy sql8 innodb_cluster
My sql8 innodb_cluster
Mysql User Camp
 
MySQL London Tech Tour March 2015 - MySQL Fabric
MySQL London Tech Tour March 2015 - MySQL FabricMySQL London Tech Tour March 2015 - MySQL Fabric
MySQL London Tech Tour March 2015 - MySQL Fabric
Mark Swarbrick
 
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
 
InnoDb Vs NDB Cluster
InnoDb Vs NDB ClusterInnoDb Vs NDB Cluster
InnoDb Vs NDB Cluster
Mark Swarbrick
 
MySQL Fabric
MySQL FabricMySQL Fabric
MySQL Fabric
Mark Swarbrick
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQL
Ted Wennmark
 
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
 
20200613 my sql-ha-deployment
20200613 my sql-ha-deployment20200613 my sql-ha-deployment
20200613 my sql-ha-deployment
Ivan Ma
 
MySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB ClusterMySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB Cluster
Mario Beck
 
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB ClusterMySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
Olivier DASINI
 
Netherlands Tech Tour 02 - MySQL Fabric
Netherlands Tech Tour 02 -   MySQL FabricNetherlands Tech Tour 02 -   MySQL Fabric
Netherlands Tech Tour 02 - MySQL Fabric
Mark Swarbrick
 
MySQL in oracle_public_cloud
MySQL in oracle_public_cloudMySQL in oracle_public_cloud
MySQL in oracle_public_cloud
OracleMySQL
 
MySQL Router - Explore The Secrets (MySQL Belgian Days 2024)
MySQL Router - Explore The Secrets (MySQL Belgian Days 2024)MySQL Router - Explore The Secrets (MySQL Belgian Days 2024)
MySQL Router - Explore The Secrets (MySQL Belgian Days 2024)
Miguel Araújo
 
MySQL in oracle public cloud
MySQL in oracle public cloudMySQL in oracle public cloud
MySQL in oracle public cloud
Mandy Ang
 
My sql fabric webinar v1.1
My sql fabric webinar v1.1My sql fabric webinar v1.1
My sql fabric webinar v1.1
Ricky Setyawan
 
TechEvent 2019: Create a Private Database Cloud in the Public Cloud using the...
TechEvent 2019: Create a Private Database Cloud in the Public Cloud using the...TechEvent 2019: Create a Private Database Cloud in the Public Cloud using the...
TechEvent 2019: Create a Private Database Cloud in the Public Cloud using the...
Trivadis
 
MySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding for MySQLMySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding for MySQL
Ted Wennmark
 
MySQL Shell/AdminAPI - MySQL Architectures Made Easy For All!
MySQL Shell/AdminAPI - MySQL Architectures Made Easy For All!MySQL Shell/AdminAPI - MySQL Architectures Made Easy For All!
MySQL Shell/AdminAPI - MySQL Architectures Made Easy For All!
Miguel Araújo
 

Similar to My sql router (20)

MySQL High Availability -- InnoDB Clusters
MySQL High Availability -- InnoDB ClustersMySQL High Availability -- InnoDB Clusters
MySQL High Availability -- InnoDB Clusters
 
MySQL HA
MySQL HAMySQL HA
MySQL HA
 
My sql8 innodb_cluster
My sql8 innodb_clusterMy sql8 innodb_cluster
My sql8 innodb_cluster
 
MySQL London Tech Tour March 2015 - MySQL Fabric
MySQL London Tech Tour March 2015 - MySQL FabricMySQL London Tech Tour March 2015 - MySQL Fabric
MySQL London Tech Tour March 2015 - MySQL Fabric
 
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
 
InnoDb Vs NDB Cluster
InnoDb Vs NDB ClusterInnoDb Vs NDB Cluster
InnoDb Vs NDB Cluster
 
MySQL Fabric
MySQL FabricMySQL Fabric
MySQL Fabric
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQL
 
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
 
20200613 my sql-ha-deployment
20200613 my sql-ha-deployment20200613 my sql-ha-deployment
20200613 my sql-ha-deployment
 
MySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB ClusterMySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB Cluster
 
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB ClusterMySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
 
Netherlands Tech Tour 02 - MySQL Fabric
Netherlands Tech Tour 02 -   MySQL FabricNetherlands Tech Tour 02 -   MySQL Fabric
Netherlands Tech Tour 02 - MySQL Fabric
 
MySQL in oracle_public_cloud
MySQL in oracle_public_cloudMySQL in oracle_public_cloud
MySQL in oracle_public_cloud
 
MySQL Router - Explore The Secrets (MySQL Belgian Days 2024)
MySQL Router - Explore The Secrets (MySQL Belgian Days 2024)MySQL Router - Explore The Secrets (MySQL Belgian Days 2024)
MySQL Router - Explore The Secrets (MySQL Belgian Days 2024)
 
MySQL in oracle public cloud
MySQL in oracle public cloudMySQL in oracle public cloud
MySQL in oracle public cloud
 
My sql fabric webinar v1.1
My sql fabric webinar v1.1My sql fabric webinar v1.1
My sql fabric webinar v1.1
 
TechEvent 2019: Create a Private Database Cloud in the Public Cloud using the...
TechEvent 2019: Create a Private Database Cloud in the Public Cloud using the...TechEvent 2019: Create a Private Database Cloud in the Public Cloud using the...
TechEvent 2019: Create a Private Database Cloud in the Public Cloud using the...
 
MySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding for MySQLMySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding for MySQL
 
MySQL Shell/AdminAPI - MySQL Architectures Made Easy For All!
MySQL Shell/AdminAPI - MySQL Architectures Made Easy For All!MySQL Shell/AdminAPI - MySQL Architectures Made Easy For All!
MySQL Shell/AdminAPI - MySQL Architectures Made Easy For All!
 

Recently uploaded

AI in customer support Use cases solutions development and implementation.pdf
AI in customer support Use cases solutions development and implementation.pdfAI in customer support Use cases solutions development and implementation.pdf
AI in customer support Use cases solutions development and implementation.pdf
mahaffeycheryld
 
Beckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview PresentationBeckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview Presentation
VanTuDuong1
 
Impartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 StandardImpartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 Standard
MuhammadJazib15
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
Kamal Acharya
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
PreethaV16
 
Transformers design and coooling methods
Transformers design and coooling methodsTransformers design and coooling methods
Transformers design and coooling methods
Roger Rozario
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
Paris Salesforce Developer Group
 
OOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming languageOOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming language
PreethaV16
 
Call Girls Chennai +91-8824825030 Vip Call Girls Chennai
Call Girls Chennai +91-8824825030 Vip Call Girls ChennaiCall Girls Chennai +91-8824825030 Vip Call Girls Chennai
Call Girls Chennai +91-8824825030 Vip Call Girls Chennai
paraasingh12 #V08
 
Introduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.pptIntroduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.ppt
Dwarkadas J Sanghvi College of Engineering
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
harshapolam10
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
Divyanshu
 
This study Examines the Effectiveness of Talent Procurement through the Imple...
This study Examines the Effectiveness of Talent Procurement through the Imple...This study Examines the Effectiveness of Talent Procurement through the Imple...
This study Examines the Effectiveness of Talent Procurement through the Imple...
DharmaBanothu
 
AN INTRODUCTION OF AI & SEARCHING TECHIQUES
AN INTRODUCTION OF AI & SEARCHING TECHIQUESAN INTRODUCTION OF AI & SEARCHING TECHIQUES
AN INTRODUCTION OF AI & SEARCHING TECHIQUES
drshikhapandey2022
 
Ericsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.pptEricsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.ppt
wafawafa52
 
Sri Guru Hargobind Ji - Bandi Chor Guru.pdf
Sri Guru Hargobind Ji - Bandi Chor Guru.pdfSri Guru Hargobind Ji - Bandi Chor Guru.pdf
Sri Guru Hargobind Ji - Bandi Chor Guru.pdf
Balvir Singh
 
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
ijseajournal
 
Digital Image Processing Unit -2 Notes complete
Digital Image Processing Unit -2 Notes completeDigital Image Processing Unit -2 Notes complete
Digital Image Processing Unit -2 Notes complete
shubhamsaraswat8740
 
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdfAsymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
felixwold
 
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
sydezfe
 

Recently uploaded (20)

AI in customer support Use cases solutions development and implementation.pdf
AI in customer support Use cases solutions development and implementation.pdfAI in customer support Use cases solutions development and implementation.pdf
AI in customer support Use cases solutions development and implementation.pdf
 
Beckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview PresentationBeckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview Presentation
 
Impartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 StandardImpartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 Standard
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
 
Transformers design and coooling methods
Transformers design and coooling methodsTransformers design and coooling methods
Transformers design and coooling methods
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
 
OOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming languageOOPS_Lab_Manual - programs using C++ programming language
OOPS_Lab_Manual - programs using C++ programming language
 
Call Girls Chennai +91-8824825030 Vip Call Girls Chennai
Call Girls Chennai +91-8824825030 Vip Call Girls ChennaiCall Girls Chennai +91-8824825030 Vip Call Girls Chennai
Call Girls Chennai +91-8824825030 Vip Call Girls Chennai
 
Introduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.pptIntroduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.ppt
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
 
This study Examines the Effectiveness of Talent Procurement through the Imple...
This study Examines the Effectiveness of Talent Procurement through the Imple...This study Examines the Effectiveness of Talent Procurement through the Imple...
This study Examines the Effectiveness of Talent Procurement through the Imple...
 
AN INTRODUCTION OF AI & SEARCHING TECHIQUES
AN INTRODUCTION OF AI & SEARCHING TECHIQUESAN INTRODUCTION OF AI & SEARCHING TECHIQUES
AN INTRODUCTION OF AI & SEARCHING TECHIQUES
 
Ericsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.pptEricsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.ppt
 
Sri Guru Hargobind Ji - Bandi Chor Guru.pdf
Sri Guru Hargobind Ji - Bandi Chor Guru.pdfSri Guru Hargobind Ji - Bandi Chor Guru.pdf
Sri Guru Hargobind Ji - Bandi Chor Guru.pdf
 
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
 
Digital Image Processing Unit -2 Notes complete
Digital Image Processing Unit -2 Notes completeDigital Image Processing Unit -2 Notes complete
Digital Image Processing Unit -2 Notes complete
 
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdfAsymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
 
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
 

My sql router

  • 1.
  • 2. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | MySQL Router Prasad Vasudevan Copyright © 2016, Oracle and/or its affiliates. All rights reserved.
  • 3. Safe Harbor Statement Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 3 The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
  • 4. Program Agenda Introduction to MySQL Router Connection Routing InnoDB Cluster Metadata cache Routing Demo 1 2 3 4 5 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 4
  • 5. Program Agenda Introduction to MySQL Router Connection Routing InnoDB Cluster Metadata cache Routing Demo 1 2 3 4 5 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 5
  • 6. MySQL Router: Need ? Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 6 •High availability – On server failure, the application should connect to proper server – Not desirable for the application to handle this • Load balancing – In a HA system, efficiency is increased using more resources – Helps to handle traffic properly
  • 7. MySQL Router: Key Features Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 7 •Provides transparent routing between application and backend MySQL servers •Pluggable Architecture – Allows MySQL developers to easily extend the product with additional features – Allows users to create their own custom plugins •Provides High availability and Load balancing
  • 8. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 8
  • 9. Program Agenda Introduction to MySQL Router Connection Routing InnoDB Cluster Metadata cache Routing Demo 1 2 3 4 5 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 9
  • 10. Connection Routing Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 10 • Forwards MySQL packets to backend server without inspecting or modifying them • Achieved with routing plugin • Routing strategy : – First available – Round robin
  • 11. Connection Routing : Example Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 11
  • 12. Connection Routing : Configuration Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 12
  • 13. Connection Routing : Start Routing Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 13
  • 14. Program Agenda Introduction to MySQL Router Connection Routing InnoDB Cluster Metadata cache Routing Demo 1 2 3 4 5 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 14
  • 15. InnoDB Cluster : Introduction Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 15 • Provides complete HA solution for MySQL • MySQL Shell enables to easily configure and administer MySQL server instances to function as an InnoDB Cluster • Servers run MySQL Group Replication : – Replicate data – Built-in failover
  • 16. InnoDB Cluster : How to ? Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 16 • MySQL Shell includes Admin API which is accessed through the dba global variable and its associated methods • The methods allow to deploy, configure and administer InnoDB clusters • Shell provides two scripting language modes, JavaScript and Python, in addition to SQL mode – Default mode : JavaScript – Switch modes issuing js , py, sql
  • 17. InnoDB Cluster : How to ? Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 17
  • 18. InnoDB Cluster : How to ? Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 18
  • 19. InnoDB Cluster : Overview Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 19
  • 20. Program Agenda Introduction to MySQL Router Connection Routing InnoDB Cluster Metadata cache Routing Demo 1 2 3 4 5 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 20
  • 21. Metadata cache Routing : Introduction Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 21 • Provides transparent client routing, load balancing and failover to InnoDB clusters • Achieved with metadata_cache plugin • Router uses metadata_cache plugin to retrieve InnoDB cluster’s metadata periodically •In the event of server failure, cluster adjusts the topology and Router detects this change
  • 22. Metadata cache Routing : How to ? Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 22 • Using --bootstrap option, Router retrieves the InnoDB cluster metadata and automatically creates a configuration file • Generated Router configuration by default creates TCP ports which can be used to connect to cluster • Additionally, sockets to connect, can be created using --conf-use-sockets option while bootstrapping • Ports, Sockets for both MySQL Protocol and X Protocol created
  • 23. Metadata cache Routing : Configuration Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 23 • Bootstrap example : •Configuration file generated is automatically generated at /home/prasad/dir/mysqlrouter.conf
  • 24. Metadata cache Routing : Configuration Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 24
  • 25. Metadata cache Routing : Configuration Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 25
  • 26. Metadata cache Routing : Configuration Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 26
  • 27. Metadata cache Routing : Start Routing Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 27
  • 28. Metadata cache Routing : Key Features Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 28 • User doesn’t need to be aware of the topology information and details of all servers • Routing will be proper : – In the event of failover – When new servers get added to the cluster
  • 29. Program Agenda Introduction to MySQL Router Connection Routing InnoDB Cluster Metadata cache Routing Demo 1 2 3 4 5 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 29
  • 30. THANK YOU! Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 30