Top Banner
MySQL Enterprise Monitor Lynn Ferrante Principal Sales Consultant
31

MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Jul 24, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 1

MySQL Enterprise Monitor Lynn Ferrante Principal Sales Consultant

Page 2: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 2

Program Agenda

  MySQL Enterprise Monitor Overview

  Architecture

  Roles

  Demo

Page 3: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 3

Overview

Page 4: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 4

Oracle Premier Lifetime Support

Oracle Product Certifications/Integrations

MySQL Enterprise High Availability

MySQL Enterprise Security

MySQL Enterprise Scalability

MySQL Enterprise Backup

MySQL Enterprise Monitor/Query Analyzer

MySQL Workbench

MySQL Enterprise Edition Highest Levels of Security, Performance and Availability

MySQL Enterprise Audit

Page 5: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 5

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

Page 6: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 6

A Virtual MySQL DBA Assistant!

  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

MySQL Enterprise Monitor

Page 7: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 7

Enterprise Monitor - Dashboard

© 2011 Oracle Corporation – Proprietary and Confidential

Page 8: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 8

Enterprise Monitor - View 1 Server

Detailed Listing for 1 server

Page 9: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 9

Enterprise Monitor - View 1 group

Concentrate on one group of servers (did you notice the group has been renamed?)

Page 10: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 10

Saves time writing, deploying, versioning, maintaining custom scripts. Visualize problems and tuning opportunities you cannot find yourself.

Administration Monitors and Advises on

Optimal Start up and Run time Configuration

Security Monitors and Advises on

Unplanned Security Changes/Loopholes

Upgrade Monitors and Advises on

Bugs/Upgrades that affect current installation

Replication Monitors and Advises on

Master/Slave Latency

Memory Usage Monitors and advises on

optimal memory/cache settings

Schema Monitors and Advises on

Unplanned Schema Change

Performance Monitors and Advises on

Optimal Performance Variable Settings

Built by DBA to Enforce Organization specific best practices

Custom

MySQL Cluster Monitors and Advises on

status/ performance of MySQL Cluster Data Nodes

Backup Monitors and Advises on

Backup/Recovery processes

Automated Advisors and Alerts

Page 11: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 11

Administration

Backup

Heat Chart

Memory Usage

Performance

Upgrade

Replication

Schema

Security

Cluster

32

6

14

6

26

15

20

18

26

10

# Rules

Rules

Advisors

Page 12: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 12

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

Page 13: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 13

Dashboard Notifications

Page 14: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 14

 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.

MySQL Query Analyzer

Page 15: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 15

Example query exec with variable substitution

Trace query exec back to source code

Full exec EXPLAIN

Query Execution Drill Downs

Page 16: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 16

  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.

Automated Replication Monitor

Page 17: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 17

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

Page 18: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 18

Download Diagnostic Report

Page 19: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 19

Zipped Diagnostic Report

Catalina.out Tomcat log file java-threads.dot list of the current Java threads and the dependencies

java.props The current Java configuration properties. java.threads A list of the current Java threads and their backtrace.

mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure

preferences.properties MySQL Enterprise Monitor preferences. query.instanceOverview.html An HTML list of the current query analyzer data

root.csv A copy of your main MySQL Enterprise Monitor log file.

server.props A copy of your server properties

Page 20: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 20

Architecture

Page 21: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 21

MySQL Enterprise Monitor Architecture

Service Manager

Tomcat Web Server

MySQL Repository

Server 1 Agent

Server 2

Server 3

Server n

Agent

Agent

Agent

Browser

Page 22: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 22

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

Page 23: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 23

Authentication

 MEM authentication system  LDAP  PAM

Page 24: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 24

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

Page 25: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 25

MySQL Enterprise Monitor Roles

Page 26: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 26

User Roles

Page 27: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 27

Manager and Agent Roles

 Manager can perform all operations  Agent can be used for individual logins for each agent

Page 28: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 28

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

Page 29: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 29

Read Only Role

Identical to the dba role, but is unable to make any changes to the configuration of MySQL Enterprise Monitor

Page 30: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 30

Notification Groups

0 = alarm level 1 = rule name 2 = server name

Page 31: MySQL Enterprise Monitor€¦ · mysql-monitor.log MySQL log file. Replication 1.dot The calculated MySQL server replication structure preferences.properties MySQL Enterprise Monitor

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 31

Demo