Installing Redgate Monitor with High Availability
Published 28 March 2024
Having multiple components which span different technologies, there are several options when implementing Redgate Monitor as a High Availability solution.
This page describes:
- Redgate Monitor components and popular High Availability options.
- How to install Redgate Monitor with High Availability.
- Upgrading a Redgate Monitor High Availability installation.
- Using Redgate Monitor website with a load balancer
Redgate 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 Redgate Monitor database, the most popular being:
- Availability Group.
- SQL Server Failover Cluster instance.
Web Server
When choosing a Web Server to use with Redgate Monitor, there are two installation options: default Redgate Monitor Web Server (Kestrel) and your own IIS Server.
Regardless of the installation option, only one web service can control licensing via red-gate.com (see licensing docs). On all other web services, ensure that %ProgramData%/Red Gate/Redgate Monitor/appSettings.json
(create the file if it doesn’t exist), contains the following:
{ "featureFlags": { "Licensing":"off" } }
The webservice controlling licensing must not be down for more than 7 days. This is the maximum period licenses will be cached for. If this period elapses, licenses will be revoked and monitoring/alerting may stop. If the webservice controlling licensing fails over and becomes the passive node, this is okay, as licensing will run in the background providing the service is up. There is no need to fail back over, licensing can be run from a passive node.
Users choosing their own IIS Server can use existing techniques to make that IIS Server highly available.
If using the default Redgate 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 Redgate 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
- 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.
- Create the encryption keys file. This should be in a shared location accessible to all nodes. See Managing the encryption keys file for details on changing the location of this file.
- Alternatively, you can use a separate encryption keys file for each node, but you will need to ensure they always contain the same keys.
- Copy the Redgate Monitor installer to all nodes on your Windows Failover Cluster.
Follow the instructions on Configuring Top Query Search to allow all nodes to share the search index data.
Improving the performance of Redgate Monitor when the base monitor is clustered across multiple subnets
If an alternative approach is taken to make the website part of Redgate Monitor highly available, the Redgate 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, Redgate 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:
Upgrade guide
When configuring Redgate Monitor in this way, extra steps are needed to successfully upgrade the Web Server and Monitoring service.
Upgrade steps
Using Redgate Monitor website with a load balancer
Redgate Monitor implements Microsoft's Data Protection mechanism. To use this you'll need to provide a shared network location that is accessible to all web servers behind the load balancer.