SlideShare a Scribd company logo
1 of 31
Download to read offline
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 DatabaseConnor 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 OpenStackMatt Lord
 
Using MySQL in the Cloud
Using MySQL in the CloudUsing MySQL in the Cloud
Using MySQL in the CloudMatt 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/SQLMariaDB plc
 
Data stream with cruise control
Data stream with cruise controlData stream with cruise control
Data stream with cruise controlBill Liu
 
MySQL Intro JSON NoSQL
MySQL Intro JSON NoSQLMySQL Intro JSON NoSQL
MySQL Intro JSON NoSQLMark 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 2014Joelith
 
NoSQL no MySQL 5.7
NoSQL no MySQL 5.7NoSQL no MySQL 5.7
NoSQL no MySQL 5.7MySQL 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 ClusterBenedita 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 2018Olivier DASINI
 
Oracle virtualbox basic to rac attack
Oracle virtualbox basic to rac attackOracle virtualbox basic to rac attack
Oracle virtualbox basic to rac attackBobby Curtis
 
Upgrading to my sql 8.0
Upgrading to my sql 8.0Upgrading to my sql 8.0
Upgrading to my sql 8.0Ståle Deraas
 
Enabling digital transformation with MySQL
Enabling digital transformation with MySQLEnabling digital transformation with MySQL
Enabling digital transformation with MySQLMySQL Brasil
 
Alta Disponibilidade no MySQL 5.7
Alta Disponibilidade no MySQL 5.7Alta Disponibilidade no MySQL 5.7
Alta Disponibilidade no MySQL 5.7MySQL Brasil
 
Hit Refresh with Oracle GoldenGate Microservices
Hit Refresh with Oracle GoldenGate MicroservicesHit Refresh with Oracle GoldenGate Microservices
Hit Refresh with Oracle GoldenGate MicroservicesBobby 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 optionsTed Wennmark
 
Oracle GoldenGate on Docker
Oracle GoldenGate on DockerOracle GoldenGate on Docker
Oracle GoldenGate on DockerBobby Curtis
 
Hannes end-of-the-router-tnc17
Hannes end-of-the-router-tnc17Hannes end-of-the-router-tnc17
Hannes end-of-the-router-tnc17Hannes 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 ClustersMatt Lord
 
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 FabricMark 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 2014Sanjay Manwani
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQLTed 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.pdfMiguel Araújo
 
20200613 my sql-ha-deployment
20200613 my sql-ha-deployment20200613 my sql-ha-deployment
20200613 my sql-ha-deploymentIvan Ma
 
MySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB ClusterMySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB ClusterMario 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 ClusterOlivier DASINI
 
Netherlands Tech Tour 02 - MySQL Fabric
Netherlands Tech Tour 02 -   MySQL FabricNetherlands Tech Tour 02 -   MySQL Fabric
Netherlands Tech Tour 02 - MySQL FabricMark Swarbrick
 
MySQL in oracle_public_cloud
MySQL in oracle_public_cloudMySQL in oracle_public_cloud
MySQL in oracle_public_cloudOracleMySQL
 
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 cloudMandy Ang
 
My sql fabric webinar v1.1
My sql fabric webinar v1.1My sql fabric webinar v1.1
My sql fabric webinar v1.1Ricky 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 MySQLTed 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

The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
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
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera 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
 
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
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
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
 
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
 
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
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 

Recently uploaded (20)

The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
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
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera 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
 
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
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
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...
 
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...
 
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
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 

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