Capacity metrics in daily MySQL checks. Vladimir Fedorkov MySQL and Friends Devroom FOSDEM 15

Similar documents
Reading MySQL fingerprints

MySQL Performance Tuning 101

The Idiot s Guide to Quashing MicroServices. Hani Suleiman

MySQL Performance Tuning

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including:

How to Stop Hating MySQL: Fixing Common Mistakes and Myths

MySQL Performance Improvements

<Insert Picture Here> Looking at Performance - What s new in MySQL Workbench 6.2

"SQL Monitor now makes the team look more professional."

Effective Testing for Live Applications. March, 29, 2018 Sveta Smirnova

Chris Skorlinski Microsoft SQL Escalation Services Charlotte, NC

MySQL Performance Optimization and Troubleshooting with PMM. Peter Zaitsev, CEO, Percona

Traffic is coming! OMG moments

I Want To Go Faster! A Beginner s Guide to Indexing

There And Back Again

Jens Bollmann. Welcome! Performance 101 for Small Web Apps. Principal consultant and trainer within the Professional Services group at SkySQL Ab.

Background. Let s see what we prescribed.

Manual Trigger Sql Server 2008 Update Inserted Rows

MySQL Database Administrator Training NIIT, Gurgaon India 31 August-10 September 2015

MySQL Database Scalability

Scaling Without Sharding. Baron Schwartz Percona Inc Surge 2010

Why we re excited about MySQL 8

Writing High Performance SQL Statements. Tim Sharp July 14, 2014

A quick tour of MySQL 8.0 roles

Monday, September 15, 14

vrealize Operations Management Pack for vsan 1.0 Guide

Mastering the art of indexing

Infrastructure Tuning

Independent consultant. Oracle ACE Director. Member of OakTable Network. Available for consulting In-house workshops. Performance Troubleshooting

MySQL Server Performance Tuning 101

Mobile Number Portability (MNP) - New Rules of the Game? Thursday, 20 January :18

MEASURE YOUR BAD SELF CARSON ZIMMERMAN

Memory Hierarchy. Memory Flavors Principle of Locality Program Traces Memory Hierarchies Associativity. (Study Chapter 5)

How to pimp high volume PHP websites. 27. September 2008, PHP conference Barcelona. By Jens Bierkandt

Your Speakers. Iwan e1 Rahabok Linkedin.com/in/e1ang

Independent consultant. Oracle ACE Director. Member of OakTable Network. Available for consulting In-house workshops. Performance Troubleshooting

Cold, Hard Cache KV? On the implementation and maintenance of caches. who is

The Care and Feeding of a MySQL Database for Linux Adminstrators. Dave Stokes MySQL Community Manager

How To Rock with MyRocks. Vadim Tkachenko CTO, Percona Webinar, Jan

MySQL Storage Engines Which Do You Use? April, 25, 2017 Sveta Smirnova

What's New in MySQL 5.7?

Background. $VENDOR wasn t sure either, but they were pretty sure it wasn t their code.

Sucuri Webinar Q&A HOW TO IDENTIFY AND FIX A HACKED WORDPRESS WEBSITE. Ben Martin - Remediation Team Lead

Pandora FMS Administrator Manual MySQL Server Monitoring in Unix

MySQL Performance Optimization and Troubleshooting with PMM. Peter Zaitsev, CEO, Percona Percona Technical Webinars 9 May 2018

davidklee.net heraflux.com linkedin.com/in/davidaklee

How To Manage Disk Effectively with MPG's Performance Navigator

5/2/2015. Overview of SSIS performance Troubleshooting methods Performance tips

Best Practices for MySQL Scalability. Peter Zaitsev, CEO, Percona Percona Technical Webinars May 1, 2013

Designing dashboards for performance. Reference deck

Performance Monitoring

LAMP Tuning. Sean Walberg Network guy, server ninja

Manage MySQL like a devops sysadmin. Frédéric Descamps

Troubleshooting Best Practices

Lesson 17 Transcript: Troubleshooting

MySQL Performance Tuning 101

CASE STUDY FINANCE. Enhancing software development with SQL Monitor

It s possible to get your inbox to zero and keep it there, even if you get hundreds of s a day.

Vijay Mahawar

RavenDB & document stores

Triangle SQL Server User Group Adaptive Query Processing with Azure SQL DB and SQL Server 2017

SQL Tuning Reading Recent Data Fast

Optimizing MySQL Configuration. Peter Zaitsev,CEO Technical Webinars Series March 2012

MySQL 5.0 Certification Study Guide

Unit Four: Portable Devices

MEAP Edition Manning Early Access Program Learn Windows Server in a Month of Lunches Version 5

DOWNLOAD OR READ : MY HALF OF THE CONVERSATION PDF EBOOK EPUB MOBI

Top 10 Essbase Optimization Tips that Give You 99+% Improvements

Optimizing MySQL Configuration

More Interactive Service is Now Available

Choosing Hardware and Operating Systems for MySQL. Apr 15, 2009 O'Reilly MySQL Conference and Expo Santa Clara,CA by Peter Zaitsev, Percona Inc

CASE STUDY FINANCE Digital Outsource Services

Google Drive: Access and organize your files

MySQL Query Tuning 101. Sveta Smirnova, Alexander Rubin April, 16, 2015

Manual Mysql Query Cache Hit Rate 0

How Oracle Essbase Aggregate Storage Option. And How to. Dan Pressman

Optimizing MySQL Configuration. Peter Zaitsev,CEO OSCON 2012, Portland,OR July 20, 2012

Resolving and Preventing MySQL Downtime

Switching to Innodb from MyISAM. Matt Yonkovit Percona

Database Architectures

Lesson 3 Transcript: Part 1 of 2 - Tools & Scripting

Lifehack #1 - Automating Twitter Growth without Being Blocked by Twitter

Penguin/Panda SEO Interview with Eric Lanchares

VMWARE VREALIZE OPERATIONS MANAGEMENT PACK FOR. Nutanix. User Guide

XP: Backup Your Important Files for Safety

Architecting & Tuning IIB / extreme Scale for Maximum Performance and Reliability

Practical MySQL Performance Optimization. Peter Zaitsev, CEO, Percona July 02, 2015 Percona Technical Webinars

Here, we consider Database bottleneck as a problem and provide solution for some of common problems.

Fast and Efficient A/B Testing Analysis with Shiny and SQL. Charlie Thompson Storyblocks

Essential Marketing Tactics for Construction Companies TWEET ME

Lesson 2: Using the Performance Console

Maximizing your Computer System with Dolphin. Steve McEvoy March 4 th, 2017 Nashville, TN

Analyze MySQL Query Performance with Percona Cloud Tools

16 Sharing Main Memory Segmentation and Paging

Open Source Database Performance Optimization and Monitoring with PMM. Fernando Laudares, Vinicius Grippa, Michael Coburn Percona

Operational Efficiency Hacks. John Allspaw Operations Engineering, Flickr

Eanes ios5 Upgrade Guide

Copyright 2018, Oracle and/or its affiliates. All rights reserved.

Delegates must have a working knowledge of MariaDB or MySQL Database Administration.

David Werth IDEAS Design & Grayout Aerosports Albuquerque, q NM & Indianapolis, IN

Transcription:

Capacity metrics in daily MySQL checks Vladimir Fedorkov MySQL and Friends Devroom FOSDEM 15

About me Performance geek blog http://astellar.com Twitter @vfedorkov Enjoy LAMP stack tuning Especially MySQL

Disasters happens Monitoring alerts Boss calls Customers scream at you in the middle of the night You don t want that

Reactive or proactive? When monitoring triggers it s already too late Walking though all the 100s graphs is boring And inefficient Need to find some balance Where to look? I see something, but how it affects MySQL? Let s walk though some metrics

System-level checks CPU/RAM/IO checks is a must Network check is good Only indicating BEEEEEEEG issues 10% CPU usage, is it good or bad? Disk space check is important Sometimes more than you can imagine Especially if you left query log enabled overnight They re not enough to ensure safety

MySQL metrics General load Read-to-write rate IO utilization Locks and waits Connections Query-related metrics

General load Queries Questions Including replicated statements Read to write ratio How often your data has changed Giving you idea about IO pressure Cache efficiency

IO pressure Handler_read_rnd Random reads, bad for old SATA, ok for SSD Innodb_data_writes and Innodb_data_reads IO pressure from queries Innodb_data_written and Innodb_data_read Innodb_dblwr_writes & Innodb_log_writes For MyISAM Key_read_requests vs Key_reads

Locks Innodb_log_waits Too small log buffer, too big writes Table_locks_immediate is okay Table_locks_waited is not SHOW ENGINE INNODB STATUS\G will show you more unpleasant things

Networking and connections Check netstat for network interface errors MySQL Threads_created Connections Max_used_connections will show you peak Aborted_clients: authenticated users Because of timeout Didn t disconnect correctly max_allowed_packet Aborted_connects: unauthenticated users Auth failed, access denied

Query related MySQL is not slow queries are. Statistics are not showing you big picture It s showing you if there are bad things Trying to narrow down possible issues

Every Select_scan is Full Table scan SELECT * FROM table WHERE DAY(FROM_UNIXTIME(`ts`)) = 205 WHERE deleted!= 1 WHERE id NOT IN (1,2,3,,10) WHERE url LIKE %somthing% Don t confuse with LIKE somthing%! ORDER BY RAND() Select_full_join Full scan on the joined table

Temporary tables Created_tmp_tables Bad! Created_tmp_disk_tables Very bad! If you have TEXT or BLOG it will hit disk When used? GROUP BY Subqueries DISTINCT + ORDER BY

Does metrics enough? They could show some issues But doesn t provide big picture Because it s aggregated Query review is aggregated too But show an evil So do run pt-query-digest right after morning pray about server stability

Summarizing System review is a must dmesg could be a Stephen King book Especially on the cloud Statistics gives you good idea about general capacity and potential issues Query review narrow down bad guys Walking though all this stuff every day is: B.O.R.I.N.G!

Tools? Cloud.percona.com Vividcortex.com Poor man mysql-health-check script

MySQL-health-check I ve created few years ago to automate checks Show only vital information Based on real customer s issues Generating query digest itself Recently published github.com/vlad-github/mysql-health-check It s NOT a replacement for monitoring! Feedback is really welcome!

What else to do? Buy High Performance MySQL book Find Sveta Smirnova and ask her for discount for he book MySQL Troubleshooting Find slides at http://astelllar.com There are other presentations about MySQL

QUESTIONS!

THANK YOU!