If you have followed this series of blogs (Introduction in
part 1, Setting up the cluster in part 2 and Installing and configuring MaxScale
in part 3), you should now have MaxScale up and
running on a Cluster using MariaDB Replication. But as I said
when I left off in Part 3, there is more to it.
To begin with, let's look at how the replication system works.
Let's insert some more data through MaxScale, this should end up
with the master and the replication system will handle making
this available on the slaves. So on the Client machine
(192.168.0.167), logged in a root, do:
# mysql -h …
The first blogpost in this series did a quick introduction to MaxScale, but now it is time start getting our hands dirty. We will get a more practical view on MaxScale and begin to put it to work. The following is based on a simple Proof of Concept that I did recently. The application is a mid-size web-based online shop where scalability is becoming an issue. They use PHP and with an old and rather inflexible framework, so even though changing how the database is used is possible, it's not easy and having database routing in the application code isn't a very good idea either.
As you've heard, MaxScale was recently released, and we'd love for you to try it out and let us know your thoughts.
Anders Karlsson and Ivan Zoratti have written some excellent posts on downloading and setting it up, so if you're intersted in that, please see their respective posts for quick, detailed instructions.
This third post in this series of blogs about MaxScale is finally
getting where you want to go: Install and configure MaxScale. The
first blog in this series was an overview of
what MaxScale is and the second about how to set up a Cluster of
MariaDB servers, using MariaDB Replication, for MaxScale to
access. But now it's time to introduce MaxScale.
If you skipped the second post as you already know how to set up
MariaDB with Replication and all that, be remineded that I will
use the same Linux server setup as outlined there even for the
MaxScale server and for a client to do some testing, and I
recommend you stick with that for now (for MariaDB itself you can
use any relevant setup you want, MaxSCale doesn't …
The first blogpost in this series did a quick
introduction to MaxScale, but now it is time start getting our
hands dirty. We will get a more practical view on MaxScale and
begin to put it to work. The following is based on a simple Proof
of Concept that I did recently. The application is a mid-size
web-based online shop where scalability is becoming an issue.
They use PHP and with an old and rather inflexible framework, so
even though changing how the database is used is possible, it's
not easy and having database routing in the application code
isn't a very good idea either.
The scalability issues affects reads, but as all traffic is
directed to one database server, when this server gets slow,
writes, like when entering an order, gets very slow, and this is
unacceptable. So what was needed is a way to redirect reads to …
As many of you know, both MariaDB Enterprise and MaxScale have been released and are now available for use.
Since they are both so new, I just wanted to let everyone know Ivan Zoratti will conducting a webinar next week discussing both of these technologies.
I’m looking forward to it, and should anyone out there be interested in either MDBE or MaxScale, we hope you’ll attend, and get any questions you might have answered.
When: February 6, 2014 – 6:00pm CET
Sign up now here:
http://www.skysql.com/why-skysql/webinars/…maxscale-0
MaxScale for the rest of us - Part 1 SkySQL released MaxScale as
Open Source on github a few weeks ago. For some instructions on
how to install and configure it, Ivan Zoratti has written a
blog about that, and Mark Riddoch has written
about why we need MaxScale here, but
what I will try in a series of blogs is to describe what MaxScale
is, in terms of what you can do with it, and to put it into
context, so that you have an idea why you would want to
install it in the first place. I will also show how to configure
and manage MaxScale. This first post is a quick introduction to
MaxScale.
So what is MaxScale then? Mark, and many others, call it a Proxy,
and that is partly true, if …
MaxScale is the new proxy server from the SkySQL/MariaDB team. It
provides Connection Load Balancing (CLB) and Statement Load
Balancing (SLB) out of the box. This post is a [relatively] quick
“how to” install, configure and test SLB with the read/write
splitting module.
Step 1 - Server preparationIf you do not have many HW resources,
you may run everything on a single Linux instance, but the best
way to test MaxScale is to use at least 4 servers: one for
MaxScale and for the client apps, one as Master and two as slaves
- so, 4 in total. In this post I am going a bit further, I will
use 5 servers:
Max 0 - For client apps (192.168.56.20)
Max 1 - The master server (192.168.56.21)
Max 2 - The first slave (192.168.56.22)
Max 3 - The second slave (192.168.56.23)
Max 4 - The third slave (192.168.56.24)
Max 6 - The MaxScale server (192.168.56.26)
In order to do proper tests …