MySQL Enterprise Monitor Lynn Ferrante Principal Sales Consultant 1
Program Agenda MySQL Enterprise Monitor Overview Architecture Roles Demo 2
Overview 3
MySQL Enterprise Edition Highest Levels of Security, Performance and Availability MySQL Enterprise Security MySQL Enterprise Audit Oracle Premier Lifetime Support Oracle Product Certifications/Integrations MySQL Enterprise Monitor/Query Analyzer MySQL Enterprise Scalability MySQL Enterprise High Availability MySQL Enterprise Backup MySQL Workbench 4
Why Monitor? Optimize database and application performance Performance tuning Problem prevention and faster problem resolution Lower support costs Effective remote/on-premise monitoring and troubleshooting Catch problems before they impact the customer Identify trends across your customer base Increase revenue Improve margins by reducing internal development costs of custom monitoring/reporting tools Provide higher SLAs to customer 5
MySQL Enterprise Monitor Web-based, global view of MySQL/ Cluster applications (on-premise and Cloud deployments) Automated, rules-based monitoring and alerts (SMTP, SNMP enabled) Query capture, monitoring, analysis and tuning, correlated with Monitor graphs Real-time Replication Monitor with auto-discovery of master-slave topologies Integrated with Oracle Support A Virtual MySQL DBA Assistant! 6
Enterprise Monitor - Dashboard 2011 Oracle Corporation Proprietary and Confidential 7
Enterprise Monitor - View 1 Server Detailed Listing for 1 server 8
Enterprise Monitor - View 1 group Concentrate on one group of servers (did you notice the group has been renamed?) 9
Automated Advisors and Alerts MySQL Cluster Monitors and Advises on status/ performance of MySQL Cluster Data Custom Nodes Built by DBA to Enforce Organization specific best practices Upgrade Monitors and Advises on Bugs/Upgrades that affect current installation Backup Monitors and Advises on Backup/Recovery processes Administration Monitors and Advises on Optimal Start up and Run time Configuration Schema Monitors and Advises on Unplanned Schema Change Performance Monitors and Advises on Optimal Performance Variable Settings Replication Monitors and Advises on Master/Slave Latency Memory Usage Monitors and advises on optimal memory/cache settings Security Monitors and Advises on Unplanned Security Changes/Loopholes Saves time writing, deploying, versioning, maintaining custom scripts. Visualize problems and tuning opportunities you cannot find yourself. 10
Advisors Administration Backup Heat Chart Memory Usage Performance Replication Schema Security Upgrade Cluster # Rules 32 6 14 6 26 20 18 26 15 10 Rules 11
Event Notification When a threshold is reached or other issue is identified you are notified, or If the severity level changes from a lower status to a higher one The notification is displayed within the MySQL Enterprise Dashboard Events can also trigger additional notifications, such as an email or an SMS text message, or SNMP traps Severity Level 12
Dashboard Notifications 13
MySQL Query Analyzer Centralized monitoring of queries without Slow Query Log, SHOW PROCESSLIST; Aggregated view of query execution counts, time, and rows Visual grab and go correlation with Monitor graphs Enabled via Connectors (PHP, JDBC,.Net) or MySQL Proxy Saves you time parsing atomic executions from logs. Finds problems you cannot find yourself. 14
Query Execution Drill Downs Example query exec with variable substitution Trace query exec back to source code Full exec EXPLAIN 15
Automated Replication Monitor Auto-detects, groups/maintains Master/Slave topologies Consolidated, real time status /synch check Notifications on Synch Issues Proactive vs reactive Saves you time monitoring and collecting replication status/synch data from MySQL command line. 16
Integrated with My Oracle Support Collect MySQL diagnostics and upload to MOS SR Track SRs from Enterprise Dashboard Create/maintain SRs (CY 2011) Saves DBA time collecting data for Support team, tracking status 17
Download Diagnostic Report 18
Zipped Diagnostic Report Catalina.out java-threads.dot java.props java.threads mysql-monitor.log Replication 1.dot preferences.properties query.instanceoverview.html root.csv server.props Tomcat log file list of the current Java threads and the dependencies The current Java configuration properties. A list of the current Java threads and their backtrace. MySQL log file. The calculated MySQL server replication structure MySQL Enterprise Monitor preferences. An HTML list of the current query analyzer data A copy of your main MySQL Enterprise Monitor log file. A copy of your server properties 19
Architecture 20
MySQL Enterprise Monitor Architecture Agent Server 1 Browser Tomcat Web Server Service Manager MySQL Repository Agent Agent Agent Server 2 Server 3 Server n 21
Which versions of MySQL can I monitor? MySQL Enterprise Monitor can monitor any MySQL server running MySQL 4.1 or higher The advisors and rules provide specific support for different versions 22
Authentication MEM authentication system LDAP PAM 23
Service Manager Requirements Recommended: Put the Service Manager on its own server Minimum Recommended Large (200+ servers)* 2 or more cores 4 or more cores 4 or more cores 2 or more GB RAM 8 or more GB RAM 16 or more GB RAM Disk/I/O subsystem for write-intensive database RAID10, RAID 0+1 Fast RAID (0+1, 10) array with a number of spindles and fast disks (possibly SSDs) is ideal. * See Performance Tuning MySQL Enterprise Dashboard for Large Installations http://dev.mysql.com/doc/mysql-monitor/2.3/en/mem-dashboard-tuning.html 24
MySQL Enterprise Monitor Roles 25
User Roles 26
Manager and Agent Roles Manager can perform all operations Agent can be used for individual logins for each agent 27
DBA Role Cannot: Add/Remove/Change users Change support credentials Change HTTP proxy settings Change the Query Analyzer Settings Update Advisors Change LDAP authentication preferences Optional View query analyzer tab View example query values 28
Read Only Role Identical to the dba role, but is unable to make any changes to the configuration of MySQL Enterprise Monitor 29
Notification Groups 0 = alarm level 1 = rule name 2 = server name 30
Demo 31