Effective MySQL Monitoring. Baron Schwartz March 2012



Similar documents
Monitoring MySQL. Presented by, MySQL & O Reilly Media, Inc. A quick overview of available tools

Using Cacti To Graph MySQL s Metrics

Monitoring MySQL. Kristian Köhntopp

5 Percona Toolkit tools that could save your day. Stéphane Combaudon FOSDEM February 3rd, 2013

MySQL and the Open Source Sphere. openark.org

Keep an eye on your PostgreSQL clusters

SCF/FEF Evaluation of Nagios and Zabbix Monitoring Systems. Ed Simmonds and Jason Harrington 7/20/2009

Scaling Pinterest. Yash Nelapati Ascii Artist. Pinterest Engineering. Saturday, August 31, 13

Topics. CIT 470: Advanced Network and System Administration. Why Monitoring? Why Monitoring? Historical Monitoring Processes. Historical Monitoring

MySQL synchronous replication in practice with Galera

Percona Server features for OpenStack and Trove Ops

How To Monitor Mysql With Zabbix

Dave Stokes MySQL Community Manager

Running MySQL on CentOS Linux. Peter Zaitsev April 14, 2014

CAREN NOC MONITORING AND SECURITY

COMPARING NETWORK AND SERVER MONITORING TOOLS

SCALABILITY. Hodicska Gergely. Web Engineering Manager as Ustream. May 7, 2012

CIT 470: Advanced Network and System Administration. Topics. Why Monitoring? System Monitoring

Network Management & Monitoring Overview

Monitoring MySQL. Geert Vanderkelen MySQL Senior Support Engineer Sun Microsystems

Introduction to Network Monitoring and Management

Network Management & Monitoring Overview

Network Monitoring and Management Introduction to Networking Monitoring and Management

TPAf KTl Pen source. System Monitoring. Zenoss Core 3.x Network and

A SURVEY ON AUTOMATED SERVER MONITORING

Choosing Storage Systems

How to choose High Availability solutions for MySQL MySQL UC 2010 Yves Trudeau Read by Peter Zaitsev. Percona Inc MySQLPerformanceBlog.

Network Management & Monitoring Overview

MySQL Backup IEDR

System Monitoring Using NAGIOS, Cacti, and Prism.

Monitoring PostgreSQL database with Verax NMS

Managing MySQL Scale Through Consolidation

Why Nagios and Server Monitoring Are Failing Modern Apps

Using New Relic to Monitor Your Servers

Application Performance Monitoring of a scalable Java web-application in a cloud infrastructure

Designing, Scoping, and Configuring Scalable Drupal Infrastructure. Presented by David Strauss

Geeks with...sql Monitor

Monitoring MySQL database with Verax NMS

MySQL Strategy. Morten Andersen, MySQL Enterprise Sales. Copyright 2014 Oracle and/or its affiliates. All rights reserved.

Avoiding Pain Running MySQL in the Cloud

JBOSS OPERATIONS NETWORK (JBOSS ON) MONITORING

Products and Solutions

AfNOG 2010 Network Monitoring and Management Tutorial. Introduction to Networking Monitoring and Management

Application Performance Management for Enterprise Applications

Monitoring Tools for Network Services and Systems

Integrated Monitoring for PostgreSQL

Using SQL Monitor at Interactive Intelligence

High Availability Solutions for the MariaDB and MySQL Database

Network Monitoring. Review of Software

Automate Your BI Administration to Save Millions with Command Manager and System Manager

Preparing for the Big Oops! Disaster Recovery Sites for MySQL. Robert Hodges, CEO, Continuent MySQL Conference 2011

Maintaining Non-Stop Services with Multi Layer Monitoring

Network Monitoring and Management Introduction to Networking Monitoring and Management

USING OPEN SOURCE SOFTWARE IN DAILY ISP OPERATIONS

Enterprise-level EE: Uptime, Speed, and Scale

Monitoring Best Practices for

Zero-Downtime MySQL Backups

Optimization of QoS for Cloud-Based Services through Elasticity and Network Awareness

The new services in nagios: network bandwidth utility, notification and sms alert in improving the network performance

High Availability Solutions for MySQL. Lenz Grimmer DrupalCon 2008, Szeged, Hungary

Deploying Database clusters in the Cloud

XtraBackup. Vadim Tkachenko CTO, Co-Founder, Percona Inc Percona Live SF Feb 2011

Data Driven Success. Comparing Log Analytics Tools: Flowerfire s Sawmill vs. Google Analytics (GA)

MONyog White Paper. Webyog

Using Microsoft Performance Monitor. Guide

MONyog White Paper. Webyog

Beginning in 2007 and, for the following five years, Open Source Software (OSS)

Open Source Business Service/Process Management

Monitoring and Alerting

High-availability with Galera Cluster for MySQL

Part I: Overview. Core concepts presented:

XtraBackup: Hot Backups and More

Designing a Robust Monitoring System

UNIVERSITY OF KHARTOUM NETWORK MONITORING AND MANAGEMENT SYSTEM BY ABDULLA BASHIR ABDULLA KUBUR INDEX NO Supervisor Prof.

FIGURE Selecting properties for the event log.

Notes on network monitoring, by Oliver Gorwits

Free Network Monitoring Software for Small Networks

Patch Management. Module VMware Inc. All rights reserved

Andrew Moore Amsterdam 2015

Monitoring Best Practices for

Monitor the Heck Out Of Your Database

Top 3 Issues and Questions (in Network Monitoring!) Developing a Network Monitoring Architecture! infotex. Dan Hadaway CRISC Managing Partner, infotex

High Performance MySQL Choices in Amazon Web Services: Beyond RDS. Andrew Shieh, SmugMug Operations smugmug.

The Complete Performance Solution for Microsoft SQL Server

MySQL backup and restore best practices. Roman Vynar September 21, 2015

MySQL always-up with Galera Cluster

Oracle Enterprise Manager 12c Microsoft SQL Server Plug-in version

HP LeftHand SAN Solutions

SkySQL Data Suite. A New Open Source Approach to MySQL Distributed Systems. Serge Frezefond V

Your eyes in the network

Search Big Data with MySQL and Sphinx. Mindaugas Žukas

CURRENT STATE OF ICINGA

Результат запроса: Cacti weathermap

Modern Web development and operations practices. Grig Gheorghiu VP Tech Operations Nasty Gal

5 Mistakes to Avoid on Your Drupal Website

High Performance Ruby on Rails and MySQL. David Berube

Introduction to system monitoring with Nagios, Check_MK and Open Monitoring Distribution (OMD)

MONITORING RED HAT GLUSTER SERVER DEPLOYMENTS With the Nagios IT infrastructure monitoring tool

Performance for Site Builders

10215A Implementing and Managing Microsoft Server Virtualization

Transcription:

Effective MySQL Monitoring Baron Schwartz March 2012

Who Am I?

Who Am I?

Who Am I? Maatkit Percona Toolkit Innotop Monitoring Plugins Aspersa Online Tools JavaScript Libraries

Consulting Percona Server Support Percona XtraBackup Training Percona XtraDB Cluster Conferences Percona Toolkit Engineering Many More

Agenda What Kind of Monitoring? Historical Data, Graphing Fault Detection and Alerting What to Monitor Tools Overview of Nagios Plugins Demo of Cacti Templates

Two Kinds of Monitoring Capturing metrics Detecting faults

Capturing Metrics Useful for troubleshooting, diagnosis, and noticing things Very handy for graphs/charts Typical problem: you're missing the one thing you want What to monitor: everything?

Fault Detection Monitor system health Alert when there are problems

Fault Detection Monitor system health Alert when there are problems Typical problem: spammy alerts Non-actionable False positives /dev/null email filters

Fault Detection Monitor system health Alert when there are problems Typical problem: spammy alerts Non-actionable False positives /dev/null email filters What to monitor: only as much as needed?

Why not do both in one tool? Caching Consistency Staleness

Monitoring Tools

Why So Many?

Why So Many? Thus is born Yet Another Tool

Popular Tools Nagios MRTG Cacti Munin Zabbix Monit MySQL Enterprise MonYOG New Relic Zenoss Circonus and many more

Percona Monitoring Plugins The philosophy: Don't create Yet Another Tool Make existing tools better and easier to use Nagios and Cacti are good enough for most The plugins are 100% free and open source See http:///software

Monitoring with Nagios

Using Nagios Nagios is primarily for fault detection

Using Nagios Nagios is primarily for fault detection Works via plugins Executables that follow specific conventions Exit code Text to STDOUT

Using Nagios Nagios is primarily for fault detection Works via plugins Executables that follow specific conventions Exit code Text to STDOUT Nagios plugins are pretty universal Portable to many/most similar systems Zabbix, etc

Nagios Plugins for MySQL There are too many plugins, too! My suggestion: The official plugins (there are only a couple) Plus Percona's (there is a decent selection)

Why Percona's Plugins? Targeted towards avoiding spammy alerts High quality Good documentation Free

Why Percona's Plugins? Integrates with other Percona tools Easy to extend and customize Highly structured Designed for testability Written in Bourne shell

Why Percona's Plugins?

Why Percona's Plugins? This makes the plugins unit-testable for quality.

Overview of Percona Plugins Operating Environment: LVM snapshots Deleted files Privileges PID files System memory

Overview of Percona Plugins MySQL: Table checksums Replication Processes InnoDB status Deadlocks Arbitrary status counters

What to Monitor Everything appropriate from the previous slides Carefully selected status counters Uptime. If too small, server has restarted Threads_connected approaches max_connections

What NOT to Monitor In general, be cautious with... Cache hit ratios $variable-per-second Threshold-based alerts

What NOT to Monitor Why? A single right threshold is hard to find These are usually not reliable indicators They are also usually not actionable They generate spam alerts!

Writing Custom Checks Use the pmp-check-mysql-status plugin You can easily monitor counters, ratios... Example: -x Threads_running -w 20 -c 40 See the documentation for more examples

Monitoring with Cacti

Cacti Cacti is for metrics collection and graphing Good: easy to install, easy to get started Bad: tedious to template-ize

Cacti Cacti is for metrics collection and graphing Good: easy to install, easy to get started Bad: tedious to template-ize Percona Monitoring Plugins fixes this Ready-made templates Template-generation utilities Easy to extend and customize

Take-away Points Record metrics eagerly Alert cautiously Try not to reinvent the wheel Nothing's perfect; usually 2 systems are best One for graphing/trending/metrics One for fault detection

Monitoring Resources Blog posts about our plugins: http://goo.gl/pcen3 and http://goo.gl/i2xna White papers about preventing downtime: percona.com/about-us/mysql-white-papers

Public and on-premises courses Upcoming dates: Dallas May 14 London May 21 Raleigh June 18 Chicago July 9 See http:///training/

MySQL Conference & Expo April 10-12, Santa Clara /live baron@percona.com @xaprb