SQL Monitor 11

Installing SQL Monitor with High Availability

Having multiple components which span different technologies, there are several options when implementing SQL Monitor as a High Availability solution.

This page describes:

  • SQL Monitor components and popular High Availability options.
  • How to install SQL Monitor with High Availability.
  • Upgrading a SQL Monitor High Availability installation.

SQL Monitor components and popular High Availability options

Data repository

Making a SQL Server database highly available is common and the same techniques can be used for the SQL Monitor database, the most popular being:

  • Availability Group.
  • SQL Server Failover Cluster instance.

Web Server

When choosing a Web Server to use with SQL Monitor, there are two installation options: default SQL Monitor Web Server (IIS Express) and your own IIS Server.

Users choosing their own IIS Server can use existing techniques to make that IIS Server highly available.

If using the default SQL Monitor Web Server, this can be configured as a Windows Failover Cluster Resource (see below).

Monitoring service

This can be configured as a Windows Failover Cluster Resource (see below).

Installation guide

The steps required to configure SQL Monitor as a High Availability solution.
This example uses the following methods:

  • Data repository – Availability Group database.
  • Web server – Windows Failover Cluster resource.
  • Monitoring service – Windows Failover Cluster resource.


This guide requires a Windows Failover Cluster to have been pre-configured and SQL Server instances available to be part of an Availability Group, as well as prior knowledge of configuring Availability Groups.

Installation steps

  1. To use an Availability Group database as part of the solution, create an empty database, Availability Group and Availability Group listener using your preferred method.
  2. Copy the SQL Monitor installer to all nodes on your Windows Failover Cluster.


  1. Run the SQL Monitor installer, selecting the default options of installing both the default Web interface and monitoring service and choose a port that the web interface will be accessible over.
  2. When asked to specify a database for the repository, choose Select database and Use an existing database. Specify the Availability Group listener and database previously created.
  3. Complete the remainder of the installation wizard and install.
  4. When the installation has completed, load the web interface and specify an Administrator password.
  5. Close the web interface.
  6. Open Services.msc.
  7. Locate the SQL Monitor Base Monitor and SQL Monitor Web Server services.
  8. For each service, open Properties and set the Start type to Manual.
  9. Stop both the SQL Monitor Base Monitor and SQL Monitor Web Server services.
  1. Run the SQL Monitor installer, configuring the same options as when installing onto the passive node.
  2. When the installation has completed, load the web interface and enter the Administrator password.
  3. Close the web interface.
  4. Open Services.msc.
  5. Locate the SQL Monitor Base Monitor and SQL Monitor Web Server services.
  6. For each service, open Properties and set the Start type to Manual.
  1. Run the Failover Cluster Manager and connect to the Windows Failover Cluster.
  2. Click Roles and select an existing role, or create a new empty role.
  3. With the role selected, choose Add Resource > Generic Service from the Actions section on the right-hand side.
  4. Select the SQL Monitor Base Monitor service from the services list.
  5. Complete the wizard.
  6. Repeat the above for the SQL Monitor Web Server service.
  7. With the role selected, open the Resources tab from the bottom pane.
  8. For each SQL Monitor resource, right-click and choose Bring online.
  9. Attempt to connect to the SQL Monitor web interface using a browser and the Windows Cluster name (or Availability Group listener name if you selected an existing Availability Group role) and verify it is working.


Follow the instructions on Configuring Top Query Search to allow all nodes to share the search index data.


Improving the performance of SQL Monitor when the base monitor is clustered across multiple subnets

If an alternative approach is taken to make the website part of SQL Monitor highly available, the SQL Monitor website can be configured to access the base monitor service through the network address corresponding to the clustered base monitor service. When Windows Server Failover Cluster that runs in multiple subnets, for example because they are in different datacenters,the standard way that the network resource is presented may, depending on DNS configuration, result in the website being unable to communicate with the base monitor service for a long period of time.

To address this, SQL Monitor can take advantage of multiple IP addresses being associated with the cluster resource to avoid this delay. This is analogous to the way that an availability group / FCI listener registers multiple IP addresses to support the MultiSubnetFailover connection string parameter. To register multiple IP addresses for the base monitor network address:

This can only be configured through PowerShell.

PowerShell

Add-WindowsFeature RSAT-Clustering-PowerShell
Get-ClusterResource | Where-Object ResourceType -Eq "Network Name" 
#Identify the network name of the cluster resource from the output of the above - the OwnerGroup will be the base monitor's name
Get-ClusterResource <the name from above> | Set-ClusterParameter RegisterAllProvidersIP 1

Following a restart of the web service, SQL Monitor will automatically use both IP addresses.


Upgrade guide


When configuring SQL Monitor in this way, extra steps are needed to successfully upgrade the Web Server and Monitoring service.

Upgrade steps


  1. Open Failover Cluster Manager and connect to the Windows Failover Cluster.
  2. Locate the SQL Monitor Base Monitor and Web Server resources in your role.
  3. Right-click each resource and Take offline.
  1. Run the SQL Monitor installer and complete the installation.
  2. Open Services.msc.
  3. Locate the SQL Monitor Base Monitor and SQL Monitor Web Server services.
  4. For each service, open Properties and set the Start type to Manual.
  5. Stop both the SQL Monitor Base Monitor and SQL Monitor Web Server services.
  1. Run the SQL Monitor installer and complete the installation.
  2. Open Services.msc.
  3. Locate the SQL Monitor Base Monitor and SQL Monitor Web Server services.
  4. For each service, open Properties and set the Start type to Manual.
  5. Stop both the SQL Monitor Base Monitor and SQL Monitor Web Server services.
  6. Open Failover Cluster Manager and connect to the Windows Failover Cluster.
  7. Locate the SQL Monitor Base Monitor and Web Server resources in your role.
  8. Right-click each resource and Bring online.

Do you have any feedback on this documentation?

Let us know at sqlmonitorfeedback@red-gate.com


Didn't find what you were looking for?