MaxScale Overview Jon Day SkySQL * © SkySQL Ab. Commercial in Confidence *
May 11, 2015
MaxScale Overview
Jon Day
SkySQL
* © SkySQL Ab. Commercial in Confidence *
What is MaxScale?
• SkySQL's MaxScale is a sophisticated query routing layer.• Main benefits include:
– Availability – Allowing automated of routing of database operations to available servers, avoiding failed servers
– Scaling – Partitions the database load between a number of servers.– Filtering and logging capabilities– Authentication layer– Multiple protocol support
• Open source, being released initially as Alpha.
• Supports MySQL and MariaDB 5.5 and later– Supports Galera Cluster in addition to MySQL and MariaDB replication
– Supports MHA
* © SkySQL Ab. Commercial in Confidence *
MaxScale Objectives
● To be highly scalable● Lightweight with small footprint● Extendable● Minimum possible latency● Highly available● Provide authentication● Must be transparent to the application
MaxScale Core
● Event driven I/O Processor● Polling, event driven mechanism that is responsible for
dispatching events to the various modules that make up MaxScale
● Events in Maxscale = Network requests, such as:● Handling an incoming connection on a listener socket● Incoming data for a client connection● Data arriving on a connection from a backend data server● A socket error on one of the client or database
connections● A socket closure
* © SkySQL Ab. Commercial in Confidence *
●
MaxScale is located between the application and database
MaxScale Installation
Download and Unpack
Starting MaxScale
Environment and Command Line
Validating Installation
UID/PWD: admin / skysql
Configuration (part 1)
Configuration (part 2)
Possible Future Functionality Ideas
● Database firewall● Auditing and Logging● HA for non MySQL and MariaDB databases● Connection load balancing with MariaDB 10
and Spider● Statement based load balancing
For more information
• Github: https://github.com/skysql/MaxScale – Source code and documentation
• Visit http://www.skysql.com for more information– http://www.skysql.com/blogs/ivan-zoratti/close-encounter-maxscale– Conf guide: http://www.skysql.com/node/1939– Diagnostics guide: http://www.skysql.com/node/1940
* © SkySQL Ab. Commercial in Confidence *
Thank You!
Twitter: @skysql
Facebook: http://facebook.com/skysql
LinkedIn: http://www.linkedin.com/companies/1214250
Google+: https://plus.google.com/u/0/+Skysqlab/posts