Monitoring Galera With MONyog
Monitoring Galera With MONyog
Monitoring Galera With MONyog
www.mariadb.com
e:
[email protected]
Monitoring
Galera
with
MONyog
Abstract
This
white
paper
introduces
the
drawbacks
of
traditional
MySQL
High
Availability
set
ups
and
suggests
a
modern,
best-in-class
High
Availability
solution
utilising
MONyog
and
Galera.
The
basics
of
Galera
and
MONyog
are
explained,
and
the
steps
to
setting
up
the
combined
solution
is
gone
through
step-
by-step.
1 Introduction
A
key
aspect
of
managing
a
database
system
is
being
able
to
monitor
it,
review
the
key
parameters
and
performance
metrics
over
time,
send
alerts
when
there
are
issues
and
identify
bottlenecks.
One
of
the
most
well-known
and
respected
products
for
monitoring
MySQL
is
MONyog.
For
customers
with
a
support
subscription
from
MariaDB,
MONyog
is
a
key
differentiator..
Similarly,
High
Availability
(HA)
of
database
systems
have
matured
and
become
much
more
affordable,
now
providing
24x7
database
connectivity
for
your
mission-critical
applications.
In
the
past,
MySQL
HA
was
based
on
expensive,
legacy
availability
solutions
that
used
physical
storage
or
MySQL
Replication.
Both
of
these
solutions
have
drawbacks:
Whilst
a
storage-based
solution
offers
redundancy
of
the
physical
media
it
does
not
allow
more
than
one
MySQL
instance
to
access
storage
at
the
same
time.
This
makes
for
slow
failover.
MySQL
Replication
uses
a
complex
Asynchronous
or
Semi-synchronous
setup.
This
means
that
failover
has
to
wait
for
the
replication
to
catch
up.
Allowing
multiple
masters
when
using
MySQL
Replication
is
possible,
but
it
can
be
unreliable
and
there
is
no
conflict
detection.
At
MariaDB,
we
believe
that
MONyog
combined
with
Galera
overcomes
this
issues
to
provide
a
modern,
best-in-class
High
Availability
solution
for
MySQL
users.
3 Introduction
to
MONyog
MONyog
is
a
powerful
tool
for
monitoring
MySQL
and
related
database
technologies.
It
includes
features
that
store
performance
data
and
settings,
customize
the
data
that
is
retrieved,
graph
data
over
time
and
send
alerts.
Its
also
contains
a
knowledge
base
so
a
user
of
the
system
is
understands
what
all
the
metrics
mean
and,
when
there
is
an
alert,
suggest
appropriate
actions.
Since
it
runs
as
a
web
service,
MONyog
is
accessible
from
any
browser,
which
limits
installation
requirements
to
one
machine
only.
Written
in
C/C++
in
the
lower
layers,
MONyogs
user
Interface
is
AJAX-based
to
allow
for
responsive
and
effective
interaction.
MONyog
is
also
user-extensible
and
exposes
its
data
as
JavaScript.
This
means
that
adding
user-defined
objects
is
easy
and
uses
familiar
technologies.
Best
of
all,
MONyog
is
already
pre-configured
to
handle
monitoring
of
a
Galera-based
MySQL
cluster.
File
Name:
Monitoring
Galera
With
MONyog.docx
Page
2
w:
www.mariadb.com
e:
[email protected]
With
the
monitors
in
place,
we
can
now
start
to
do
some
more
interesting
things.
With
this
in
place,
lets
now
add
a
second
Chart,
this
time
showing
the
percentage
of
the
time
that
Galera
replication
is
paused.
To
do
this,
create
the
Graph
in
the
same
way
as
above,
choosing
appropriate
names
again,
but
in
Series
Values
you
instead
put:
[ToInt(MONyog.MySQL.GlobalStatus.wsrep_fl
ow_control_paused)
*
100]
5 References
MariaDB
provides
subscriptions
for
MySQL
/
MariaDB
and
Galera
that
includes
MONyog:
www.mariadb.com
Codership
develops
Galera:
www.codership.com
Webyog
develops
database
tools,
among
the
MONyog:
www.webyog.com