SlideShare a Scribd company logo
MaxScale
The Pluggable Router
Massimiliano Pinto
Vilho Raatikka
© SkySQL Ab 2014
MaxScale Objectives
• Highly scalable 
• Transparent to the application
• Highly available
• Extendible
• Flexible
• Modules specify what MaxScale is : router / firewall / data extract tool /…
• Open source, GPL2 software since 8th of Jan. 2014
© SkySQL Ab 2014

2
How? In a nutshell
Client authenticates once
- with MaxScale

Allows multiple protocols for
clients and servers

Configuration and state
aware monitors

Alter, block or log
client requests and
results

Content-aware or unaware routers

Core of MaxScale is multi-threaded, event-driven network IO processor
© SkySQL Ab 2014

3
Typical Scenarios
•

MaxScale

MySQL Replication with

‣ Read connection load balancing
‣ Read/Write statement splitting
Database

•

Database

Database

Database

Database

Galera Cluster

‣ Connection load balancing and conflict avoidance

© SkySQL Ab 2014

4
MySQL Replication with R/W split
Each application uses
only 1 connection

For applications that have been designed
to work with a single server and require
read scalability

MaxScale

MaxScale monitors the state
of each node and selects only
available nodes

MaxScale creates 2 connections,
one for R/W on the Master node
and one R/O load balanced on the
Slave nodes

Database

© SkySQL Ab 2014

Database

Database

Database

Database
Galera Cluster using
Connection Load Balancing
For applications that can use
the“all-master” capabilities of
Galera

Each application uses
only 1 connection

MaxScale

MaxScale monitors the state of
each Galera Cluster node and
selects only synced nodes

MaxScale load balances the client
connections and whenever possible
writes to one node avoiding conflicts

© SkySQL Ab 2014

Database

Database

Database
Inside MaxScale

MySQL Local Authentication
Users are loaded at
start

connect/auth

“read user info”

Backends

© SkySQL Ab 2014

7
Inside MaxScale

MySQL Local Authentication
Users are loaded at
start

“read user info”

ok

Backends

© SkySQL Ab 2014

7
Inside MaxScale

Basic Read Load Balancing
“select * from T1”
Slaves

select a
candidate server
© SkySQL Ab 2014

8
Inside MaxScale
Read/Write Splitting
Master
“call my_proc(1)”
Slaves

!

Call parser and
examine parse tree

Query
Classifier

© SkySQL Ab 2014

9
Extending with filters
Pr
ot
h
oc
t
ol
Au
MaxScale

Mon
itor

P
P
Pr
ro
ro
ot
to
to
oc
co
co
olll

r
r
r
Filte
Fiillte
F te

Router

• May be connected to form arbitrary chains 
Routing Hint

• Allows inspection, modification and rejection of requests and results
‣
‣

blacklist

INSERT INTO DWH.T1 (....)

Log Entry

data mining / log

© SkySQL Ab 2014

10
Extending with filters
Pr
ot
h
oc
t
ol
Au
MaxScale

Protocol

Filter

Mon
itor

Pr
ot
oc
ol

r

Filte

Router

Routing Hint

Filter

Router

Protocol

INSERT INTO DWH.T1 (....)

Log Entry

© SkySQL Ab 2014

10
Extending with filters

Router

Protocol

Filter

Mon
itor

r

Filte

Pr
ot
h
oc
t
ol
Au
MaxScale

Routing Hint

Router

Filter

Protocol

INSERT INTO DWH.T1 (....)

Log Entry

Router

© SkySQL Ab 2014

Protocol

10
Extending with filters

Router

Protocol

Filter

INSERT INTO T1 (....)

Mon
itor

r

Filte

Pr
ot
h
oc
t
ol
Au
MaxScale

Routing Hint

Router

Filter

Protocol

INSERT INTO DWH.T1 (....)

Log Entry

Router

© SkySQL Ab 2014

Protocol

10
Extending with filters

Router

Protocol

Filter
INSERT INTO T1 (....)

Log Entry

Mon
itor

r

Filte

Pr
ot
h
oc
t
ol
Au
MaxScale

Routing Hint

Router

Filter

Protocol

INSERT INTO DWH.T1 (....)

Router

© SkySQL Ab 2014

Protocol

10
Extending with filters

Router

Protocol

Filter

Mon
itor

r

Filte

Pr
ot
h
oc
t
ol
Au
MaxScale

Routing Hint

Router

Filter

Protocol

INSERT INTO T1 (....)
INSERT INTO DWH.T1 (....)

Log Entry

Router

© SkySQL Ab 2014

Protocol

10
Extending with filters

Router

Protocol

Filter

Router

Filter
INSERT INTO T1 (....)
INSERT INTO DWH.T1 (....)

Log Entry

Mon
itor

r

Filte

Pr
ot
h
oc
t
ol
Au
MaxScale

Protocol

Routing Hint

Router

© SkySQL Ab 2014

Protocol

10
Extending with filters

Router

Protocol

Filter

Mon
itor

r

Filte

Pr
ot
h
oc
t
ol
Au
MaxScale

Router

Filter

Protocol

INSERT INTO T1 (....)

Routing Hint
INSERT INTO DWH.T1 (....)

Log Entry

Router

© SkySQL Ab 2014

Protocol

10
Extending with filters

Router

Protocol

Filter

Mon
itor

r

Filte

Pr
ot
h
oc
t
ol
Au
MaxScale

Router

Filter

Protocol

INSERT INTO T1 (....)

Routing Hint

Log Entry

Router

Protocol

INSERT INTO DWH.T1 (....)

© SkySQL Ab 2014

10
Extending with filters

Router

Protocol

Filter

Mon
itor

r

Filte

Pr
ot
h
oc
t
ol
Au
MaxScale

Router

Filter

Protocol
INSERT INTO T1 (....)

Routing Hint

Log Entry

Router

Protocol
INSERT INTO DWH.T1 (....)

© SkySQL Ab 2014

10
Get involved
•
•
•
•
•
•

Check on GitHub

https://github.com/skysql/MaxScale!

MariaDB Source

https://downloads.mariadb.org/!

Bugs report!!

!

!

http://bugs.skysql.com/buglist.cgi?product=Maxscale !

Google groups

https://groups.google.com/forum/#!forum/maxscale!

Binary Tarball

http://downloads.skysql.com/files/SkySQL/MaxScale!

SkySQL website

http://www.skysql.com

Thank you !
© SkySQL Ab 2014

11

More Related Content

PDF
MaxScale for Effective MySQL Meetup NYC - 14.01.21
PDF
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...
PPTX
MaxScale - The Pluggable Router
PDF
MaxScale - The Pluggable Router
PPTX
MaxScale - The Pluggibale Router MariaDB Roadshow 2014 Paris
PDF
Maxscale_메뉴얼
PPTX
The New MariaDB Offering: MariaDB 10, MaxScale and More
PDF
Introduction to MariaDB MaxScale
MaxScale for Effective MySQL Meetup NYC - 14.01.21
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...
MaxScale - The Pluggable Router
MaxScale - The Pluggable Router
MaxScale - The Pluggibale Router MariaDB Roadshow 2014 Paris
Maxscale_메뉴얼
The New MariaDB Offering: MariaDB 10, MaxScale and More
Introduction to MariaDB MaxScale

What's hot (20)

PPTX
Skalierbarkeit mit MariaDB und MaxScale - MariaDB Roadshow Summer 2014 Hambur...
PDF
Amazon Aurora로 안전하게 migration 하기
PPTX
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
PPTX
MariaDB Galera Cluster
PDF
Introduction to ClustrixDB
PDF
Webseminar: MariaDB Enterprise und MariaDB Enterprise Cluster
PDF
MariaDB 10.5 binary install (바이너리 설치)
PDF
Galera cluster for high availability
PPTX
High performance and high availability proxies for MySQL
PDF
InnoDB Cluster Experience (MySQL User Camp)
PDF
High Performance Drupal with MariaDB
PDF
MySQL Load Balancers - Maxscale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
PPTX
MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014
PDF
Ansible is Our Wishbone(Automate DBA Tasks With Ansible)
PDF
A26 MariaDB : The New&Implemented MySQL Branch by Colin Charles
PPTX
Deploying MariaDB databases with containers at Nokia Networks
PDF
Using all of the high availability options in MariaDB
PPTX
M|18 How Facebook Migrated to MyRocks
PDF
Percona XtraDB Cluster ( Ensure high Availability )
PPTX
Migrating from InnoDB and HBase to MyRocks at Facebook
Skalierbarkeit mit MariaDB und MaxScale - MariaDB Roadshow Summer 2014 Hambur...
Amazon Aurora로 안전하게 migration 하기
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
MariaDB Galera Cluster
Introduction to ClustrixDB
Webseminar: MariaDB Enterprise und MariaDB Enterprise Cluster
MariaDB 10.5 binary install (바이너리 설치)
Galera cluster for high availability
High performance and high availability proxies for MySQL
InnoDB Cluster Experience (MySQL User Camp)
High Performance Drupal with MariaDB
MySQL Load Balancers - Maxscale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014
Ansible is Our Wishbone(Automate DBA Tasks With Ansible)
A26 MariaDB : The New&Implemented MySQL Branch by Colin Charles
Deploying MariaDB databases with containers at Nokia Networks
Using all of the high availability options in MariaDB
M|18 How Facebook Migrated to MyRocks
Percona XtraDB Cluster ( Ensure high Availability )
Migrating from InnoDB and HBase to MyRocks at Facebook
Ad

Similar to MaxScale - the pluggable router (20)

PDF
Max scale overview boston mysql meetup 03102014
PPTX
Building Data Streaming Platforms using OpenShift and Kafka
PDF
TDC Connections 2023 - A High-Speed Data Ingestion Service in Java Using MQTT...
PDF
Netherlands Tech Tour 02 - MySQL Fabric
PDF
Java Library for High Speed Streaming Data
PDF
MariaDB MaxScale
PPTX
Introducing Cloud Development with Mantl
PDF
Introducing Cloud Development with Project Shipped and Mantl: a deep dive
PDF
JConWorld_ Continuous SQL with Kafka and Flink
PPTX
The State of the Dolphin, MySQL Keynote at Percona Live Europe 2019, Amsterda...
PDF
BRKSEC-3771 - WSA with wccp.pdf
PDF
TechEvent 2019: Create a Private Database Cloud in the Public Cloud using the...
PDF
My sql fabric webinar v1.1
PDF
Meet the Committers Webinar_ Lab Preparation
PDF
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?
PDF
Open vSwitch Implementation Options
PDF
A Big Data Lake Based on Spark for BBVA Bank-(Oscar Mendez, STRATIO)
PPTX
Apache cassandra v4.0
PPTX
Connecting kafka message systems with scylla
PDF
Scenic City Summit (2021): Real-Time Streaming in any and all clouds, hybrid...
Max scale overview boston mysql meetup 03102014
Building Data Streaming Platforms using OpenShift and Kafka
TDC Connections 2023 - A High-Speed Data Ingestion Service in Java Using MQTT...
Netherlands Tech Tour 02 - MySQL Fabric
Java Library for High Speed Streaming Data
MariaDB MaxScale
Introducing Cloud Development with Mantl
Introducing Cloud Development with Project Shipped and Mantl: a deep dive
JConWorld_ Continuous SQL with Kafka and Flink
The State of the Dolphin, MySQL Keynote at Percona Live Europe 2019, Amsterda...
BRKSEC-3771 - WSA with wccp.pdf
TechEvent 2019: Create a Private Database Cloud in the Public Cloud using the...
My sql fabric webinar v1.1
Meet the Committers Webinar_ Lab Preparation
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?
Open vSwitch Implementation Options
A Big Data Lake Based on Spark for BBVA Bank-(Oscar Mendez, STRATIO)
Apache cassandra v4.0
Connecting kafka message systems with scylla
Scenic City Summit (2021): Real-Time Streaming in any and all clouds, hybrid...
Ad

More from MariaDB Corporation (18)

PPTX
Hochverfügbarkeit mit MariaDB Enterprise - MariaDB Roadshow Summer 2014 Hambu...
PDF
Automatisierung & Verwaltung von Datenbank - Clustern mit Severalnines - Mari...
PPTX
MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014 F...
PPTX
High Availability with MariaDB Enterprise
PPTX
Galaxy Big Data with MariaDB
PDF
Automatisation et Gestion de Cluster de Bases de Données MariaDB Roadshow
PDF
Automation and Management of Database Clusters MariaDB Roadshow 2014
PDF
Automation and Management of Database Clusters
PDF
The New MariaDB Offering - MariaDB 10, MaxScale and more
PDF
High Availability with MariaDB Enterprise
PDF
MariaDB 10 and Beyond
PDF
CCM Escape Case Study - SkySQL Paris Meetup 17.12.2013
PPT
Galera cluster - SkySQL Paris Meetup 17.12.2013
PDF
MariaDB 10.0 - SkySQL Paris Meetup
PDF
MariaDB Galera Cluster - Simple, Transparent, Highly Available
PDF
High Availability with Galera Cluster - SkySQL Road Show 2013 in Berlin
PDF
MySQL & MariaDB - Innovation happens here - London Roadshow 2013
PDF
1&1 MySQL Experience at SkySQL Roadshow
Hochverfügbarkeit mit MariaDB Enterprise - MariaDB Roadshow Summer 2014 Hambu...
Automatisierung & Verwaltung von Datenbank - Clustern mit Severalnines - Mari...
MariaDB Enterprise & MariaDB Enterprise Cluster - MariaDB Webinar July 2014 F...
High Availability with MariaDB Enterprise
Galaxy Big Data with MariaDB
Automatisation et Gestion de Cluster de Bases de Données MariaDB Roadshow
Automation and Management of Database Clusters MariaDB Roadshow 2014
Automation and Management of Database Clusters
The New MariaDB Offering - MariaDB 10, MaxScale and more
High Availability with MariaDB Enterprise
MariaDB 10 and Beyond
CCM Escape Case Study - SkySQL Paris Meetup 17.12.2013
Galera cluster - SkySQL Paris Meetup 17.12.2013
MariaDB 10.0 - SkySQL Paris Meetup
MariaDB Galera Cluster - Simple, Transparent, Highly Available
High Availability with Galera Cluster - SkySQL Road Show 2013 in Berlin
MySQL & MariaDB - Innovation happens here - London Roadshow 2013
1&1 MySQL Experience at SkySQL Roadshow

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPT
Teaching material agriculture food technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Cloud computing and distributed systems.
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Review of recent advances in non-invasive hemoglobin estimation
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Encapsulation theory and applications.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Electronic commerce courselecture one. Pdf
Chapter 3 Spatial Domain Image Processing.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Teaching material agriculture food technology
Building Integrated photovoltaic BIPV_UPV.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Dropbox Q2 2025 Financial Results & Investor Presentation
Cloud computing and distributed systems.
Programs and apps: productivity, graphics, security and other tools
Review of recent advances in non-invasive hemoglobin estimation
The AUB Centre for AI in Media Proposal.docx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Encapsulation theory and applications.pdf

MaxScale - the pluggable router