MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and...

Post on 12-Sep-2018

234 views 0 download

Transcript of MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and...

MySQL Monitoring withPercona Monitorign and

ManagementPeter Zaitsev

4 October 2016

2

Many Sides of Monitoring

Alerting (When things get bad)

Investigations and Diagnostics

(Finding Root Cause)

Capacity Planning (Preventing

resource exhaustion)

Alerting

4

Focus on Service vs Component

Service

• Web Site Overall• General Availability and

Performance• Redundancy Loss• Other “global” issues ie

correctness• Immediate Action required 24/7• Automated Actions for Healing

and Scaling

Component

• Single Web Server• Remove from the service if

poor availability or Performance

• Self Healing (especially cloud)

• 24/7 optional

5

Proactive and Reactive

Proactive

• Needs attention to prevent future problem

• Working Hours• Replication Capacity close to

limit• Will run of space in a week• Backup is taking longer than

desired

Reactive

• When things are bad or problem eminent

• 24/7/365• Server Crashed• Replication Broke• Servicing Queries Slowly• Backup Failed

6

Service Impacting and Operational

Service Impacting

• Directly Impacting Application

• Service Down• Service Slow

Operational

• Are backup being taken?

• Is configuration valid/secure ?

• Is replication running and up to date ?

7

Signal Versus Noise

High Noise Alerting systems fail due to Human Psychology

https://en.wikipedia.org/wiki/The_Boy_Who_Cried_Wolf

8

Learn More on Alerting

• http://bit.ly/AlertingPhilosophy

Fantastic Alerting

Philosophy by Rob

Ewaschuk

9

What do we use at Percona ?

Percona Monitoring Plugins (NAGIOS)

http://bit.ly/PerconaMP

Working on next generation Alerting for

Percona Monitoring and Management

Investigations and Diagnostics

11

What does MySQL do ?

Responds Application Requests

12

Criteria

Response (Available)

Quickly (Performance)

Right (Correctness)

13

Two Ways to Look

Query Focused

System Focus

14

Problem Caused By

Application

• Too many Queries

• Bad Queries

MySQL

• Choosing Bad Plan

• Contention Issues

• Locking

Hardware and Environment

• CPU• Disk• Memory • Network

15

With this in mind we built PMP

Percona Monitoring and Management http://bit.ly/GetPMM

Query Analytics – Looking at the Queries Side

Metrics – Looking at the Operating System and MySQL Side

Built by using Best in class Open Source Components

100% Free and Open Source

Available now as GA

16

Meet PMM

Note: Name is futureproof, currently doing Monitoring not Management

17

Inside Percona Monitoring and Management

18

For the User ?

Get Docker Container for “Server Part”

Install the “Agent” on MySQL or MongoDB Servers

Point the agent to the right server location

19

Our Grand for Plan for PMM

To Become Open Source Monitoring and Management solution for MySQL and MongoDB

Focus on Ease of use for Non-Experts

But have depth for Experts to solve most complicated problems

Actionable advice as automated as possible

Work in and out of the Cloud

Do not reinvent bicycle. Use Best in Class Open Source Components

20

Check it Out

Live Demo is running at http://pmmdemo.percona.com

Lets Explore it Together!(Demo)

22

Rate My Session!

23

Thank You Sponsors!!