Problem Identification and Resolution Using PMM
- A Case Study
Johan Nilsson - Verisure Michael Coburn - Percona
Problem Identification and Resolution Using PMM - A Case Study - - PowerPoint PPT Presentation
Problem Identification and Resolution Using PMM - A Case Study Johan Nilsson - Verisure Michael Coburn - Percona About Us Michael Coburn Johan Nilsson Product Manager, Percona Senior DBA, Verisure Innovation, Sweden PMM and Percona
Johan Nilsson - Verisure Michael Coburn - Percona
2
Product Manager, Percona
a MySQL Consultant
Senior DBA, Verisure Innovation, Sweden johan.nilsson@verisure.com
4
5
○ docker pull percona/pmm-server:1
○ Supports VMware, RedHat Virtualization, Microsoft Systems Center ○ … and VirtualBox!
○ Production-ready AMI running in EC2
6
Search for "pmm" or "Percona Monitoring and Management" https://aws.amazon.com/marketplace/pp/B077J7FYGX
7
○ mysqld_exporter - MySQL metrics ○ node_exporter - Linux/OS metrics ○ qan-agent - Query Analytics
○ Query Analytics
■ QAN API and QAN Application
○ Metrics Monitor
■ Prometheus ■ Grafana
9
○ Malmö (Sweden) ○ Madrid (Spain)
https://verisure.avature.net/careers
1
○ Driving mobile app and web page ○ Clustered, multi-site setup
○ We are in the alarm monitoring business…
1 1
○ Early adopter of Query Analytics, first install 2016 ■ Recommended and demonstrated by Percona consultant
○ Replaced by PMM, first install v1.0.6, 2016
○ Some minor bugs found, and reported to Percona ○ Performance problems in early versions ■ Especially identified when monitoring many servers
○ Close cooperation with Percona support and developer ■ Acting in some cases as a benchmark
1 3
1 4
○ the mysql-instance is leaking memory…
○ query statistics (mysql-cli)
1 5
○ long-running query ○ recurring problem
○ some strange patterns
1 6
1 7
○ possible to get detailed graphs ○ finding problem originating time ○ correlate to application changes
○ searchable slow query statistics
1 8
○ “all” data already collected by the exporter
2
○ comparing cross nodes / sites
○ Cassandra ○ Sybase ASE
sync replication data, but it wasn't getting displayed
executed a statement versus how many times you issued a prepare?
○ Support for large environments ○ Filtering using query metadata and labels ○ Sorting and additional columns ○ Support for PostgreSQL
○ Client Host ○ Schema ○ Client Username ○ Database Server
○ Rows Examined ○ Temporary Tables ○ Filesort
29