SlideShare a Scribd company logo
1 of 64
Download to read offline
MySQL Enterprise Monitor 
Monitoring & Performance Tools for DBAs 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 1 from Slide 12
Safe Harbor Statement 
The following is intended to outline our general product 
direction. It is intended for information purposes only, and may 
not be incorporated into any contract. It is not a commitment to 
deliver any material, code, or functionality, and should not be 
relied upon in making purchasing decision. The development, 
release, and timing of any features or functionality described for 
Oracle’s products remains at the sole discretion of Oracle. 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 2 from Slide 12
Agenda: MySQL Enterprise Monitor 
§ MySQL Customers 
§ Overview & Architecture 
§ Installation & Configuration 
§ Features & Benefits 
§ Questions 
§ Appendix 
§ Additional Info 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 3 from Slide 12
Industry Leaders Rely on MySQL 
Web & Enterprise OEM & ISVs 
Cloud 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 4 from Slide 12
Big Fish Application 
Big Fish Games is a global leader in the online games 
industry and distributes more games worldwide than any 
other online site. 
Key Business Benefit 
MySQL Query Analyzer provides a consolidated view of 
query activities and execution details, and has enabled Big 
Fish Games to quickly identify poorly running queries and 
tackle the root causes directly in the SQL code. 
Why MySQL? 
“With the MySQL Query Analyzer, we were able to identify 
and analyze problematic SQL code, and triple our database 
performance. More importantly, we were able to accomplish 
this in three days, rather than taking weeks.” 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 5 from Slide 12 
Keith Souhrada 
Software Development Engineer 
Big Fish Games
MySQL Enterprise Edition 
Highest Levels of Security, Performance, and Availability 
Oracle Premier 
Lifetime Support 
MySQL Enterprise 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 6 from Slide 12 
Oracle Product 
Certifications/Integrations 
MySQL Enterprise 
High Availability 
Security 
MySQL Enterprise 
Scalability 
MySQL Enterprise 
Monitor/Query Analyzer 
MySQL Enterprise 
Backup 
MySQL Workbench 
MySQL Enterprise 
Audit
Database Application Growth 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 7 from Slide 12 
Situation 
• 2.1 Billion Internet Users 
• 40% Data Growth/Year 
• $1 Trillion eCommerce 
• 600 New Videos/Minute 
• 58 Million Tweets/Day 
Requirements 
• Performance 
• Scale-out 
• Automation
MySQL DBA Checklist 
1. Ensure your production databases are available ✔ 
2. Monitor MySQL performance throughout the day ✔ 
3. Verify that MySQL replication is working properly ✔ 
4. Confirm that backups have completed successfully ✔ 
5. Monitor disk space to ensure MySQL won’t run out of space ✔ 
6. Regularly monitor and identify blocking issues ✔ 
7. Verify there have been no changes to database schema ✔ 
8. Check OS metrics for unusual events ✔ 
9. Check for security vulnerabilities ✔ 
10. Monitor and analyze memory usage ✔ 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 8 from Slide 12
MySQL DBA Challenges 
§ “The database is slow. What needs tuning?” 
§ “What are my most expensive queries?” 
§ “Are indexes optimized?” 
§ “Is replication lag a problem?” 
§ “Did my last backup succeed?” 
§ “When will my disk fill up?” 
§ “When will I need more hardware to scale-out?” 
§ “Has my database schema changed?” 
§ “Are there security vulnerabilities that I need to be concerned about?” 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 9 from Slide 12
What is Performance Schema? 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 10 10
What is Performance Schema anyway? 
ª A storage engine, built for recording instrumentation 
– PERFORMANCE_SCHEMA 
ª A database schema to expose the instrumentation 
– performance_schema 
ª Records latency of events that happen within the server 
ª All latency exposed to picosecond 
ª Also tracks other information as appropriate 
- Bytes, source position, object metadata, etc. 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 11 11 from Slide 12
Performance Schema in MySQL 5.5 
ª 17 Tables 
ª 222 Instruments 
Instrument Event Class 
File IO wait/io/file/% 
Mutexes wait/synch/mutex/% 
Read/Write Locks wait/synch/rwlock/% 
Conditions wait/synch/cond/% 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 12 12 from Slide 12
Performance Schema in MySQL 5.6 
ª 52 Tables (+35) 
ª 545 Instruments (+323) 
Instrument Type Event Class 
Statements statement/% 
Stages stage/% 
Table IO wait/io/table/% 
Table Locks wait/lock/table/% 
Network IO wait/io/socket/% 
Idle Timing idle 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 13 13 from Slide 12
Nested Events 
Stored Programs 
Transactions 
mysql> select * from events_waits_history_long 
******************** 1. row ******************** 
... 
NESTING_EVENT_ID: 3603 
NESTING_EVENT_TYPE: STAGE 
14 
Statements 
Stages 
MySQL 5.7 
MySQL 5.6 
Waits MySQL 5.5 
EVENT_NAME: wait/io/table/sql/handler 
... 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 14 from Slide 12
Performance Schema Configuration 
Configure Description 
Variables like “perf%” Fixed RAM allocation, fixed size 
Status like “perf%lost” Lost events due to too low buffers 
Table “setup_instruments” Turn on/off individual instruments 
Table “setup_consumers” Configure history / summary tables 
Table “setup_objects” Filter events by table/schema 
Table “setup_actors” Filter events by user/host 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 15 15 from Slide 12
Profiling Examples 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 16 16
Analyzing Global Waits 
ª Some mutex events that can affect global concurrency (if high in list): 
ª wait/synch/mutex/innodb/buf_pool_mutex 
ª Increase innodb_buffer_pool_instances 
ª wait/synch/mutex/sql/Query_cache::structure_guard_mutex 
ª Look in to disabling the Query Cache 
ª wait/synch/mutex/myisam/MYISAM_SHARE::intern_lock 
ª Use Innodb … 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 17 17 from Slide 12
Analyzing Global Waits 
ª Some File IO events to watch for (if high in list): 
ª wait/io/file/sql/FRM 
ª Tune table_open_cache / table_definition_cache 
ª wait/io/file/sql/file_parser (view definition parsing) 
ª If high on 5.5, upgrade to 5.6, (which can cache these like tables) 
ª wait/io/file/sql/query_log and wait/io/file/sql/slow_log 
ª Disable the general 
ª Disable or tune what is logged to the slow log (decent long_query_time) 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 18 18 from Slide 12
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 19 1 from Slide 12 
9 
The MySQL SYS Schema
MySQL SYS Schema Overview 
ª Originally called “ps_helper” 
ª Started as a collection of views, procedures and functions, 
designed to make reading raw Performance Schema data easier 
ª Implements many of the common DBA and Developer use cases, 
including many of those shown already 
ª Now bundled within MySQL Workbench 6.1 
ª Available on GitHub 
ª https://github.com/MarkLeith/mysql-sys 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 20 20 from Slide 12
Easy to use with MySQL Workbench 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 21 21
MySQL Workbench Overview 
Design, Develop, Administer, Migrate 
And now adding – Performance • MySQL Database IDE 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 22 from Slide 12 
• Millions of Users 
• Millions of Downloads 
• Windows, OS X, Linux
Performance Schema Reports 
• Connect 
• (DB Click or Open and Connect) 
• Go to Management Tab 
• If needed (Bottom Left) 
• Go to Performance Reports 
• New Performance Section 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 23 from Slide 12
New Screen – Performance Schema Setup 
YES – its on 
NO – its off 
Advanced – 
for power users 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 24 from Slide 12
Open Settings 
Before Running Performance Reports 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 25 from Slide 12
First Run – Install SYS Schema 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 26 from Slide 12
SYS now Added 
• No Tables 
• Only 
• Views 
• SPs 
• Functions 
• Operates on 
• Performance Schema 
• Information Schema 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 27 from Slide 12
sys.<table> versus sys.x$<table> 
• Providing 2 options 
• One is easy 
• To read in a query 
• Other (x$) is easier 
• To compare 
• To Export to spreadsheet 
• To Graph 
• To consume in code 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 28 from Slide 12
SYS - SPs and Functions 
SPs Used to 
simplify management 
FUNCTIONS 
Used for Formatting 
and Simple Checks 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 29 from Slide 12
Many WB Performance Reports 
• WB wrappers many SYS views 
• If we’ve missed a needed report or 
view 
• Let us know 
• Happy to add more 
• Even if not performance related 
• Could go in an Inspector 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 30 from Slide 12
Some Key Tuning Tips 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 31 31
InnoDB Tuning 
• Unlike MyISAM - InnoDB uses a single cache for both index and data 
– innodb_buffer_pool_size - should be 70-80% of available memory. 
– It is not uncommon for this to be very large, i.e. 34GB on a system with 40GB of memory 
– Make sure its not set so large as to cause swapping! 
– mysql>show status like 'Innodb_buffer%' ; 
• InnoDB can use direct IO on systems that support it - Linux, FreeBSD, and Solaris 
– innodb_flush_method = O_DIRECT 
• For more InnoDB tuning see 
– http://dev.mysql.com/doc/refman/5.1/en/innodb-tuning-troubleshooting.html 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification Copy3r2ig ht 2010 Oracle from Slide 12 The World’s Most Popular Open Source Database
Index Best Practices 
• Too many indexes can slow down inserts/deletes 
– Use only the indexes you must have 
– Check often (See MySQL Utility ‘mysqlindexcheck’ and 5.6 P_S) 
• Don’t duplicate leading parts of compound keys 
– index key123 (col1,col2,col3) 
– index key12 (col1,col2) <- Not needed! 
– index key1 (col1) <-- Not needed! 
• Use prefix indexes on large keys 
• Best indexes are 16 bytes/chars or less 
• Indexes bigger than 32 bytes/chars should be looked at very closely 
– should have there own cache if in MyISAM 
• For large strings that need to be indexed, i.e. URLs, consider using a separate column using 
the MySQL MD5 to create a hash key and index on it instead 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification Copy3r3ig ht 2010 Oracle from Slide 12 The World’s Most Popular Open Source Database
Query Cache 
• MySQL’s ‘Jekyll and Hyde’ of performance tuning options, when it is useful it really helps, when it 
hurts, it really hurts 
• MySQL Query Cache caches both the query and the full result set 
– query_cache_type - Controls behaviour 
• 0 or OFF - Not used (buffer may still be allocated) 
• 1 or ON cache all unless SELECT SQL_NO_CACHE (DEFAULT) 
• 2 or DEMAND cache none unless SELECT SQL_CACHE 
– query_cache_size - Determines the size of the cache 
• mysql> show status like 'Qc%' ; 
• Gives great performance if: 
– Identical queries returning identical data are used often 
– No or rare inserts, updates or deletes 
• Best Practice 
– Set to DEMAND 
– Add SQL_CACHE to appropriate queries 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification Copy3r4ig ht 2010 Oracle from Slide 12 The World’s Most Popular Open Source Database
Queries 
• 
Often the # 1 issue in overall performance 
• Always, Always have your slow query log on! 
– http://dev.mysql.com/doc/refman/5.1/en/slow-query-log.html 
– Use: log_queries_not_using_indexes 
– Check it regularly 
– Use mysqldumpslow : http://dev.mysql.com/doc/refman/5.1/en/mysqldumpslow.html 
– Best practice is to automate running mysqldumpslow every morning and email results to DBA, 
DBDev, etc. 
• Understand and use EXPLAIN 
– http://dev.mysql.com/doc/refman/5.1/en/using-explain.html 
• Select_scan - Number of full table scans 
• Select_full_join - Joins without indexes 
• MySQL Query Analyzer 
– http://www.mysql.com/products/enterprise/query.html 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification Copy3r5ig ht 2010 Oracle from Slide 12 The World’s Most Popular Open Source Database
MySQL Enterprise Monitor 
§ Real-time MySQL performance and availability monitoring 
§ Visually find & fix problem queries 
§ Disk monitoring for capacity planning 
§ Cloud friendly architecture (no agents) 
§ Start monitoring MySQL in 10 minutes 
§ Remote agent option provides OS monitoring 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 36 from Slide 12
MySQL Enterprise Monitor – New in 3.0 
§ Policies, Groups and auto-scheduling 
§ Zero Configuration Query Analyzer - Works "out of the box" with MySQL 
5.6 Performance_Schema (5.6.14 or later). 
§ Trends, projections and forecasting 
§ Visual SQL/graph correlation 
§ Host monitoring - CPU, memory, file system, and other OS-related 
§ Auto-discovery of mysqld instances 
§ Multi-instance monitoring 
§ Remote ("agent-less") monitoring 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 37 from Slide 12
Cloud-friendly Architecture 
MySQL Enterprise 
Dashboard 
MySQL 
Service Manager 
HTTPS 
Repository 
MySQL 
Private Cloud Public Cloud Data Center 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 38 from Slide 12 
MySQL 
§ Provides MySQL related metrics 
§ MySQL Query Analyzer collects data 
using Performance Schema 
Service Manager 
§ Collects all MySQL related metrics 
§ Collects all OS/Host related metrics 
Repository 
§ Stores historical MySQL data 
Agent (optional) 
§ Only for OS/Host metrics 
§ Not required for DB metrics
Installation & Configuration 
§ Install the Service Manager 
§ shell> ./mysqlmonitor-3.0.X.XXXX-…-installer.bin 
§ Up and Running in 10 minutes 
§ Auto-discovery of MySQL servers 
§ Advisors are pre-configured 
§ Advisors are pre-scheduled 
§ Customization 
§ Centralized configuration dashboard 
§ Advisors 
§ Event Handling 
§ Preferences, global settings, users, and logs 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 39 from Slide 12
MySQL Enterprise Dashboard 
§ SLA monitoring 
§ Real-time performance monitoring 
§ Alerts & notifications 
§ MySQL best practice advisors 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 40 from Slide 12 
"The MySQL Enterprise Monitor is an absolute must 
for any DBA who takes his work seriously.” 
- Adrian Baumann, System Specialist 
Federal Office of Information Technology & 
Telecommunications
Source of Database Performance Problems 
SQL 
Indexes 
Schema Changes 
Data Growth 
Hardware 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 41 from Slide 12 
90% of 
Performance Problems
MySQL Performance Schema 
§ Identify performance bottlenecks 
§ Identify problematic queries 
§ Get real time insight into locks 
mysql> select * from ps_top_io_by_file limit 10; 
+-----------------------------------+------------+------------+-----------+-------------+---------------+-------------+------------ 
+-----------+ 
| file | count_read | total_read | avg_read | count_write | total_written | avg_written | total | 
write_pct | 
+-----------------------------------+------------+------------+-----------+-------------+---------------+-------------+------------ 
+-----------+ 
| @@datadir/ibdata1 | 7974 | 126.56 MiB | 16.25 KiB | 54979 | 12.72 GiB | 242.58 KiB | 12.84 GiB | 
99.04 | 
| @@datadir/ib_logfile0 | 6 | 68.00 KiB | 11.33 KiB | 9348 | 1.25 GiB | 140.41 KiB | 1.25 GiB | 
99.99 | 
| @@datadir/ib_logfile1 | 0 | 0 bytes | 0 bytes | 5447 | 1.21 GiB | 233.23 KiB | 1.21 GiB | 
100.00 | 
| @@datadir/mylab-bin.000001 | 2 | 120 bytes | 60 bytes | 104242 | 1.01 GiB | 10.15 KiB | 1.01 GiB | 
100.00 | 
| @@datadir/mylab-bin.000002 | 0 | 0 bytes | 0 bytes | 98905 | 1.00 GiB | 10.61 KiB | 1.00 GiB | 
100.00 | 
| @@datadir/mylab-bin.000003 | 0 | 0 bytes | 0 bytes | 75053 | 775.10 MiB | 10.58 KiB | 775.10 MiB | 
100.00 | 
| @@datadir/employees/salaries.ibd | 0 | 0 bytes | 0 bytes | 8556 | 270.83 MiB | 32.41 KiB | 270.83 MiB | 
100.00 | 
| @@datadir/employees/titles.ibd | 0 | 0 bytes | 0 bytes | 1950 | 69.08 MiB | 36.27 KiB | 69.08 MiB | 
100.00 | 
| @@datadir/employees/dept_emp.ibd | 0 | 0 bytes | 0 bytes | 1376 | 49.17 MiB | 36.59 KiB | 49.17 MiB | 
100.00 | 
| @@datadir/employees/employees.ibd | 607 | 9.48 MiB | 16.00 KiB | 944 | 35.92 MiB | 38.97 KiB | 45.41 MiB | 
79.11 | 
+-----------------------------------+------------+------------+-----------+-------------+---------------+-------------+------------ 
+-----------+ 
10 rows in set (0.00 sec) 
§ See exactly what is happening within MySQL 
§ Get real time insight into MySQL internals 
§ Get real time insight into query executions 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 42 from Slide 12
Performance Monitoring 
§ Monitor MySQL performance 
§ Monitor OS performance 
§ Monitor query performance 
§ Advice on index usage 
§ Alerts on performance problems 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 43 from Slide 12
MySQL Query Analyzer 
§ Real-time query performance 
§ Visual correlation graphs 
§ Find & fix expensive queries 
§ Detailed query statistics 
§ Query Response Time index (QRTi) 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 44 from Slide 12 
“With the MySQL Query Analyzer, we were able to 
identify and analyze problematic SQL code, and triple 
our database performance. More importantly, we were 
able to accomplish this in three days, rather than 
taking weeks.” 
Keith Souhrada 
Software Development Engineer 
Big Fish Games
Query Response Time Index (QRTi) 
§ “Quality of Service” (QoS) measurement for each query 
§ QoS measurement for a server, group, or every instance 
§ Single metric for query performance 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 45 from Slide 12
Solving Query Performance Problems 
• Visually Identify Slow Queries 
• Correlation Graphs 
• Query Response Time index (QRTi) 
• Execution Statistics 
1 2 3 4 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 46 from Slide 12 
• Tune Queries 
• Add Indexes 
• Tune Schemas 
• Improve Caching 
• MySQL Explain Plan 
• Sample Query 
• Query Graphs 
Better Performance
Advantages of Query Analyzer 
over Slow Query Log 
§ See query execution statistics 
§ Trace the query origination back to the application source code 
§ View the overall query performance over time 
§ See when the query was first introduced 
§ See the explain plan 
§ Focus on queries specific to a particular host and time period 
§ View query executions correlated with other performance graphs 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 47 from Slide 12
InnoDB Monitoring 
§ Monitor key performance metrics 
§ Stay on top of locking issues 
§ Get configuration advice 
§ Examine buffer pool usage 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 48 from Slide 12
Memory Usage Monitoring 
§ Monitor OS memory usage 
§ Monitor MySQL memory usage 
§ Advice on configuration 
§ Alerts on memory usage 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 49 from Slide 12
Replication Monitoring 
§ Auto-discovers replication topology 
§ Master/Slave performance monitoring 
§ Replication advisor 
§ Best practice replication advice 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 50 from Slide 12 
"I use the MySQL Enterprise Monitor 
every day to monitor and keep tabs on 
our MySQL databases. Quick one stop 
shopping for keeping tabs on them.” 
- Wes Homer, 
Sr System and Network Administrator
Best Practice Advisors 
§ Enforce MySQL best practices 
§ 14 Advisor categories 
§ 250+ Advisors 
§ Threshold-based alerts 
§ Exponential moving averages 
§ Rate change detection 
§ Expert problem resolution advice 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 51 from Slide 12 
"I definitely recommend the MySQL Enterprise 
Monitor to DBAs who don't have a ton of MySQL 
experience. It makes monitoring MySQL security, 
performance and availability very easy to understand 
and to act on.” 
Sandi Barr 
Sr. Software Engineer 
Schneider Electric
Disk Monitoring 
§ Capacity Planning 
§ Forecast capacity requirements 
§ Projections 
§ Trend analysis 
§ Timeseries data 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 52 from Slide 12 
"With the monitoring dashboard and advisory rules, 
we can accurately predict our capacity requirements 
and optimize MySQL performance.” 
Keith Souhrada 
Software Development Engineer 
Big Fish Games
MySQL Enterprise Backup Monitoring 
§ Monitor backup results 
§ Monitor backup performance 
§ Ensure backups are up to date 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 53 from Slide 12
MySQL Configuration Management 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 54 from Slide 12 
Advisors will provide 
configuration tuning 
advice! 
§ Centralized management 
§ Organized by topic 
§ Options grouped by feature 
§ See host details 
§ See network details
Security Administration 
§ Account management 
§ Know when privileges change 
§ Get advice on best practices 
§ Monitor access problems 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 55 from Slide 12
Trends & Predictive Problem Detection 
§ Visual trend analysis 
§ Identify outliers 
§ Head off problems 
§ Handle imminent capacity issues 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 56 from Slide 12
Customizable & Extensible 
§ Create custom 
§ Groups 
§ Advisors 
§ Graphs 
§ Filters 
§ Event Handlers 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 57 from Slide 12
Solving Common Performance Issues 
Causes of Performance Issues MySQL Enterprise Monitor Helps 
Queries doing table scans See these queries immediately 
Excessive temporary tables on disk See the queries generating these 
CPU spikes Find out what caused it 
Disk I/O saturation Find out what caused it 
Internal locking Get alerts when locking issues occur 
Hardware problems Get alerts for disk and network problems 
Database and schema changes Get alerts when changes are made 
New queries introduced See what queries are added and when 
Poor MySQL configuration Get advice on configuration tuning 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 58 from Slide 12
Top 10 Performance Issues Solved 
✔ Identify the most expensive queries 
✔ Full table scans (no indexes) 
✔ Excessive temporary tables 
✔ Large and/or frequent filesorts 
✔ CPU usage overload 
✔ Disk I/O saturation 
✔ Hardware problems 
✔ Database and schema changes 
✔ New queries introduced 
✔ Poor MySQL configuration 
✔ Internal locking issues 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 59 from Slide 12
MySQL Enterprise Monitor 3.0 Demo Videos 
http://www.mysql.com/products/enterprise/demo.html 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 60 from Slide 12
Try it out now! 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 61 from Slide 12 
Free 30 
day trial! 
§ Oracle Software Delivery Cloud 
§ http://edelivery.oracle.com/ 
§ Enterprise Customers 
§ http://support.oracle.com/
MySQL Enterprise Monitor 
Monitoring & Performance Tools for DBAs 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 62 from Slide 12
Appendix – Proxy and Aggregator 
http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-qanal-using-proxy.html 
http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-qanal-using-aggregator. 
html 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 63 from Slide 12
Appendix – Connector Plugins 
http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-qanal-using-cj.html 
http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-qanal-using-cnet.html 
http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-qanal-using-cphp.html 
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 64 from Slide 12

More Related Content

What's hot

MongoDB et Elasticsearch, meilleurs ennemis ?
MongoDB et Elasticsearch, meilleurs ennemis ?MongoDB et Elasticsearch, meilleurs ennemis ?
MongoDB et Elasticsearch, meilleurs ennemis ?Sébastien Prunier
 
Optimizing MariaDB for maximum performance
Optimizing MariaDB for maximum performanceOptimizing MariaDB for maximum performance
Optimizing MariaDB for maximum performanceMariaDB plc
 
Oracle 10g Performance: chapter 02 aas
Oracle 10g Performance: chapter 02 aasOracle 10g Performance: chapter 02 aas
Oracle 10g Performance: chapter 02 aasKyle Hailey
 
Mastering PostgreSQL Administration
Mastering PostgreSQL AdministrationMastering PostgreSQL Administration
Mastering PostgreSQL AdministrationEDB
 
Linux tuning to improve PostgreSQL performance
Linux tuning to improve PostgreSQL performanceLinux tuning to improve PostgreSQL performance
Linux tuning to improve PostgreSQL performancePostgreSQL-Consulting
 
How Dashtable Helps Dragonfly Maintain Low Latency
How Dashtable Helps Dragonfly Maintain Low LatencyHow Dashtable Helps Dragonfly Maintain Low Latency
How Dashtable Helps Dragonfly Maintain Low LatencyScyllaDB
 
Azure cosmos db, Azure no-SQL database,
Azure cosmos db, Azure no-SQL database, Azure cosmos db, Azure no-SQL database,
Azure cosmos db, Azure no-SQL database, BRIJESH KUMAR
 
Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360Carlos Sierra
 
Open Source 101 2022 - MySQL Indexes and Histograms
Open Source 101 2022 - MySQL Indexes and HistogramsOpen Source 101 2022 - MySQL Indexes and Histograms
Open Source 101 2022 - MySQL Indexes and HistogramsFrederic Descamps
 
MySQL Advanced Administrator 2021 - 네오클로바
MySQL Advanced Administrator 2021 - 네오클로바MySQL Advanced Administrator 2021 - 네오클로바
MySQL Advanced Administrator 2021 - 네오클로바NeoClova
 
MySQL 8.0 Optimizer Guide
MySQL 8.0 Optimizer GuideMySQL 8.0 Optimizer Guide
MySQL 8.0 Optimizer GuideMorgan Tocker
 
Bloat and Fragmentation in PostgreSQL
Bloat and Fragmentation in PostgreSQLBloat and Fragmentation in PostgreSQL
Bloat and Fragmentation in PostgreSQLMasahiko Sawada
 
The Pushdown of Everything by Stephan Kessler and Santiago Mola
The Pushdown of Everything by Stephan Kessler and Santiago MolaThe Pushdown of Everything by Stephan Kessler and Santiago Mola
The Pushdown of Everything by Stephan Kessler and Santiago MolaSpark Summit
 
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACPerformance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACKristofferson A
 
PySpark Best Practices
PySpark Best PracticesPySpark Best Practices
PySpark Best PracticesCloudera, Inc.
 
MySQL8.0_performance_schema.pptx
MySQL8.0_performance_schema.pptxMySQL8.0_performance_schema.pptx
MySQL8.0_performance_schema.pptxNeoClova
 
Data Federation with Apache Spark
Data Federation with Apache SparkData Federation with Apache Spark
Data Federation with Apache SparkDataWorks Summit
 
Oracle 12c Multitenant architecture
Oracle 12c Multitenant architectureOracle 12c Multitenant architecture
Oracle 12c Multitenant architecturenaderattia
 
MySQL Database Architectures - 2020-10
MySQL Database Architectures -  2020-10MySQL Database Architectures -  2020-10
MySQL Database Architectures - 2020-10Kenny Gryp
 
Apache Calcite Tutorial - BOSS 21
Apache Calcite Tutorial - BOSS 21Apache Calcite Tutorial - BOSS 21
Apache Calcite Tutorial - BOSS 21Stamatis Zampetakis
 

What's hot (20)

MongoDB et Elasticsearch, meilleurs ennemis ?
MongoDB et Elasticsearch, meilleurs ennemis ?MongoDB et Elasticsearch, meilleurs ennemis ?
MongoDB et Elasticsearch, meilleurs ennemis ?
 
Optimizing MariaDB for maximum performance
Optimizing MariaDB for maximum performanceOptimizing MariaDB for maximum performance
Optimizing MariaDB for maximum performance
 
Oracle 10g Performance: chapter 02 aas
Oracle 10g Performance: chapter 02 aasOracle 10g Performance: chapter 02 aas
Oracle 10g Performance: chapter 02 aas
 
Mastering PostgreSQL Administration
Mastering PostgreSQL AdministrationMastering PostgreSQL Administration
Mastering PostgreSQL Administration
 
Linux tuning to improve PostgreSQL performance
Linux tuning to improve PostgreSQL performanceLinux tuning to improve PostgreSQL performance
Linux tuning to improve PostgreSQL performance
 
How Dashtable Helps Dragonfly Maintain Low Latency
How Dashtable Helps Dragonfly Maintain Low LatencyHow Dashtable Helps Dragonfly Maintain Low Latency
How Dashtable Helps Dragonfly Maintain Low Latency
 
Azure cosmos db, Azure no-SQL database,
Azure cosmos db, Azure no-SQL database, Azure cosmos db, Azure no-SQL database,
Azure cosmos db, Azure no-SQL database,
 
Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360
 
Open Source 101 2022 - MySQL Indexes and Histograms
Open Source 101 2022 - MySQL Indexes and HistogramsOpen Source 101 2022 - MySQL Indexes and Histograms
Open Source 101 2022 - MySQL Indexes and Histograms
 
MySQL Advanced Administrator 2021 - 네오클로바
MySQL Advanced Administrator 2021 - 네오클로바MySQL Advanced Administrator 2021 - 네오클로바
MySQL Advanced Administrator 2021 - 네오클로바
 
MySQL 8.0 Optimizer Guide
MySQL 8.0 Optimizer GuideMySQL 8.0 Optimizer Guide
MySQL 8.0 Optimizer Guide
 
Bloat and Fragmentation in PostgreSQL
Bloat and Fragmentation in PostgreSQLBloat and Fragmentation in PostgreSQL
Bloat and Fragmentation in PostgreSQL
 
The Pushdown of Everything by Stephan Kessler and Santiago Mola
The Pushdown of Everything by Stephan Kessler and Santiago MolaThe Pushdown of Everything by Stephan Kessler and Santiago Mola
The Pushdown of Everything by Stephan Kessler and Santiago Mola
 
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RACPerformance Scenario: Diagnosing and resolving sudden slow down on two node RAC
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
 
PySpark Best Practices
PySpark Best PracticesPySpark Best Practices
PySpark Best Practices
 
MySQL8.0_performance_schema.pptx
MySQL8.0_performance_schema.pptxMySQL8.0_performance_schema.pptx
MySQL8.0_performance_schema.pptx
 
Data Federation with Apache Spark
Data Federation with Apache SparkData Federation with Apache Spark
Data Federation with Apache Spark
 
Oracle 12c Multitenant architecture
Oracle 12c Multitenant architectureOracle 12c Multitenant architecture
Oracle 12c Multitenant architecture
 
MySQL Database Architectures - 2020-10
MySQL Database Architectures -  2020-10MySQL Database Architectures -  2020-10
MySQL Database Architectures - 2020-10
 
Apache Calcite Tutorial - BOSS 21
Apache Calcite Tutorial - BOSS 21Apache Calcite Tutorial - BOSS 21
Apache Calcite Tutorial - BOSS 21
 

Similar to MySQL Enterprise Monitor

MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise MonitorTed Wennmark
 
MySQL Administration and Monitoring
MySQL Administration and MonitoringMySQL Administration and Monitoring
MySQL Administration and MonitoringMark Leith
 
MySQL para Desenvolvedores de Games
MySQL para Desenvolvedores de GamesMySQL para Desenvolvedores de Games
MySQL para Desenvolvedores de GamesMySQL Brasil
 
From Nice to Have to Mission Critical: MySQL Enterprise Edition
From Nice to Have to Mission Critical: MySQL Enterprise EditionFrom Nice to Have to Mission Critical: MySQL Enterprise Edition
From Nice to Have to Mission Critical: MySQL Enterprise Edition郁萍 王
 
Oracle OpenWorld 2013 - HOL9737 MySQL Replication Best Practices
Oracle OpenWorld 2013 - HOL9737 MySQL Replication Best PracticesOracle OpenWorld 2013 - HOL9737 MySQL Replication Best Practices
Oracle OpenWorld 2013 - HOL9737 MySQL Replication Best PracticesSven Sandberg
 
Oracle Fusion Middleware Infrastructure Best Practices
Oracle Fusion Middleware Infrastructure Best PracticesOracle Fusion Middleware Infrastructure Best Practices
Oracle Fusion Middleware Infrastructure Best PracticesRevelation Technologies
 
Security Inside Out: Latest Innovations in Oracle Database 12c
Security Inside Out: Latest Innovations in Oracle Database 12cSecurity Inside Out: Latest Innovations in Oracle Database 12c
Security Inside Out: Latest Innovations in Oracle Database 12cTroy Kitch
 
Meetup my sql5.6_cluster
Meetup my sql5.6_clusterMeetup my sql5.6_cluster
Meetup my sql5.6_clusterLee Stigile
 
Con3928 horton session con3928 fusion app on-premise installation lessons lea...
Con3928 horton session con3928 fusion app on-premise installation lessons lea...Con3928 horton session con3928 fusion app on-premise installation lessons lea...
Con3928 horton session con3928 fusion app on-premise installation lessons lea...Berry Clemens
 
Coding for Desktop & Mobile with HTML5 & Java EE
Coding for Desktop & Mobile with HTML5 & Java EECoding for Desktop & Mobile with HTML5 & Java EE
Coding for Desktop & Mobile with HTML5 & Java EEGeertjan Wielenga
 
NetBeans Day 2016 - Getting the best of NetBeans IDE
NetBeans Day 2016 - Getting the best of NetBeans IDENetBeans Day 2016 - Getting the best of NetBeans IDE
NetBeans Day 2016 - Getting the best of NetBeans IDELeonardo Zanivan
 
MySQL Day Paris 2018 - MySQL & GDPR; Privacy and Security requirements
MySQL Day Paris 2018 - MySQL & GDPR; Privacy and Security requirementsMySQL Day Paris 2018 - MySQL & GDPR; Privacy and Security requirements
MySQL Day Paris 2018 - MySQL & GDPR; Privacy and Security requirementsOlivier DASINI
 
DevTalks.ro 2019 What's New in MySQL 8.0 Security
DevTalks.ro 2019 What's New in MySQL 8.0 SecurityDevTalks.ro 2019 What's New in MySQL 8.0 Security
DevTalks.ro 2019 What's New in MySQL 8.0 SecurityGeorgi Kodinov
 
Developing Applications with MySQL and Java
Developing Applications with MySQL and JavaDeveloping Applications with MySQL and Java
Developing Applications with MySQL and JavaMark Matthews
 
whats-new-netbeans-ide-80.pptx
whats-new-netbeans-ide-80.pptxwhats-new-netbeans-ide-80.pptx
whats-new-netbeans-ide-80.pptxGabrielSoche
 
Con1741 mcintosh top 10 database performance tips for sparc systems running o...
Con1741 mcintosh top 10 database performance tips for sparc systems running o...Con1741 mcintosh top 10 database performance tips for sparc systems running o...
Con1741 mcintosh top 10 database performance tips for sparc systems running o...Jimmy He
 
MySQL 5.7: Performance Schema Improvements
MySQL 5.7: Performance Schema ImprovementsMySQL 5.7: Performance Schema Improvements
MySQL 5.7: Performance Schema ImprovementsMark Leith
 

Similar to MySQL Enterprise Monitor (20)

MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise Monitor
 
MySQL Administration and Monitoring
MySQL Administration and MonitoringMySQL Administration and Monitoring
MySQL Administration and Monitoring
 
MySQL para Desenvolvedores de Games
MySQL para Desenvolvedores de GamesMySQL para Desenvolvedores de Games
MySQL para Desenvolvedores de Games
 
From Nice to Have to Mission Critical: MySQL Enterprise Edition
From Nice to Have to Mission Critical: MySQL Enterprise EditionFrom Nice to Have to Mission Critical: MySQL Enterprise Edition
From Nice to Have to Mission Critical: MySQL Enterprise Edition
 
con9578-2088758.pdf
con9578-2088758.pdfcon9578-2088758.pdf
con9578-2088758.pdf
 
Oracle OpenWorld 2013 - HOL9737 MySQL Replication Best Practices
Oracle OpenWorld 2013 - HOL9737 MySQL Replication Best PracticesOracle OpenWorld 2013 - HOL9737 MySQL Replication Best Practices
Oracle OpenWorld 2013 - HOL9737 MySQL Replication Best Practices
 
Oracle Fusion Middleware Infrastructure Best Practices
Oracle Fusion Middleware Infrastructure Best PracticesOracle Fusion Middleware Infrastructure Best Practices
Oracle Fusion Middleware Infrastructure Best Practices
 
Security Inside Out: Latest Innovations in Oracle Database 12c
Security Inside Out: Latest Innovations in Oracle Database 12cSecurity Inside Out: Latest Innovations in Oracle Database 12c
Security Inside Out: Latest Innovations in Oracle Database 12c
 
Meetup my sql5.6_cluster
Meetup my sql5.6_clusterMeetup my sql5.6_cluster
Meetup my sql5.6_cluster
 
Con3928 horton session con3928 fusion app on-premise installation lessons lea...
Con3928 horton session con3928 fusion app on-premise installation lessons lea...Con3928 horton session con3928 fusion app on-premise installation lessons lea...
Con3928 horton session con3928 fusion app on-premise installation lessons lea...
 
Coding for Desktop & Mobile with HTML5 & Java EE
Coding for Desktop & Mobile with HTML5 & Java EECoding for Desktop & Mobile with HTML5 & Java EE
Coding for Desktop & Mobile with HTML5 & Java EE
 
NetBeans Day 2016 - Getting the best of NetBeans IDE
NetBeans Day 2016 - Getting the best of NetBeans IDENetBeans Day 2016 - Getting the best of NetBeans IDE
NetBeans Day 2016 - Getting the best of NetBeans IDE
 
MySQL Day Paris 2018 - MySQL & GDPR; Privacy and Security requirements
MySQL Day Paris 2018 - MySQL & GDPR; Privacy and Security requirementsMySQL Day Paris 2018 - MySQL & GDPR; Privacy and Security requirements
MySQL Day Paris 2018 - MySQL & GDPR; Privacy and Security requirements
 
DevTalks.ro 2019 What's New in MySQL 8.0 Security
DevTalks.ro 2019 What's New in MySQL 8.0 SecurityDevTalks.ro 2019 What's New in MySQL 8.0 Security
DevTalks.ro 2019 What's New in MySQL 8.0 Security
 
MySQL
MySQLMySQL
MySQL
 
Developing Applications with MySQL and Java
Developing Applications with MySQL and JavaDeveloping Applications with MySQL and Java
Developing Applications with MySQL and Java
 
whats-new-netbeans-ide-80.pptx
whats-new-netbeans-ide-80.pptxwhats-new-netbeans-ide-80.pptx
whats-new-netbeans-ide-80.pptx
 
Con1741 mcintosh top 10 database performance tips for sparc systems running o...
Con1741 mcintosh top 10 database performance tips for sparc systems running o...Con1741 mcintosh top 10 database performance tips for sparc systems running o...
Con1741 mcintosh top 10 database performance tips for sparc systems running o...
 
MySQL Tech Tour Nov, 2013
MySQL Tech Tour Nov, 2013MySQL Tech Tour Nov, 2013
MySQL Tech Tour Nov, 2013
 
MySQL 5.7: Performance Schema Improvements
MySQL 5.7: Performance Schema ImprovementsMySQL 5.7: Performance Schema Improvements
MySQL 5.7: Performance Schema Improvements
 

More from Mark Swarbrick

MySQL NoSQL Document Store
MySQL NoSQL Document StoreMySQL NoSQL Document Store
MySQL NoSQL Document StoreMark Swarbrick
 
MySQL @ the University Of Nottingham
MySQL @ the University Of NottinghamMySQL @ the University Of Nottingham
MySQL @ the University Of NottinghamMark Swarbrick
 
MySQL Dublin Event Nov 2018 - MySQL 8
MySQL Dublin Event Nov 2018 - MySQL 8MySQL Dublin Event Nov 2018 - MySQL 8
MySQL Dublin Event Nov 2018 - MySQL 8Mark Swarbrick
 
MySQL Dublin Event Nov 2018 - State of the Dolphin
MySQL Dublin Event Nov 2018 - State of the DolphinMySQL Dublin Event Nov 2018 - State of the Dolphin
MySQL Dublin Event Nov 2018 - State of the DolphinMark Swarbrick
 
Oracle Code Event - MySQL JSON Document Store
Oracle Code Event - MySQL JSON Document StoreOracle Code Event - MySQL JSON Document Store
Oracle Code Event - MySQL JSON Document StoreMark Swarbrick
 
TLV - MySQL Security overview
TLV - MySQL Security overviewTLV - MySQL Security overview
TLV - MySQL Security overviewMark Swarbrick
 
TLV - MySQL Enterprise Edition + Cloud
TLV - MySQL Enterprise Edition + CloudTLV - MySQL Enterprise Edition + Cloud
TLV - MySQL Enterprise Edition + CloudMark Swarbrick
 
TLV - Whats new in MySQL 8
TLV - Whats new in MySQL 8TLV - Whats new in MySQL 8
TLV - Whats new in MySQL 8Mark Swarbrick
 
MySQL At University Of Nottingham - 2018 MySQL Days
MySQL At University Of Nottingham - 2018 MySQL DaysMySQL At University Of Nottingham - 2018 MySQL Days
MySQL At University Of Nottingham - 2018 MySQL DaysMark Swarbrick
 
MySQL At Mastercard - 2018 MySQL Days
MySQL At Mastercard - 2018 MySQL DaysMySQL At Mastercard - 2018 MySQL Days
MySQL At Mastercard - 2018 MySQL DaysMark Swarbrick
 
MySQL 8 - 2018 MySQL Days
MySQL 8 - 2018 MySQL DaysMySQL 8 - 2018 MySQL Days
MySQL 8 - 2018 MySQL DaysMark Swarbrick
 
MySQL Security + GDPR - 2018 MySQL Days
MySQL Security + GDPR - 2018 MySQL DaysMySQL Security + GDPR - 2018 MySQL Days
MySQL Security + GDPR - 2018 MySQL DaysMark Swarbrick
 
MySQL InnoDB + NDB Cluster - 2018 MySQL Days
MySQL InnoDB + NDB Cluster - 2018 MySQL DaysMySQL InnoDB + NDB Cluster - 2018 MySQL Days
MySQL InnoDB + NDB Cluster - 2018 MySQL DaysMark Swarbrick
 
MySQL Cloud - 2018 MySQL Days
MySQL Cloud - 2018 MySQL DaysMySQL Cloud - 2018 MySQL Days
MySQL Cloud - 2018 MySQL DaysMark Swarbrick
 
MySQL 2018 Intro - 2018 MySQL Days
MySQL 2018 Intro - 2018 MySQL DaysMySQL 2018 Intro - 2018 MySQL Days
MySQL 2018 Intro - 2018 MySQL DaysMark Swarbrick
 

More from Mark Swarbrick (20)

MySQL NoSQL Document Store
MySQL NoSQL Document StoreMySQL NoSQL Document Store
MySQL NoSQL Document Store
 
MySQL @ the University Of Nottingham
MySQL @ the University Of NottinghamMySQL @ the University Of Nottingham
MySQL @ the University Of Nottingham
 
InnoDb Vs NDB Cluster
InnoDb Vs NDB ClusterInnoDb Vs NDB Cluster
InnoDb Vs NDB Cluster
 
MySQL Security & GDPR
MySQL Security & GDPRMySQL Security & GDPR
MySQL Security & GDPR
 
Intro To MySQL 2019
Intro To MySQL 2019Intro To MySQL 2019
Intro To MySQL 2019
 
MySQL 8
MySQL 8MySQL 8
MySQL 8
 
MySQL Dublin Event Nov 2018 - MySQL 8
MySQL Dublin Event Nov 2018 - MySQL 8MySQL Dublin Event Nov 2018 - MySQL 8
MySQL Dublin Event Nov 2018 - MySQL 8
 
MySQL Dublin Event Nov 2018 - State of the Dolphin
MySQL Dublin Event Nov 2018 - State of the DolphinMySQL Dublin Event Nov 2018 - State of the Dolphin
MySQL Dublin Event Nov 2018 - State of the Dolphin
 
Oracle Code Event - MySQL JSON Document Store
Oracle Code Event - MySQL JSON Document StoreOracle Code Event - MySQL JSON Document Store
Oracle Code Event - MySQL JSON Document Store
 
TLV - MySQL Security overview
TLV - MySQL Security overviewTLV - MySQL Security overview
TLV - MySQL Security overview
 
TLV - MySQL Enterprise Edition + Cloud
TLV - MySQL Enterprise Edition + CloudTLV - MySQL Enterprise Edition + Cloud
TLV - MySQL Enterprise Edition + Cloud
 
TLV - Whats new in MySQL 8
TLV - Whats new in MySQL 8TLV - Whats new in MySQL 8
TLV - Whats new in MySQL 8
 
MySQL At University Of Nottingham - 2018 MySQL Days
MySQL At University Of Nottingham - 2018 MySQL DaysMySQL At University Of Nottingham - 2018 MySQL Days
MySQL At University Of Nottingham - 2018 MySQL Days
 
MySQL At Mastercard - 2018 MySQL Days
MySQL At Mastercard - 2018 MySQL DaysMySQL At Mastercard - 2018 MySQL Days
MySQL At Mastercard - 2018 MySQL Days
 
MySQL 8 - 2018 MySQL Days
MySQL 8 - 2018 MySQL DaysMySQL 8 - 2018 MySQL Days
MySQL 8 - 2018 MySQL Days
 
MySQL Security + GDPR - 2018 MySQL Days
MySQL Security + GDPR - 2018 MySQL DaysMySQL Security + GDPR - 2018 MySQL Days
MySQL Security + GDPR - 2018 MySQL Days
 
MySQL InnoDB + NDB Cluster - 2018 MySQL Days
MySQL InnoDB + NDB Cluster - 2018 MySQL DaysMySQL InnoDB + NDB Cluster - 2018 MySQL Days
MySQL InnoDB + NDB Cluster - 2018 MySQL Days
 
MySQL Cloud - 2018 MySQL Days
MySQL Cloud - 2018 MySQL DaysMySQL Cloud - 2018 MySQL Days
MySQL Cloud - 2018 MySQL Days
 
MySQL 2018 Intro - 2018 MySQL Days
MySQL 2018 Intro - 2018 MySQL DaysMySQL 2018 Intro - 2018 MySQL Days
MySQL 2018 Intro - 2018 MySQL Days
 
MySQL + GDPR
MySQL + GDPRMySQL + GDPR
MySQL + GDPR
 

Recently uploaded

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 

Recently uploaded (20)

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 

MySQL Enterprise Monitor

  • 1. MySQL Enterprise Monitor Monitoring & Performance Tools for DBAs Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 1 from Slide 12
  • 2. Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decision. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 2 from Slide 12
  • 3. Agenda: MySQL Enterprise Monitor § MySQL Customers § Overview & Architecture § Installation & Configuration § Features & Benefits § Questions § Appendix § Additional Info Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 3 from Slide 12
  • 4. Industry Leaders Rely on MySQL Web & Enterprise OEM & ISVs Cloud Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 4 from Slide 12
  • 5. Big Fish Application Big Fish Games is a global leader in the online games industry and distributes more games worldwide than any other online site. Key Business Benefit MySQL Query Analyzer provides a consolidated view of query activities and execution details, and has enabled Big Fish Games to quickly identify poorly running queries and tackle the root causes directly in the SQL code. Why MySQL? “With the MySQL Query Analyzer, we were able to identify and analyze problematic SQL code, and triple our database performance. More importantly, we were able to accomplish this in three days, rather than taking weeks.” Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 5 from Slide 12 Keith Souhrada Software Development Engineer Big Fish Games
  • 6. MySQL Enterprise Edition Highest Levels of Security, Performance, and Availability Oracle Premier Lifetime Support MySQL Enterprise Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 6 from Slide 12 Oracle Product Certifications/Integrations MySQL Enterprise High Availability Security MySQL Enterprise Scalability MySQL Enterprise Monitor/Query Analyzer MySQL Enterprise Backup MySQL Workbench MySQL Enterprise Audit
  • 7. Database Application Growth Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 7 from Slide 12 Situation • 2.1 Billion Internet Users • 40% Data Growth/Year • $1 Trillion eCommerce • 600 New Videos/Minute • 58 Million Tweets/Day Requirements • Performance • Scale-out • Automation
  • 8. MySQL DBA Checklist 1. Ensure your production databases are available ✔ 2. Monitor MySQL performance throughout the day ✔ 3. Verify that MySQL replication is working properly ✔ 4. Confirm that backups have completed successfully ✔ 5. Monitor disk space to ensure MySQL won’t run out of space ✔ 6. Regularly monitor and identify blocking issues ✔ 7. Verify there have been no changes to database schema ✔ 8. Check OS metrics for unusual events ✔ 9. Check for security vulnerabilities ✔ 10. Monitor and analyze memory usage ✔ Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 8 from Slide 12
  • 9. MySQL DBA Challenges § “The database is slow. What needs tuning?” § “What are my most expensive queries?” § “Are indexes optimized?” § “Is replication lag a problem?” § “Did my last backup succeed?” § “When will my disk fill up?” § “When will I need more hardware to scale-out?” § “Has my database schema changed?” § “Are there security vulnerabilities that I need to be concerned about?” Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 9 from Slide 12
  • 10. What is Performance Schema? Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 10 10
  • 11. What is Performance Schema anyway? ª A storage engine, built for recording instrumentation – PERFORMANCE_SCHEMA ª A database schema to expose the instrumentation – performance_schema ª Records latency of events that happen within the server ª All latency exposed to picosecond ª Also tracks other information as appropriate - Bytes, source position, object metadata, etc. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 11 11 from Slide 12
  • 12. Performance Schema in MySQL 5.5 ª 17 Tables ª 222 Instruments Instrument Event Class File IO wait/io/file/% Mutexes wait/synch/mutex/% Read/Write Locks wait/synch/rwlock/% Conditions wait/synch/cond/% Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 12 12 from Slide 12
  • 13. Performance Schema in MySQL 5.6 ª 52 Tables (+35) ª 545 Instruments (+323) Instrument Type Event Class Statements statement/% Stages stage/% Table IO wait/io/table/% Table Locks wait/lock/table/% Network IO wait/io/socket/% Idle Timing idle Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 13 13 from Slide 12
  • 14. Nested Events Stored Programs Transactions mysql> select * from events_waits_history_long ******************** 1. row ******************** ... NESTING_EVENT_ID: 3603 NESTING_EVENT_TYPE: STAGE 14 Statements Stages MySQL 5.7 MySQL 5.6 Waits MySQL 5.5 EVENT_NAME: wait/io/table/sql/handler ... Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 14 from Slide 12
  • 15. Performance Schema Configuration Configure Description Variables like “perf%” Fixed RAM allocation, fixed size Status like “perf%lost” Lost events due to too low buffers Table “setup_instruments” Turn on/off individual instruments Table “setup_consumers” Configure history / summary tables Table “setup_objects” Filter events by table/schema Table “setup_actors” Filter events by user/host Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 15 15 from Slide 12
  • 16. Profiling Examples Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 16 16
  • 17. Analyzing Global Waits ª Some mutex events that can affect global concurrency (if high in list): ª wait/synch/mutex/innodb/buf_pool_mutex ª Increase innodb_buffer_pool_instances ª wait/synch/mutex/sql/Query_cache::structure_guard_mutex ª Look in to disabling the Query Cache ª wait/synch/mutex/myisam/MYISAM_SHARE::intern_lock ª Use Innodb … Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 17 17 from Slide 12
  • 18. Analyzing Global Waits ª Some File IO events to watch for (if high in list): ª wait/io/file/sql/FRM ª Tune table_open_cache / table_definition_cache ª wait/io/file/sql/file_parser (view definition parsing) ª If high on 5.5, upgrade to 5.6, (which can cache these like tables) ª wait/io/file/sql/query_log and wait/io/file/sql/slow_log ª Disable the general ª Disable or tune what is logged to the slow log (decent long_query_time) Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 18 18 from Slide 12
  • 19. Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 19 1 from Slide 12 9 The MySQL SYS Schema
  • 20. MySQL SYS Schema Overview ª Originally called “ps_helper” ª Started as a collection of views, procedures and functions, designed to make reading raw Performance Schema data easier ª Implements many of the common DBA and Developer use cases, including many of those shown already ª Now bundled within MySQL Workbench 6.1 ª Available on GitHub ª https://github.com/MarkLeith/mysql-sys Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 20 20 from Slide 12
  • 21. Easy to use with MySQL Workbench Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 21 21
  • 22. MySQL Workbench Overview Design, Develop, Administer, Migrate And now adding – Performance • MySQL Database IDE Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 22 from Slide 12 • Millions of Users • Millions of Downloads • Windows, OS X, Linux
  • 23. Performance Schema Reports • Connect • (DB Click or Open and Connect) • Go to Management Tab • If needed (Bottom Left) • Go to Performance Reports • New Performance Section Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 23 from Slide 12
  • 24. New Screen – Performance Schema Setup YES – its on NO – its off Advanced – for power users Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 24 from Slide 12
  • 25. Open Settings Before Running Performance Reports Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 25 from Slide 12
  • 26. First Run – Install SYS Schema Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 26 from Slide 12
  • 27. SYS now Added • No Tables • Only • Views • SPs • Functions • Operates on • Performance Schema • Information Schema Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 27 from Slide 12
  • 28. sys.<table> versus sys.x$<table> • Providing 2 options • One is easy • To read in a query • Other (x$) is easier • To compare • To Export to spreadsheet • To Graph • To consume in code Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 28 from Slide 12
  • 29. SYS - SPs and Functions SPs Used to simplify management FUNCTIONS Used for Formatting and Simple Checks Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 29 from Slide 12
  • 30. Many WB Performance Reports • WB wrappers many SYS views • If we’ve missed a needed report or view • Let us know • Happy to add more • Even if not performance related • Could go in an Inspector Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 30 from Slide 12
  • 31. Some Key Tuning Tips Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 31 31
  • 32. InnoDB Tuning • Unlike MyISAM - InnoDB uses a single cache for both index and data – innodb_buffer_pool_size - should be 70-80% of available memory. – It is not uncommon for this to be very large, i.e. 34GB on a system with 40GB of memory – Make sure its not set so large as to cause swapping! – mysql>show status like 'Innodb_buffer%' ; • InnoDB can use direct IO on systems that support it - Linux, FreeBSD, and Solaris – innodb_flush_method = O_DIRECT • For more InnoDB tuning see – http://dev.mysql.com/doc/refman/5.1/en/innodb-tuning-troubleshooting.html Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification Copy3r2ig ht 2010 Oracle from Slide 12 The World’s Most Popular Open Source Database
  • 33. Index Best Practices • Too many indexes can slow down inserts/deletes – Use only the indexes you must have – Check often (See MySQL Utility ‘mysqlindexcheck’ and 5.6 P_S) • Don’t duplicate leading parts of compound keys – index key123 (col1,col2,col3) – index key12 (col1,col2) <- Not needed! – index key1 (col1) <-- Not needed! • Use prefix indexes on large keys • Best indexes are 16 bytes/chars or less • Indexes bigger than 32 bytes/chars should be looked at very closely – should have there own cache if in MyISAM • For large strings that need to be indexed, i.e. URLs, consider using a separate column using the MySQL MD5 to create a hash key and index on it instead Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification Copy3r3ig ht 2010 Oracle from Slide 12 The World’s Most Popular Open Source Database
  • 34. Query Cache • MySQL’s ‘Jekyll and Hyde’ of performance tuning options, when it is useful it really helps, when it hurts, it really hurts • MySQL Query Cache caches both the query and the full result set – query_cache_type - Controls behaviour • 0 or OFF - Not used (buffer may still be allocated) • 1 or ON cache all unless SELECT SQL_NO_CACHE (DEFAULT) • 2 or DEMAND cache none unless SELECT SQL_CACHE – query_cache_size - Determines the size of the cache • mysql> show status like 'Qc%' ; • Gives great performance if: – Identical queries returning identical data are used often – No or rare inserts, updates or deletes • Best Practice – Set to DEMAND – Add SQL_CACHE to appropriate queries Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification Copy3r4ig ht 2010 Oracle from Slide 12 The World’s Most Popular Open Source Database
  • 35. Queries • Often the # 1 issue in overall performance • Always, Always have your slow query log on! – http://dev.mysql.com/doc/refman/5.1/en/slow-query-log.html – Use: log_queries_not_using_indexes – Check it regularly – Use mysqldumpslow : http://dev.mysql.com/doc/refman/5.1/en/mysqldumpslow.html – Best practice is to automate running mysqldumpslow every morning and email results to DBA, DBDev, etc. • Understand and use EXPLAIN – http://dev.mysql.com/doc/refman/5.1/en/using-explain.html • Select_scan - Number of full table scans • Select_full_join - Joins without indexes • MySQL Query Analyzer – http://www.mysql.com/products/enterprise/query.html Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification Copy3r5ig ht 2010 Oracle from Slide 12 The World’s Most Popular Open Source Database
  • 36. MySQL Enterprise Monitor § Real-time MySQL performance and availability monitoring § Visually find & fix problem queries § Disk monitoring for capacity planning § Cloud friendly architecture (no agents) § Start monitoring MySQL in 10 minutes § Remote agent option provides OS monitoring Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 36 from Slide 12
  • 37. MySQL Enterprise Monitor – New in 3.0 § Policies, Groups and auto-scheduling § Zero Configuration Query Analyzer - Works "out of the box" with MySQL 5.6 Performance_Schema (5.6.14 or later). § Trends, projections and forecasting § Visual SQL/graph correlation § Host monitoring - CPU, memory, file system, and other OS-related § Auto-discovery of mysqld instances § Multi-instance monitoring § Remote ("agent-less") monitoring Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 37 from Slide 12
  • 38. Cloud-friendly Architecture MySQL Enterprise Dashboard MySQL Service Manager HTTPS Repository MySQL Private Cloud Public Cloud Data Center Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 38 from Slide 12 MySQL § Provides MySQL related metrics § MySQL Query Analyzer collects data using Performance Schema Service Manager § Collects all MySQL related metrics § Collects all OS/Host related metrics Repository § Stores historical MySQL data Agent (optional) § Only for OS/Host metrics § Not required for DB metrics
  • 39. Installation & Configuration § Install the Service Manager § shell> ./mysqlmonitor-3.0.X.XXXX-…-installer.bin § Up and Running in 10 minutes § Auto-discovery of MySQL servers § Advisors are pre-configured § Advisors are pre-scheduled § Customization § Centralized configuration dashboard § Advisors § Event Handling § Preferences, global settings, users, and logs Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 39 from Slide 12
  • 40. MySQL Enterprise Dashboard § SLA monitoring § Real-time performance monitoring § Alerts & notifications § MySQL best practice advisors Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 40 from Slide 12 "The MySQL Enterprise Monitor is an absolute must for any DBA who takes his work seriously.” - Adrian Baumann, System Specialist Federal Office of Information Technology & Telecommunications
  • 41. Source of Database Performance Problems SQL Indexes Schema Changes Data Growth Hardware Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 41 from Slide 12 90% of Performance Problems
  • 42. MySQL Performance Schema § Identify performance bottlenecks § Identify problematic queries § Get real time insight into locks mysql> select * from ps_top_io_by_file limit 10; +-----------------------------------+------------+------------+-----------+-------------+---------------+-------------+------------ +-----------+ | file | count_read | total_read | avg_read | count_write | total_written | avg_written | total | write_pct | +-----------------------------------+------------+------------+-----------+-------------+---------------+-------------+------------ +-----------+ | @@datadir/ibdata1 | 7974 | 126.56 MiB | 16.25 KiB | 54979 | 12.72 GiB | 242.58 KiB | 12.84 GiB | 99.04 | | @@datadir/ib_logfile0 | 6 | 68.00 KiB | 11.33 KiB | 9348 | 1.25 GiB | 140.41 KiB | 1.25 GiB | 99.99 | | @@datadir/ib_logfile1 | 0 | 0 bytes | 0 bytes | 5447 | 1.21 GiB | 233.23 KiB | 1.21 GiB | 100.00 | | @@datadir/mylab-bin.000001 | 2 | 120 bytes | 60 bytes | 104242 | 1.01 GiB | 10.15 KiB | 1.01 GiB | 100.00 | | @@datadir/mylab-bin.000002 | 0 | 0 bytes | 0 bytes | 98905 | 1.00 GiB | 10.61 KiB | 1.00 GiB | 100.00 | | @@datadir/mylab-bin.000003 | 0 | 0 bytes | 0 bytes | 75053 | 775.10 MiB | 10.58 KiB | 775.10 MiB | 100.00 | | @@datadir/employees/salaries.ibd | 0 | 0 bytes | 0 bytes | 8556 | 270.83 MiB | 32.41 KiB | 270.83 MiB | 100.00 | | @@datadir/employees/titles.ibd | 0 | 0 bytes | 0 bytes | 1950 | 69.08 MiB | 36.27 KiB | 69.08 MiB | 100.00 | | @@datadir/employees/dept_emp.ibd | 0 | 0 bytes | 0 bytes | 1376 | 49.17 MiB | 36.59 KiB | 49.17 MiB | 100.00 | | @@datadir/employees/employees.ibd | 607 | 9.48 MiB | 16.00 KiB | 944 | 35.92 MiB | 38.97 KiB | 45.41 MiB | 79.11 | +-----------------------------------+------------+------------+-----------+-------------+---------------+-------------+------------ +-----------+ 10 rows in set (0.00 sec) § See exactly what is happening within MySQL § Get real time insight into MySQL internals § Get real time insight into query executions Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 42 from Slide 12
  • 43. Performance Monitoring § Monitor MySQL performance § Monitor OS performance § Monitor query performance § Advice on index usage § Alerts on performance problems Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 43 from Slide 12
  • 44. MySQL Query Analyzer § Real-time query performance § Visual correlation graphs § Find & fix expensive queries § Detailed query statistics § Query Response Time index (QRTi) Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 44 from Slide 12 “With the MySQL Query Analyzer, we were able to identify and analyze problematic SQL code, and triple our database performance. More importantly, we were able to accomplish this in three days, rather than taking weeks.” Keith Souhrada Software Development Engineer Big Fish Games
  • 45. Query Response Time Index (QRTi) § “Quality of Service” (QoS) measurement for each query § QoS measurement for a server, group, or every instance § Single metric for query performance Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 45 from Slide 12
  • 46. Solving Query Performance Problems • Visually Identify Slow Queries • Correlation Graphs • Query Response Time index (QRTi) • Execution Statistics 1 2 3 4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 46 from Slide 12 • Tune Queries • Add Indexes • Tune Schemas • Improve Caching • MySQL Explain Plan • Sample Query • Query Graphs Better Performance
  • 47. Advantages of Query Analyzer over Slow Query Log § See query execution statistics § Trace the query origination back to the application source code § View the overall query performance over time § See when the query was first introduced § See the explain plan § Focus on queries specific to a particular host and time period § View query executions correlated with other performance graphs Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 47 from Slide 12
  • 48. InnoDB Monitoring § Monitor key performance metrics § Stay on top of locking issues § Get configuration advice § Examine buffer pool usage Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 48 from Slide 12
  • 49. Memory Usage Monitoring § Monitor OS memory usage § Monitor MySQL memory usage § Advice on configuration § Alerts on memory usage Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 49 from Slide 12
  • 50. Replication Monitoring § Auto-discovers replication topology § Master/Slave performance monitoring § Replication advisor § Best practice replication advice Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 50 from Slide 12 "I use the MySQL Enterprise Monitor every day to monitor and keep tabs on our MySQL databases. Quick one stop shopping for keeping tabs on them.” - Wes Homer, Sr System and Network Administrator
  • 51. Best Practice Advisors § Enforce MySQL best practices § 14 Advisor categories § 250+ Advisors § Threshold-based alerts § Exponential moving averages § Rate change detection § Expert problem resolution advice Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 51 from Slide 12 "I definitely recommend the MySQL Enterprise Monitor to DBAs who don't have a ton of MySQL experience. It makes monitoring MySQL security, performance and availability very easy to understand and to act on.” Sandi Barr Sr. Software Engineer Schneider Electric
  • 52. Disk Monitoring § Capacity Planning § Forecast capacity requirements § Projections § Trend analysis § Timeseries data Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 52 from Slide 12 "With the monitoring dashboard and advisory rules, we can accurately predict our capacity requirements and optimize MySQL performance.” Keith Souhrada Software Development Engineer Big Fish Games
  • 53. MySQL Enterprise Backup Monitoring § Monitor backup results § Monitor backup performance § Ensure backups are up to date Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 53 from Slide 12
  • 54. MySQL Configuration Management Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 54 from Slide 12 Advisors will provide configuration tuning advice! § Centralized management § Organized by topic § Options grouped by feature § See host details § See network details
  • 55. Security Administration § Account management § Know when privileges change § Get advice on best practices § Monitor access problems Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 55 from Slide 12
  • 56. Trends & Predictive Problem Detection § Visual trend analysis § Identify outliers § Head off problems § Handle imminent capacity issues Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 56 from Slide 12
  • 57. Customizable & Extensible § Create custom § Groups § Advisors § Graphs § Filters § Event Handlers Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 57 from Slide 12
  • 58. Solving Common Performance Issues Causes of Performance Issues MySQL Enterprise Monitor Helps Queries doing table scans See these queries immediately Excessive temporary tables on disk See the queries generating these CPU spikes Find out what caused it Disk I/O saturation Find out what caused it Internal locking Get alerts when locking issues occur Hardware problems Get alerts for disk and network problems Database and schema changes Get alerts when changes are made New queries introduced See what queries are added and when Poor MySQL configuration Get advice on configuration tuning Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 58 from Slide 12
  • 59. Top 10 Performance Issues Solved ✔ Identify the most expensive queries ✔ Full table scans (no indexes) ✔ Excessive temporary tables ✔ Large and/or frequent filesorts ✔ CPU usage overload ✔ Disk I/O saturation ✔ Hardware problems ✔ Database and schema changes ✔ New queries introduced ✔ Poor MySQL configuration ✔ Internal locking issues Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 59 from Slide 12
  • 60. MySQL Enterprise Monitor 3.0 Demo Videos http://www.mysql.com/products/enterprise/demo.html Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 60 from Slide 12
  • 61. Try it out now! Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 61 from Slide 12 Free 30 day trial! § Oracle Software Delivery Cloud § http://edelivery.oracle.com/ § Enterprise Customers § http://support.oracle.com/
  • 62. MySQL Enterprise Monitor Monitoring & Performance Tools for DBAs Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 62 from Slide 12
  • 63. Appendix – Proxy and Aggregator http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-qanal-using-proxy.html http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-qanal-using-aggregator. html Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 63 from Slide 12
  • 64. Appendix – Connector Plugins http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-qanal-using-cj.html http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-qanal-using-cnet.html http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-qanal-using-cphp.html Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification 64 from Slide 12