Select Page

OSMC 2021 | Advanced MySQL optimization and troubleshooting using PMM 2

by | Jan 18, 2022 | OSMC

This entry is part 4 of 23 in the series OSMC 2021

Last November OSMC 2021 took place. With me being part of NETWAYS since September 2021 it also has been my first OSMC. In the heart of Open Source many speakers talked about their experiences, shared knowledge and showcased what can be done in the field of monitoring using Open Source.
I want to give you a small glimpse into one of the talks we have had.

 

The importance of data

In our modern age data is probably the most valuable resource on our planet when looking at it from a monetary point of view. Businesses big and small alike use data to guide their behaviour, make decisions and plan their future.

Long gone are the days where simple spreadsheets did suffice. Modern companies rely on databases and their efficiency to support their work processes, sometimes even making them possible in the first place.

In his talk at OSMC 2021 Peter Zaitsev, co-founder of Percona, discusses what certain parties want regarding databases, where problems may lie and he also offers a solution to some of the laid out problems.

For most developers a database should simply just work in a reliable fashion. It should be available when needed and deliver correct information in a timely manner.
Since time also means money efficiency becomes especially important to people in management who usually want any given database to cost as little money as possible.

Problems

Possible problems can arise in a lot of different spots. Imagine for example a developer who decides to query certain information every minute to make sure the data is up to date even though the specific information does not change that frequently.

Clearly this would put a lot of unnecessary load onto the database. That’s why looking at the application side is also important when optimizing databases.

Now let’s think of a different scenario where every application makes good queries. Even ideal circumstances on the application side do not guarantee that a database will run efficiently or even effectively.

Bad or faulty hardware – CPU, RAM and storage alike – can immensely decrease the efficiency of any database. Even good queries can run slowly on bad hardware.

Other processes besides database related ones can also take away performance that would otherwise be beneficial to the queries.

Simply the way a database is structured can also decrease its own efficiency.

A solution – PMM2

Percona Monitoring and Management (PMM) 2 addresses the aforementioned problems and helps identifying them.

PMM is an Open Source database monitoring solution that offers one singular place to monitor all of your databases. This is achieved by using one server and a client agent per system you want to monitor. In the web interface you can look at a dashboard with all the gathered information together with some visualizations.

Some of the information PMM shows:

  • the impact specific queries have over time
  • information about the database tables that a relevant to a certain query
  • the amount of load specific applications cause
  • the amount of rows searched through before a query delivers a result
  • CPU and memory utilization sorted by processes
  • disk I/O latency

Using the information PMM delivers you can identify oversubscribed queries and applications which cause a lot of load, predict future scaling needs and even find those databases that are just not structured in an efficient way to begin with.

If you want to know how all of this can look like their PMM demo can give you a good first impression.
For further information also check out their documentation or just go ahead and watch the talk.

 

Full talk and more from and about OSMC 2021

Watch the whole talk by Peter Zaitsev here:

https://www.youtube.com/watch?enablejsapi=1&autoplay=0&cc_load_policy=0&cc_lang_pref=&iv_load_policy=1&loop=0&modestbranding=1&rel=1&fs=1&playsinline=0&autohide=2&hl=en_US&theme=dark&color=red&controls=1&" class="__youtube_prefs__ epyt-facade no-lazyload" data-epautoplay="1" >YouTube playerhttps://www.youtube.com/watch/maxresdefault.jpg" />

 

Since OSMC 2021 is unfortunately over we still have something for you: Did you already check out this year’s conference archives? They provide you slides and videos of each talk and also some photographs of the conference itself.

OSMC 2022 will take place from November 14 – 16 and we’re already looking forward  to meeting you all again!

Stay tuned!

Matthias Döhler
Matthias Döhler
Consultant

Seit erfolgreichem Abschluss seiner Ausbildung zum Fachinformatikter für Systemintegration bei NETWAYS bringt sich Matthias als Consultant ein. Dabei interessieren ihn besonders die Themen Icinga und Ansible (er nimmt sie sogar mit nach Hause). Neben seinem Interesse an der IT begeistert er sich außerdem für Horrorfilme - und seien sie noch so schlecht. Den klassischen Beschäftigungen wie Freunde treffen und die Sonne im Freien genießen geht er ebenso nach wie dem Abtauchen in diverse Videospielwelten. Mamma mia!

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

More posts on the topic OSMC

OSMC 2024 | Workshop Update!

Earlier, we announced the first set of workshops for this year's Open Source Monitoring Conference. Now, we’re excited to announce two additional workshop topics that will be available on November 19.   OpenTelemetry Fundamentals This workshop, held by Markus...

Submit Your Talk for OSMC 2024!

Attention all tech enthusiasts, developers, and IT professionals! The Open Source Monitoring Conference (OSMC) 2024 is fast approaching, and this is your reminder call to submit your talks! If you have deep technical insights, innovative solutions, or groundbreaking...

Trainings

Web Services

Events

Series



Other posts in series: