The SkySQL Administration Console

Similar documents
Equalizer VLB Beta I. Copyright 2008 Equalizer VLB Beta I 1 Coyote Point Systems Inc.

Specops Command. Installation Guide

Plesk 11 Manual. Fasthosts Customer Support

uh6 efolder BDR Guide for Veeam Page 1 of 36

Xopero Backup Build your private cloud backup environment. Getting started

Version of this tutorial: 1.06a (this tutorial will going to evolve with versions of NWNX4)

How to install/upgrade the LANDesk virtual Cloud service appliance (CSA)

Cloudera Manager Training: Hands-On Exercises

Installing SQL Express. For CribMaster 9.2 and Later

Video Administration Backup and Restore Procedures

Installation Guide. . All right reserved. For more information about Specops Inventory and other Specops products, visit

Synchronizer Installation

Install Cacti Network Monitoring Tool on CentOS 6.4 / RHEL 6.4 / Scientific Linux 6.4

Setting Up the Device and Domain Administration

Veritas Cluster Server Database Agent for Microsoft SQL Configuration Guide

vcenter Operations Management Pack for SAP HANA Installation and Configuration Guide

Create e-commerce website Opencart. Prepared by : Reth Chantharoth Facebook : rtharoth@yahoo.

Central Administration QuickStart Guide

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

Reflection DBR USER GUIDE. Reflection DBR User Guide. 995 Old Eagle School Road Suite 315 Wayne, PA USA

Integrating SAP BusinessObjects with Hadoop. Using a multi-node Hadoop Cluster

Installation Guide. Help Desk Manager. Version v12.1.0

FmPro Migrator - FileMaker to SQL Server

13.1 Backup virtual machines running on VMware ESXi / ESX Server

FileMaker 12. ODBC and JDBC Guide

Moving the TRITON Reporting Databases

Salesforce Integration

FileMaker 13. ODBC and JDBC Guide

ZeroTurnaround License Server User Manual 1.4.0

Managing User Accounts

NovaBACKUP xsp Version 15.0 Upgrade Guide

MIGRATING TO AVALANCHE 5.0 WITH MS SQL SERVER

CloudPortal Services Manager Version 11.0 CU2 Deployment Guide

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

ITA Mail Archive Setup Guide

NAS 221 Remote Access Using Cloud Connect TM

Deploying System Center 2012 R2 Configuration Manager

QUANTIFY INSTALLATION GUIDE

Note: With v3.2, the DocuSign Fetch application was renamed DocuSign Retrieve.

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

Aradial Installation Guide

IBM WebSphere Application Server V8.5 lab Basic Liberty profile administration using the job manager

HDA Integration Guide. Help Desk Authority 9.0

Setting Up Exchange. In this chapter, you do the following tasks in the order listed:

SOA Software API Gateway Appliance 7.1.x Administration Guide

Active Directory Authentication Integration

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

2. PMP New Computer Installation. & Networking Instructions

Kony MobileFabric. Sync Windows Installation Manual - WebSphere. On-Premises. Release 6.5. Document Relevance and Accuracy

XenClient Enterprise Synchronizer Installation Guide

Deploying the BIG-IP LTM with the Cacti Open Source Network Monitoring System

FileMaker 11. ODBC and JDBC Guide

Installing RMFT on an MS Cluster

Pcounter Web Report 3.x Installation Guide - v Pcounter Web Report Installation Guide Version 3.4

SIMIAN systems. Setting up a Sitellite development environment on Windows. Sitellite Content Management System

CycleServer Grid Engine Support Install Guide. version 1.25

HOW TO SILENTLY INSTALL CLOUD LINK REMOTELY WITHOUT SUPERVISION

CloudPortal Services Manager Version 11.0 CU1 Deployment Guide

Application Discovery Manager User s Guide vcenter Application Discovery Manager 6.2.1

AVALANCHE MC 5.3 AND DATABASE MANAGEMENT SYSTEMS

Getting Started with Attunity CloudBeam for Azure SQL Data Warehouse BYOL

Server Installation/Upgrade Guide

Sisense. Product Highlights.

GMS. 1 Create the virtual machine 2 Configure the virtual machine 3 Configure the virtual GMS server. Quick Start Guide. Microsoft Hyper-V Hypervisor

Configuring and Monitoring Database Servers

INUVIKA OVD INSTALLING INUVIKA OVD ON RHEL 6

Oracle Managed File Getting Started - Transfer FTP Server to File Table of Contents

FileMaker 14. ODBC and JDBC Guide

WEBAPP PATTERN FOR APACHE TOMCAT - USER GUIDE

Oracle Endeca Information Discovery

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

Installation Instruction STATISTICA Enterprise Server

Install SQL Server 2014 Express Edition

ShadowControl ShadowStream

Department of Veterans Affairs VistA Integration Adapter Release Enhancement Manual

Extending Remote Desktop for Large Installations. Distributed Package Installs

Using the IPMI interface

Veritas Cluster Server

NMS300 Network Management System

Desktop : Ubuntu Desktop, Ubuntu Desktop Server : RedHat EL 5, RedHat EL 6, Ubuntu Server, Ubuntu Server, CentOS 5, CentOS 6

Web based training for field technicians can be arranged by calling These Documents are required for a successful install:

Central Administration User Guide

Hadoop Basics with InfoSphere BigInsights

WhatsUp Gold v16.3 Installation and Configuration Guide

BrightStor ARCserve Backup for Linux

Setting Up ALERE with Client/Server Data

SAP Business Objects Business Intelligence platform Document Version: 4.1 Support Package Data Federation Administration Tool Guide

NovaBACKUP Central Management Console

Oracle Database 10g Express

Kaseya 2. Installation guide. Version 7.0. English

Configuring Color Access on the WorkCentre 7120 Using Microsoft Active Directory Customer Tip

Basic SQL Server operations

MySQL Quick Start Guide

WhatsUp Gold v16.1 Installation and Configuration Guide

VERSION 9.02 INSTALLATION GUIDE.

SSL VPN. Virtual Appliance Installation Guide. Virtual Private Networks

Deltek Costpoint New Installation Guide for Microsoft SQL Server

Fasthosts Internet Parallels Plesk 10 Manual

System Area Management Software Tool Tip: Integrating into NetIQ AppManager

SAM Server Utility User s Guide

Transcription:

www.skysql.com The SkySQL Administration Console Version 1.1 Draft Documentation

Overview The SkySQL Administration Console is a web based application for the administration and monitoring of MySQL 1 databases. It provides the ability to monitor key metrics of the database and to perform maintenance operations on those databases from the Administration Console web interface and also to integrate third party tools into the Administration Console framework. The Administration Console comprises a number of elements; the user connects to an application front end, which in turn connects to an API module, the job of which is to contain the interface to the monitoring database. The monitoring and control database is updated by both the action of the API layer and also the external monitor application which probes the monitored MySQL servers. Administration tasks are initiated directly from the console API via a set of control step scripts. 1 MySQL is a trademark of the Oracle Corporation.

Installing The SkySQL Administration Console The SkySQL Administration Console is available either as part of the SkySQL Cloud Data Suite or as a separate download form the SkySQL website. When a system is provisioned via the Cloud Data Suite provisioning application the console is automatically included in that system and configured to manage and monitor that system. The installation of the console using the download is a more complex operation, the software must be installed and then manually configured, using scripts provided in the distribution, to allow it to monitor and manage your system. Installing The RPM Package The installation of the RPM package is a very simple process, the package should simply be downloaded from the SkySQL website and stored on your local machine. Execute the yum package installer to install the package and the packages it depends upon # yum install skysql-console-1.1-1.x86_64.rpm This will install the basic software packages but will not configure or start those packages, this most be done by manually installing a post installation script that will prompt for the necessary configuration information. # /usr/local/skysql/scripts/postinstall The post install script will first create a random password that will be used to connect to the administration console Setting administration console login to admin with a password of 1QlZpEwAVR Setting the MONyog password to 1QlZpEwAVR In order for the administration console to be used there must be at least one server for it to monitor. The information required is stored in a SQLite database, however a script is available to ease the population of the SQLite configuration database. Now create the first system to monitor Please enter a SystemID for the new system you are creating: 12345 Please enter a name for your new system: test1 Is the new system you are creating a replication cluster (Y/n): n Enter details for your server. Enter a name for this node: localhost Enter a hostname for our server [localhost]: Please enter the private IP address for this node [127.0.0.1]: Please enter the public IP address for this node [127.0.0.1]: Please enter a username on this database that can be used to gather monitoring data: monitor Please enter the password for this account: monitor Add another system to monitor [y/n]: Once the system has been created the post installation script will setup the services required to start the administration console to start on boot of the server. The services will then be started in order to allow the console to be used without the need to reboot the server. Starting the services... Starting Services Starting httpd: [ OK ] Using CATALINA_BASE: /usr/share/apache-tomcat-7.0.32 Using CATALINA_HOME: /usr/share/apache-tomcat-7.0.32 Using CATALINA_TMPDIR: /usr/share/apache-tomcat-7.0.32/temp Using JRE_HOME: /usr

Using CLASSPATH: /usr/share/apache-tomcat-7.0.32/bin/bootstrap.jar:/ usr/share/apache-tomcat-7.0.32/bin/tomcat-juli.jar Starting MONyog: MONyog started! [ OK ] MONyog started successfully! Starting SkySQL ClusterMonitor: [ OK ] Finally a message will be printed that will describe how to connect to the administration console. To connect to the SkySQL Administration console point your browser to http://domu-12-31-39-0e-b4-a4:8080/consolev You may add further nodes at any time by running the script /usr/local/skysql/bin/createsystem.sh For more information see the contents of /usr/local/skysql/docs or go to the SkySQL website and forums

Using The Console In operation the console is designed to give an intuitive interface, it is divided into two main section, the upper section gives an overview of the nodes, or database servers that are running, whilst the lower panel contains a set of tabs. The contents of the tab varies depending upon the item that is selected in the upper panel, the icon to the extreme left represents the set of servers as an entire system and will show information or allow control of the system as a whole, the cylindrical icons to the left of this represents the individual servers being administered. A server is selected by clicking on the icon for the server, a background yellow highlight will be added to indicate that the server has been selected. Once selected the set of tabs in the lower section will be altered to reflect the node that has been selected. The Info Tab The info tab will show the current state of the item selected and also some graphs of historical activity on that item, the default configuration will show the availability of the server, the number of connections to the server and the network traffic, in kilobytes per minute, that the server has sent or received.

It is possible to add other graphs to the info tab by modifying the control database for the administration console. The information is collected by a small Java application that runs continually collecting data from the monitored server, this monitor is automatically installed and executed when the administration console is installed. The Control Tab The control tab allow administrative controls to be executed on the server that is currently selected, the controls that are available will depend upon the current state of the server. Clicking on the control tab will display a further pair of tabs, one to allow new commands to be run and the other to review the commands that have previously run on the node.

To run a command, the command is first selected from the list of commands to run, this will display the steps involved in running the command but not yet run that command. To execute the command you simply click on the execute icon to the right of the command list. While a command is executing it will show feedback by means of a marker on a command timeline. The Backup Tab The backup tab is very similar to the Control tab, except that it offers backup and restore commands only and provides a mechanism for browsing past backup and logs of those backups. The Tools Tab The tools tab allows for connection to tools running on the selected node, currently the only external tool supported by individual nodes in phpmyadmin. The system tools tab provides access to the MONyog monitoring tool, an evaluation copy of which is bundled in every Administration Console installation.

Customization It is possible to customize the behavior of the Administration Console in a number of ways, from the look and feel of the interface to the actual administration and monitoring functions available. Customizing Administration Tasks The administration tasks, which are accessed from the Control and Backup tabs on the interface are actually implemented as a step of steps, the steps themselves and the actions for each step are defined in the SQLite database. The actions are implemented by shell scripts that may be modified to fit a particular installation. The main table in the SQLite database that drives the entries in the Control and Backup tabs is the Commands table. TABLE Commands ( CommandID smallint primary key, Name varchar(40), /* Short name of the command */ Description varchar(255), /* Textual description */ Icon varchar(200), /* Name of icon */ UIOrder smallint, /* Display order in UI */ UIGroup varchar(40) /* Display group in UI */ ); As an example, the stop command is defined with the following row CommandID Name Description Icon UIOrder UIGroup 2 Stop Stop node stop 2 control This defines the Stop command to appear on the Control tab, as the second command in the list of commands. The Icon column gives the name of an icon file that can be found in ConsoleV Apache Web-App tree. The steps that are used to build the commands are defined in the Step table. TABLE Step ( StepID smallint primary key, Script varchar(255), /* Script to execute for this step */ Icon varchar(200), /* Icon to represent the step */ Description varchar(255) /* Textual description */ ); This table defines the name of the script to execute, in the directory /var/www/html/ consoleapi/shell/steps, an icon to display on the screen for the execution of the step and a description of the step. The CommandStep table links the steps in a command together, giving an order in which to execute the steps. TABLE CommandStep ( CommandID smallint, /* Command ID */ StepID smallint, /* ID of the step to execute */ StepOrder smallint /* Order to execute the steps in */ ); The individual steps can be tailored to suit your environment by modifying the shell scripts associated with each step. The examples supplied within the RPM file are located in /var/ www/html/consoleapi/shell/steps and simply make calls to scripts stored in /usr/local/ skysql/steps.

Adding Monitors & Graphs The Administration Console is capable of displaying graphs of any data that is collected by the external monitoring tool, this tool is driven by a table in the SQLite control database. The Monitors table allows for the different monitors to be created TABLE Monitors ( MonitorID smallint primary key, Name varchar(80), /* Displayed name of this monitor */ SQL varchar(200), /* SQL to run on MySQL to get the * current value of the monitor. */ Description varchar(255), /* tooltip description of monitor */ Icon varchar(200), /* icon associated to monitor */ ChartType varchar(40), /* type of chart to be used for * rendering */ UIOrder smallint, /* Display order in UI */ delta boolean, /* This monitor reports delta values */ MonitorType varchar(20), /* Type of the monitor */ SystemAverage boolean /* Value averaged over nodes */ ); The MonitorType column determines how the data will be collected, there are currently four types of monitor that can be created; a ping monitor, a SQL monitor, a shell command monitor and a CRM monitor. The ping monitor performs a simple ICMP ping and returns either an up or down status for the node. The SQL monitor will execute an SQL statement on the remote server, the value returned in that query is then taken as the value of the probe and plotted on the appropriate graph. This is normally used to extract data from the information schema of the monitored database. The text of the SQL statement is taken form the SQL column in this row. A shell monitor will execute a command on the host machine of the node being monitored. The data returned by that command is then taken as the value of the probe and plotted on the appropriate graph. The name of the shell script to execute is read from the SQL column in this row. A CRM monitor is a specialized monitor used to check the status of nodes within a cluster. It does not result in any graph being plotted by will simply update the status of the node within the system. This is is done by execution of the crm status bynode command on the current machine, this machine must be part of the same CRM cluster that is being monitored. New monitors, and graphs, can be added to the info tab simply by adding rows to the Monitors table. The UIOrder column will determine the order in which graphs are displayed in the tab, leaving this column null will hide a particular graph from display but still enable collection of the monitoring data. Setting the SystemAverage column to true will cause the value reported by the System icon to be an average of all the nodes in the system, otherwise the value reported is the sum of all the nodes in the system. The Delta column determines of the values reported by each probe are cumulative or a delta since the last report.

Adding Custom Controls The section above detailed how the controls are implemented within the control database and described the mechanism to tailor those controls to a particular installation.it is also possible to add new commands using either a combination of steps already available, or by adding new steps that can be utilized within a command, possibly including some steps that already exists. Creating a step To create a step you require Creating a command An Icon to represent the step in the timeline display. A shell script that executes the relevant commands required to implement the action the step should perform. A row in the Steps table that allocates the step a unique id and associates the script, icon and name of the step. In order to create a new command you require Command permissions An Icon for the command for display purposes. A name to be displayed in the command list. A row in the Commands table to allocate a unique command id to the command. A set of rows in the CommandStep table to link the steps required to execute the command and to give the order of execution of the steps. The system only presents commands for execution that are valid for the current state of the node that is selected. In order to control this a ValidCommands table exists that contains a row for each node state and command id combination that is valid. TABLE ValidCommands ( State smallint, /* Current state */ CommandID smallint /* Command */ ); The full set of values of State can be found by reference to the NodeStates table, this contains each state and the textual description of the state.