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

23
MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev 4 October 2016

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

Page 1: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

MySQL Monitoring withPercona Monitorign and

ManagementPeter Zaitsev

4 October 2016

Page 2: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

2

Many Sides of Monitoring

Alerting (When things get bad)

Investigations and Diagnostics

(Finding Root Cause)

Capacity Planning (Preventing

resource exhaustion)

Page 3: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

Alerting

Page 4: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

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

Page 5: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

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

Page 6: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

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 ?

Page 7: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

7

Signal Versus Noise

High Noise Alerting systems fail due to Human Psychology

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

Page 8: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

8

Learn More on Alerting

• http://bit.ly/AlertingPhilosophy

Fantastic Alerting

Philosophy by Rob

Ewaschuk

Page 9: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

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

Page 10: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

Investigations and Diagnostics

Page 11: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

11

What does MySQL do ?

Responds Application Requests

Page 12: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

12

Criteria

Response (Available)

Quickly (Performance)

Right (Correctness)

Page 13: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

13

Two Ways to Look

Query Focused

System Focus

Page 14: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

14

Problem Caused By

Application

• Too many Queries

• Bad Queries

MySQL

• Choosing Bad Plan

• Contention Issues

• Locking

Hardware and Environment

• CPU• Disk• Memory • Network

Page 15: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

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

Page 16: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

16

Meet PMM

Note: Name is futureproof, currently doing Monitoring not Management

Page 17: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

17

Inside Percona Monitoring and Management

Page 18: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

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

Page 19: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

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

Page 20: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

20

Check it Out

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

Page 21: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

Lets Explore it Together!(Demo)

Page 22: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

22

Rate My Session!

Page 23: MySQL Monitoring with Percona Monitorign and … · MySQL Monitoring with Percona Monitorign and Management Peter Zaitsev. ... (NAGIOS)  ... PowerPoint Presentation

23

Thank You Sponsors!!