SlideShare a Scribd company logo
MariaDB MaxScale
Maria Luisa Raviol
Senior Sales Engineer - MariaDB
SERVER
Enterprise-grade secure,
highly available and scalable
relational database with
a modern, extensible
architecture
MAXSCALE COLUMNSTORE
Next-generation database
proxy that manages security,
scalability and high
availability in scale-out
deployments
Columnar storage engine
for massively parallel
distributed query execution
and data loading
MariaDB Technology
MariaDB MaxScale
Latest GA
Version 2.1
Part of MariaDB
TX and AX
Offering
Next Generation
Database Proxy for
SCALABILITY
SECURITY
HIGH AVAILABILITY
DATA STREAMING
MariaDB MaxScale Concept
DATABASE
SERVERS
MASTER
SLAVES
Binlog Cache
Insulates client applications
from the complexities
of backend database cluster
Simplify replication
from database
to other databases
CLIENT
PROTOCOL SUPPORT
AUTHENTICATION
DATABASE MONITORING
LOAD BALANCING & ROUTING
QUERY TRANSFORMATION & LOGGING
Flexible, easy to
write plug-ins for
Generic Core
MULTI-THREADED
E-POLL BASED
STATELESS
SHARES THE THREAD POOL
Read/Write Splitting
MariaDB Replication + R/W Split Routing
Each application server uses
only 1 connection
MaxScale monitors the state of each node
and only applies operations on available
slaves
MaxScale creates 2 connections, one for
R/W on the master node and one for
R/O load balanced on the slave nodes
Max
Scale
R/W
Splitting
Routing based on
QUERY TYPES
QUERY PATTERNS
DATABASE SERVER STATE
REPLICATION LAGS
Load balancing across database topologies
MARIADB MASTER/SLAVE
MARIADB GALERA
MARIADB MULTI-MASTER
AWS AURORA
Scaling
Scale database environment without
application impact
Minimize maintenance downtime
Connection Based Routing
readwrite
MASTER SLAVES
read write
Statement Based Routing (Read-
Write Split)
readwrite
MASTER SLAVES
read &
write
MariaDB HA Topology
with MaxScale
Application /
App Server
MariaDB
MariaDB
MariaDB
Application /
App Server
MariaDB Cluster Failure
Management
Galera	uses	quorum	based	failure	handling	
●  When	cluster	partitioning	is	detected,	the	
majority	partition	"has	quorum"	and	can	
continue	
●  A	minority	partition	cannot	commit	
transactions,	but	will	attempt	to	re-connect	to	
primary	partition	
●  MaxScale	takes	care	that	connections	
reconnect	to	available	nodes	
Application /
App Server
MariaDB
MariaDB
MariaDB
MaxScale
Scaling: Tunability
Route all reads to master subsequent to a write for a configurable amount of time or number
of operations
Route queries to only those slave that are less than configurable
replication lag behind master
Route all queries that match a pattern(regex) to specific servers
Weighted routing
Query Cache
in memory
LRU cache.
Clients
Database Servers
Query Cache Filter
CACHE QUERY RESULTS IN MAXSCALE
FOR CONFIGURABLE TIMEOUT
FOR CACHED QUERIES RETURN
RESULTS FROM CACHE
Handle large amount of read operations
with high performance
Security in MaxScale
Black & White List
Connection Rate Limitation
End to End SSL
Database Firewall Filter for SQL Injection protection
Selective Data Masking HIPPA/PCI Compliance
Maximum Rows Returned Limit DDoS Protection
Transport layer security between applications, proxy
& databases
DDoS Protection
LDAP/GSSAPI Authentication Support
QUERY FAILED: 1141
ERROR: Required
WHERE/HAVING clause is missing
rule safe_select deny
no_where_clause
on_queries select
rule safe_cust_select deny
regex '.*from.*customers.*'
user %app-user@% match
all rules safe_cust_select
safe_select
Security
DATABASE FIREWALL FILTER
SELECT * FROM CUSTOMERS;
MaxScale
Database Servers
1
2
3
Database Firewall Filter
Allow/Block queries that
MATCH A SET OF RULES
MATCH RULES FOR SPECIFIED USERS
MATCH ON
•  date/time
•  a WHERE clause
•  query type
•  column match
•  a wildcard or regular expression or function name
Protect against SQL injection
Prevent unauthorized data access
Prevent data damage
Operational Use Cases
Dynamically configure server, listener, monitor
Dynamically configure database firewall rules
Query Duplication
Query Cache
DUPLICATE QUERY BETWEEN PRODUCTION AND STAGING FOR
UPGRADE VERIFICATION
DUPLICATE QUERY BETWEEN DATABASE AND EXTERNAL
APPLICATIONS FOR QUERY ANALYTICS
Query logging CLUSTER WIDER QUERY TUNING
Query translation TRANSLATE QUERIES SYNTAX FROM ONE PROTOCOL TO ANOTHER
ASYNCHRONOUSLY UPGRADE APPLICATIONS AND DATABASE
INVOKE EXTERNAL OPERATIONAL TOOLS FOR SERVER DOWN/UP
EVENT MANAGEMENT
MANAGE FAILOVER - PROMOTE SLAVE TO MASTER UPON FAILURE
Binlog conversion to Avro
Streaming of Change Data Capture
events (binlog) to big data environments
Data Streaming
Change Data Capture
Clients
EMR
MariaDB
ColumnStore
Big Data Platforms
AVRO or
JSON
events
Streaming
MariaDB
Master
Binlog to AVRO
conversion
Thank you

More Related Content

PDF
How to Manage Scale-Out Environments with MariaDB MaxScale
PDF
When Open Source Meets the Enterprise
PDF
Einführung: MariaDB heute und unsere Vision für die Zukunft
PPTX
A Quick Guide to Sql Server Availability Groups
PDF
Por trás da infraestrutura do Cloud - Campus Party 2014
PDF
Caching for Microservices Architectures: Session II - Caching Patterns
PDF
Locaweb cloud and sdn
PDF
Maximizing performance via tuning and optimization
How to Manage Scale-Out Environments with MariaDB MaxScale
When Open Source Meets the Enterprise
Einführung: MariaDB heute und unsere Vision für die Zukunft
A Quick Guide to Sql Server Availability Groups
Por trás da infraestrutura do Cloud - Campus Party 2014
Caching for Microservices Architectures: Session II - Caching Patterns
Locaweb cloud and sdn
Maximizing performance via tuning and optimization

What's hot (20)

PDF
Caching for Microservices Architectures: Session I
PPTX
Caching for Microservives - Introduction to Pivotal Cloud Cache
PDF
Running database infrastructure on containers
PPT
SQL Server Database as a Cloud Service
PDF
Cloud Design Patterns
PPTX
SQL Server 2016 New Security Features
PPTX
Single vs. Multi Tenant Cost Comparison
PDF
Building Multi-tenant SaaS Applications using WSO2 Private PaaS
PDF
Cloud Design Patterns - PRESCRIPTIVE ARCHITECTURE GUIDANCE FOR CLOUD APPLICAT...
PPTX
PDF
Choosing the right high availability strategy
PDF
Software Architecture for Cloud Infrastructure
PPTX
Azure database services for PostgreSQL and MySQL
PPTX
Transforming a Large Mission-Critical E-Commerce Platform from a Relational A...
PPT
Soa Eai Ver1 0
PPTX
DBaaS - The Next generation of database infrastructure
PDF
Höchste Datenbankleistung durch Anpassung und Optimierung
PDF
How to boost performance of your rails app using dynamo db and memcached
PPTX
How to Set Up ApsaraDB for RDS on Alibaba Cloud
PPTX
Azure reference architectures
Caching for Microservices Architectures: Session I
Caching for Microservives - Introduction to Pivotal Cloud Cache
Running database infrastructure on containers
SQL Server Database as a Cloud Service
Cloud Design Patterns
SQL Server 2016 New Security Features
Single vs. Multi Tenant Cost Comparison
Building Multi-tenant SaaS Applications using WSO2 Private PaaS
Cloud Design Patterns - PRESCRIPTIVE ARCHITECTURE GUIDANCE FOR CLOUD APPLICAT...
Choosing the right high availability strategy
Software Architecture for Cloud Infrastructure
Azure database services for PostgreSQL and MySQL
Transforming a Large Mission-Critical E-Commerce Platform from a Relational A...
Soa Eai Ver1 0
DBaaS - The Next generation of database infrastructure
Höchste Datenbankleistung durch Anpassung und Optimierung
How to boost performance of your rails app using dynamo db and memcached
How to Set Up ApsaraDB for RDS on Alibaba Cloud
Azure reference architectures
Ad

Similar to How to Manage Scale-Out Environments with MariaDB MaxScale (20)

PDF
MariaDB MaxScale
PDF
How to Manage Scale-Out Environments with MariaDB MaxScale
PDF
How to Manage Scale-Out Environments with MariaDB MaxScale
PDF
Webinar Slides: Multi-Master MySQL
PDF
Securing data and preventing data breaches
PDF
Securing data and preventing data breaches
PPTX
Skalierbarkeit mit MariaDB und MaxScale - MariaDB Roadshow Summer 2014 Hambur...
PDF
MaxScale - The Pluggable Router
PDF
Max scale overview boston mysql meetup 03102014
PDF
🏗️Improve database performance with connection pooling and load balancing tec...
PDF
Database Security Threats - MariaDB Security Best Practices
PDF
Keynote – When Open Source Meets the Enterprise
PPTX
Proxysql use case scenarios plam 2016
PDF
Open Source für den geschäftskritischen Einsatz
PPTX
HP: HP 3PAR - Storage zrodený pre virtualizované prostredie
PPTX
Proxysql use case scenarios fosdem17
PPTX
Why Cassandra?
PDF
An efficient concurrent access on cloud database using secureDBAAS
PPTX
Keynote: Open Source für den geschäftskritischen Einsatz
PDF
Uso de MariaDB TX y MaxScale para el cumplimiento de GDPR
MariaDB MaxScale
How to Manage Scale-Out Environments with MariaDB MaxScale
How to Manage Scale-Out Environments with MariaDB MaxScale
Webinar Slides: Multi-Master MySQL
Securing data and preventing data breaches
Securing data and preventing data breaches
Skalierbarkeit mit MariaDB und MaxScale - MariaDB Roadshow Summer 2014 Hambur...
MaxScale - The Pluggable Router
Max scale overview boston mysql meetup 03102014
🏗️Improve database performance with connection pooling and load balancing tec...
Database Security Threats - MariaDB Security Best Practices
Keynote – When Open Source Meets the Enterprise
Proxysql use case scenarios plam 2016
Open Source für den geschäftskritischen Einsatz
HP: HP 3PAR - Storage zrodený pre virtualizované prostredie
Proxysql use case scenarios fosdem17
Why Cassandra?
An efficient concurrent access on cloud database using secureDBAAS
Keynote: Open Source für den geschäftskritischen Einsatz
Uso de MariaDB TX y MaxScale para el cumplimiento de GDPR
Ad

More from MariaDB plc (20)

PDF
MariaDB Berlin Roadshow Slides - 8 April 2025
PDF
MariaDB München Roadshow - 24 September, 2024
PDF
MariaDB Paris Roadshow - 19 September 2024
PDF
MariaDB Amsterdam Roadshow: 19 September, 2024
PDF
MariaDB Paris Workshop 2023 - MaxScale 23.02.x
PDF
MariaDB Paris Workshop 2023 - Newpharma
PDF
MariaDB Paris Workshop 2023 - Cloud
PDF
MariaDB Paris Workshop 2023 - MariaDB Enterprise
PDF
MariaDB Paris Workshop 2023 - Performance Optimization
PDF
MariaDB Paris Workshop 2023 - MaxScale
PDF
MariaDB Paris Workshop 2023 - novadys presentation
PDF
MariaDB Paris Workshop 2023 - DARVA presentation
PDF
MariaDB Tech und Business Update Hamburg 2023 - MariaDB Enterprise Server
PDF
MariaDB SkySQL Autonome Skalierung, Observability, Cloud-Backup
PDF
Einführung : MariaDB Tech und Business Update Hamburg 2023
PDF
Hochverfügbarkeitslösungen mit MariaDB
PDF
Die Neuheiten in MariaDB Enterprise Server
PDF
Global Data Replication with Galera for Ansell Guardian®
PDF
Introducing workload analysis
PDF
Under the hood: SkySQL monitoring
MariaDB Berlin Roadshow Slides - 8 April 2025
MariaDB München Roadshow - 24 September, 2024
MariaDB Paris Roadshow - 19 September 2024
MariaDB Amsterdam Roadshow: 19 September, 2024
MariaDB Paris Workshop 2023 - MaxScale 23.02.x
MariaDB Paris Workshop 2023 - Newpharma
MariaDB Paris Workshop 2023 - Cloud
MariaDB Paris Workshop 2023 - MariaDB Enterprise
MariaDB Paris Workshop 2023 - Performance Optimization
MariaDB Paris Workshop 2023 - MaxScale
MariaDB Paris Workshop 2023 - novadys presentation
MariaDB Paris Workshop 2023 - DARVA presentation
MariaDB Tech und Business Update Hamburg 2023 - MariaDB Enterprise Server
MariaDB SkySQL Autonome Skalierung, Observability, Cloud-Backup
Einführung : MariaDB Tech und Business Update Hamburg 2023
Hochverfügbarkeitslösungen mit MariaDB
Die Neuheiten in MariaDB Enterprise Server
Global Data Replication with Galera for Ansell Guardian®
Introducing workload analysis
Under the hood: SkySQL monitoring

Recently uploaded (20)

PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
CapCut Video Editor 6.8.1 Crack for PC Latest Download (Fully Activated) 2025
PDF
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
PPTX
history of c programming in notes for students .pptx
PDF
Website Design Services for Small Businesses.pdf
PPTX
Advanced SystemCare Ultimate Crack + Portable (2025)
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PDF
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
PDF
Download FL Studio Crack Latest version 2025 ?
PDF
iTop VPN Crack Latest Version Full Key 2025
PPTX
assetexplorer- product-overview - presentation
PPTX
Monitoring Stack: Grafana, Loki & Promtail
PDF
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
PDF
Autodesk AutoCAD Crack Free Download 2025
PDF
17 Powerful Integrations Your Next-Gen MLM Software Needs
Odoo Companies in India – Driving Business Transformation.pdf
Oracle Fusion HCM Cloud Demo for Beginners
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Designing Intelligence for the Shop Floor.pdf
wealthsignaloriginal-com-DS-text-... (1).pdf
Adobe Illustrator 28.6 Crack My Vision of Vector Design
CapCut Video Editor 6.8.1 Crack for PC Latest Download (Fully Activated) 2025
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
history of c programming in notes for students .pptx
Website Design Services for Small Businesses.pdf
Advanced SystemCare Ultimate Crack + Portable (2025)
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
Download FL Studio Crack Latest version 2025 ?
iTop VPN Crack Latest Version Full Key 2025
assetexplorer- product-overview - presentation
Monitoring Stack: Grafana, Loki & Promtail
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
Autodesk AutoCAD Crack Free Download 2025
17 Powerful Integrations Your Next-Gen MLM Software Needs

How to Manage Scale-Out Environments with MariaDB MaxScale

  • 1. MariaDB MaxScale Maria Luisa Raviol Senior Sales Engineer - MariaDB
  • 2. SERVER Enterprise-grade secure, highly available and scalable relational database with a modern, extensible architecture MAXSCALE COLUMNSTORE Next-generation database proxy that manages security, scalability and high availability in scale-out deployments Columnar storage engine for massively parallel distributed query execution and data loading MariaDB Technology
  • 3. MariaDB MaxScale Latest GA Version 2.1 Part of MariaDB TX and AX Offering Next Generation Database Proxy for SCALABILITY SECURITY HIGH AVAILABILITY DATA STREAMING
  • 4. MariaDB MaxScale Concept DATABASE SERVERS MASTER SLAVES Binlog Cache Insulates client applications from the complexities of backend database cluster Simplify replication from database to other databases CLIENT PROTOCOL SUPPORT AUTHENTICATION DATABASE MONITORING LOAD BALANCING & ROUTING QUERY TRANSFORMATION & LOGGING Flexible, easy to write plug-ins for Generic Core MULTI-THREADED E-POLL BASED STATELESS SHARES THE THREAD POOL
  • 5. Read/Write Splitting MariaDB Replication + R/W Split Routing Each application server uses only 1 connection MaxScale monitors the state of each node and only applies operations on available slaves MaxScale creates 2 connections, one for R/W on the master node and one for R/O load balanced on the slave nodes Max Scale R/W Splitting
  • 6. Routing based on QUERY TYPES QUERY PATTERNS DATABASE SERVER STATE REPLICATION LAGS Load balancing across database topologies MARIADB MASTER/SLAVE MARIADB GALERA MARIADB MULTI-MASTER AWS AURORA Scaling Scale database environment without application impact Minimize maintenance downtime Connection Based Routing readwrite MASTER SLAVES read write Statement Based Routing (Read- Write Split) readwrite MASTER SLAVES read & write
  • 7. MariaDB HA Topology with MaxScale Application / App Server MariaDB MariaDB MariaDB Application / App Server
  • 8. MariaDB Cluster Failure Management Galera uses quorum based failure handling ●  When cluster partitioning is detected, the majority partition "has quorum" and can continue ●  A minority partition cannot commit transactions, but will attempt to re-connect to primary partition ●  MaxScale takes care that connections reconnect to available nodes Application / App Server MariaDB MariaDB MariaDB MaxScale
  • 9. Scaling: Tunability Route all reads to master subsequent to a write for a configurable amount of time or number of operations Route queries to only those slave that are less than configurable replication lag behind master Route all queries that match a pattern(regex) to specific servers Weighted routing
  • 10. Query Cache in memory LRU cache. Clients Database Servers Query Cache Filter CACHE QUERY RESULTS IN MAXSCALE FOR CONFIGURABLE TIMEOUT FOR CACHED QUERIES RETURN RESULTS FROM CACHE Handle large amount of read operations with high performance
  • 11. Security in MaxScale Black & White List Connection Rate Limitation End to End SSL Database Firewall Filter for SQL Injection protection Selective Data Masking HIPPA/PCI Compliance Maximum Rows Returned Limit DDoS Protection Transport layer security between applications, proxy & databases DDoS Protection LDAP/GSSAPI Authentication Support
  • 12. QUERY FAILED: 1141 ERROR: Required WHERE/HAVING clause is missing rule safe_select deny no_where_clause on_queries select rule safe_cust_select deny regex '.*from.*customers.*' user %app-user@% match all rules safe_cust_select safe_select Security DATABASE FIREWALL FILTER SELECT * FROM CUSTOMERS; MaxScale Database Servers 1 2 3 Database Firewall Filter Allow/Block queries that MATCH A SET OF RULES MATCH RULES FOR SPECIFIED USERS MATCH ON •  date/time •  a WHERE clause •  query type •  column match •  a wildcard or regular expression or function name Protect against SQL injection Prevent unauthorized data access Prevent data damage
  • 13. Operational Use Cases Dynamically configure server, listener, monitor Dynamically configure database firewall rules Query Duplication Query Cache DUPLICATE QUERY BETWEEN PRODUCTION AND STAGING FOR UPGRADE VERIFICATION DUPLICATE QUERY BETWEEN DATABASE AND EXTERNAL APPLICATIONS FOR QUERY ANALYTICS Query logging CLUSTER WIDER QUERY TUNING Query translation TRANSLATE QUERIES SYNTAX FROM ONE PROTOCOL TO ANOTHER ASYNCHRONOUSLY UPGRADE APPLICATIONS AND DATABASE INVOKE EXTERNAL OPERATIONAL TOOLS FOR SERVER DOWN/UP EVENT MANAGEMENT MANAGE FAILOVER - PROMOTE SLAVE TO MASTER UPON FAILURE
  • 14. Binlog conversion to Avro Streaming of Change Data Capture events (binlog) to big data environments Data Streaming Change Data Capture Clients EMR MariaDB ColumnStore Big Data Platforms AVRO or JSON events Streaming MariaDB Master Binlog to AVRO conversion