Monitoring Galera with MONyog



Similar documents
NovaBACKUP. Storage Server. NovaStor / May 2011

High Availability Solutions for the MariaDB and MySQL Database

Escalation Server Documentation For Tele-Support HelpDesk Rev 5/29/2001

DOMAIN CENTRAL HOSTING

ArcMail Technology Defender Mail Server Configuration Guide for Microsoft Exchange Server 2003 / 2000

A Quick Start Guide to MONyog Ultimate Enterprise Monitor

1. Open the preferences screen by opening the Mail menu and selecting Preferences...

Configuration Information

DiskBoss. File & Disk Manager. Version 2.0. Dec Flexense Ltd. info@flexense.com. File Integrity Monitor

Mechanics Bank Mobile Banking Mobile Finance Manager (MFM) Application Windows Mobile Phone Installation

Using AppMetrics to Handle Hung Components and Applications

Zoho CRM and Google Apps Synchronization

How to Setup SQL Server Replication

BlackBerry Enterprise Server Version: 5.0. Monitoring Guide

Quick Start Guide. Ignite for SQL Server. Confio Software 4772 Walnut Street, Suite 100 Boulder, CO CONFIO.

Configuring a Custom Load Evaluator Use the XenApp1 virtual machine, logged on as the XenApp\administrator user for this task.

Scan to Quick Setup Guide

Installation Guide and Machine Setup

Configuring, Customizing, and Troubleshooting Outlook Express

How to backup with R1soft

Instructions. Outlook (Windows) Mail (Mac) Webmail Windows Live Mail iphone 4, 4S, 5, 5c, 5s Samsung Galaxy S4 BlackBerry

The SkySQL Administration Console

Appendix A How to create a data-sharing lab

MONyog White Paper. Webyog

Messages Tab. Overview: The Messages Tab. Inbox: Viewing and Replying to Messages. Composing New Messages. Archiving Messages

Monitoring Replication

Salesnet CRM Documents

DEPLOYMENT GUIDE CONFIGURING THE BIG-IP LTM SYSTEM WITH FIREPASS CONTROLLERS FOR LOAD BALANCING AND SSL OFFLOAD

How to install and use the File Sharing Outlook Plugin

Rational Quality Manager. Quick Start Tutorial

Dashboard Designer. Introduction Guide. Basic step by step guide to creating a Dashboard. June 2012 V1.2

Juniper Networks Management Pack Documentation

HP LeftHand SAN Solutions

WebSphere Business Monitor V7.0 Business space dashboards

DocAve 6 Service Pack 1 Job Monitor

Appendix A Core Concepts in SQL Server High Availability and Replication

Customer Tips. Configuration and Use of the MeterAssistant Option. for the user. Purpose. Xerox Device Configuration. Xerox Multifunction Devices

June 20, Copyright 2012 by World Class CAD, LLC. All Rights Reserved.

Recommended Browser Setting for MySBU Portal

Support System User Guide

Update Instructions

User Guide Online Backup

How to Program a Commander or Scout to Connect to Pilot Software

Cloud. Hosted Exchange Administration Manual

1. Open the preferences screen by opening the Mail menu and selecting Preferences...

HDAccess Administrators User Manual. Help Desk Authority 9.0

HDA Integration Guide. Help Desk Authority 9.0

StarWind iscsi SAN: Configuring HA File Server for SMB NAS February 2012

Configuring Security for FTP Traffic

FORM SIMPLICITY QUICK REFERENCE GUIDE PROFESSIONAL/ULTIMATE EDITION

Drobo How-To Guide. Topics. What You Will Need. Prerequisites. Deploy Drobo B1200i with Microsoft Hyper-V Clustering

Managing Software Updates with System Center 2012 R2 Configuration Manager

Configuring Network Load Balancing with Cerberus FTP Server

System Protection for Hyper-V Whitepaper

Deploying Remote Desktop Connection Broker with High Availability Step-by-Step Guide

THANK YOU FOR INSTALLING CARBONITE SERVER BACKUP!

Exchange Mailbox Protection Whitepaper

Microsoft Project Server Integration with SharePoint 2010

Altaro Hyper-V Backup - Getting Started

TriCore Secure Web Gateway User Guide 1

Migration User Guides: The Console Application Setup Guide

How to synchronize Microsoft Project file with SharePoint task list

Setting Up Alarms in a HOBO ZW Wireless Network

SaaS Encryption Enablement for Customers, Domains and Users Quick Start Guide

Symantec PGP Whole Disk Encryption Hands-On Lab V 3.7

WebSphere Business Monitor V6.2 Business space dashboards

Sophos for Microsoft SharePoint startup guide

Secure IIS Web Server with SSL

ConnectMail Mobile Configuration

Virtual Office Remote Installation Guide

Configuration Information

Remote Access: Internet Explorer

Using Depositit to Backup Microsoft Exchange Server

BlackBerry Mobile Voice System. Version: 5.3. Administration Guide

Monitor TemPageR 4E With PageR Enterprise

WebEx Virtual Office Hours

Dell KACE K1000 System Management Appliance Version 5.4. Service Desk Administrator Guide

GiftWorks Online Donations

Place a Call on Hold 1) In Call Control Area, click to select call to hold. 2) Click Hold button.

BlackBerry Enterprise Server

Introduction to Oracle Business Intelligence (OBI)

MONyog White Paper. Webyog

Installation Guide - Client. Rev 1.5.0

TSM Studio Server User Guide

Fax. Problems with Fax Delivery to Users CHAPTER

Active Directory Self-Service FAQ

StarWind iscsi SAN Software: Using StarWind with MS Cluster on Windows Server 2008

Configuring Outlook 2013 For IMAP Connections

Adding Outlook to a Blackberry, Downloading, Installing and Configuring Blackberry Desktop Manager

Using DBMoto 7 in a Microsoft Windows Cluster

Installing GFI MailSecurity

Administrator s Guide

First Time On-Campus VLab Setup Windows XP Edition

Set Up Setup with Microsoft Outlook 2007 using POP3

StarWind Virtual SAN Installing & Configuring a SQL Server 2012 Failover Cluster

Reference Guide for WebCDM Application 2013 CEICData. All rights reserved.

How to Use Remote Access Using Internet Explorer

Using Business Activity Monitoring Dashboard

Transcription:

Monitoring Galera with MONyog Abstract This white paper introduces the drawbacks of traditional MySQL High Availability set ups and suggests a modern, best- in- class High Availability solution utilising MONyog and Galera. The basics of Galera and MONyog are explained, and the steps to setting up the combined solution is gone through step- by- step. 1 Introduction A key aspect of managing a database system is being able to monitor it, review the key parameters and performance metrics over time, send alerts when there are issues and identify bottlenecks. One of the most well- known and respected products for monitoring MySQL is MONyog. For customers with a support subscription from MariaDB, MONyog is a key differentiator.. Similarly, High Availability (HA) of database systems have matured and become much more affordable, now providing 24x7 database connectivity for your mission- critical applications. In the past, MySQL HA was based on expensive, legacy availability solutions that used physical storage or MySQL Replication. Both of these solutions have drawbacks: Whilst a storage- based solution offers redundancy of the physical media it does not allow more than one MySQL instance to access storage at the same time. This makes for slow failover. MySQL Replication uses a complex Asynchronous or Semi- synchronous setup. This means that failover has to wait for the replication to catch up. Allowing multiple masters when using MySQL Replication is possible, but it can be unreliable and there is no conflict detection. At MariaDB, we believe that MONyog combined with Galera overcomes this issues to provide a modern, best- in- class High Availability solution for MySQL users. 2 Introduction to High Availability with Galera Galera uses a software- only configuration that provides the same level of data assurance as a Storage Based solution, but is tightly integrated with MySQL so setting up and managing a Galera- based cluster is easy. Galera does the actual replication externally to MySQL, but this is just a library that is called from the database server, so there are no new servers to run. Configuring Galera takes place in the same way as configuring MySQL - by using a my.cnf file. Galera creates a true cluster which is different from using MySQL Replication, for example, where the different nodes are largely autonomous. With Galera, all nodes know about each other, they exchange information and perform arbitration so that quorum is achieved and split- brain situations are avoided. The status of a Galera cluster is provided in the same way as for MySQL variables and status, i.e. by running the commands SHOW VARIABLES and SHOW STATUS. Galera also supports Conflict Resolution using Optimistic Locking, providing low latency and consistent data, while maintaining high performance. Page 1

3 Introduction to MONyog MONyog is a powerful tool for monitoring MySQL and related database technologies. It includes features that store performance data and settings, customize the data that is retrieved, graph data over time and send alerts. Its also contains a knowledge base so a user of the system is understands what all the metrics mean and, when there is an alert, suggest appropriate actions. Since it runs as a web service, MONyog is accessible from any browser, which limits installation requirements to one machine only. Written in C/C++ in the lower layers, MONyog s user Interface is AJAX- based to allow for responsive and effective interaction. MONyog is also user- extensible and exposes its data as JavaScript. This means that adding user- defined objects is easy and uses familiar technologies. Best of all, MONyog is already pre- configured to handle monitoring of a Galera- based MySQL cluster. 4 Monitoring MySQL / MariaDB Galera Cluster with MONyog The following assumes that you have already installed and started MONYog (version 5.53 or later), and you have a few Galera enabled MySQL servers running. In the examples shown here, we will use a simple Galera Cluster with just 2 nodes, ClusterNode41 and ClusterNode42. 4.1 Enable the Galera monitors in MONyog Monitoring Galera has been supported by MONyog for some time but it is not enabled by default so to get started we need to enable Galera monitoring: Log into MONyog and click in the Customize button at the top left of the window. You now see a two lists of monitor groups, the enabled ones to the left and the disabled to the right. Select the Galera monitor group in the left- hand list and then click the button Enable in between the two lists. Page 2

With the monitors in place, we can now start to do some more interesting things. 4.2 Creating Galera Dashboard graphs One of the first things you will probably want is to have a graph on the health of your MySQL cluster. Right now the Galera component of MONyog only contains monitors, but creating graphs is easy. Let s create a graph that shows if there is a bottleneck in the replication between the Galera nodes, which can be seen by monitoring the status variable wsrep_local_send_queue_avg: Go to the Dashboard pane and then click on the cogwheel settings icon on the top right and select Add new Dashboard Chart. Then you set the Caption of the chart and the graph (there is just 1) and then the tricky bit, the value to monitor (in Series Values): [MONyog.MySQL.GlobalStatus.wsrep_local_send_queue_avg]. Finally, you probably want to set ChartValue to Current in this case. The screen should look some- thing like this: With this in place, let s now add a second Chart, this time showing the percentage of the time that Galera replication is paused. To do this, create the Graph in the same way as above, choosing appropriate names again, but in Series Values you instead put: [ToInt(MONyog.MySQL.GlobalStatus.wsrep_fl ow_control_paused) * 100] Page 3

With these two new Graphs in place, and a few existing ones removed, the Dashboard now looks like this: 4.3 Creating MONyog Alerts for Galera A very important aspect of monitoring is to be able to defi ne alerts when certain conditions happen. By default, the Galera monitors have one alert on the wsrep_ready status variable. A useful alert would be on the wsrep_cluster_size variable, as this allows us to warn when there is just 1 (or 2) nodes in the cluster. This can be achieved doing the following: Go to the Monitors pane and click on the Number of nodes in the cluster monitor in the Galera group. In the popup window you get, click on Customize and you get a window where this monitor can be confi gured. At the top of this window, click on the View Advanced link and scroll down to the Alert settings. Alter condition can be set to something like this: function() { if(this.value < 2) return Critical ; else if (this.value < 3) return Warning ; else return None ; } Page 4

To alert for a critical condition when there is just 1 server in the cluster and issue a warning if there are 2. To get notified of this condition, you also have to set Notify? To Yes. In addition you have to do two more general things to enable notifications in general: Click on Tools in the left menu pane and then set up Mail Settings. Enable the monitored server to send email alerts by selecting Edit server in the dropdown menu to the right of the server in the left list, and then go to the Notifications tab and enable Send notifications over Mail (SMTP). 5 References MariaDB provides subscriptions for MySQL / MariaDB and Galera that includes MONyog: www.mariadb.com Codership develops Galera: www.codership.com Webyog develops database tools, among the MONyog: www.webyog.com Page 5