Skip to main content Skip to complementary content

Installing Qlik Alerting in a multi-node environment

Qlik Alerting for Windows supports running as a multi-node environment from the September 2020 release. A multi-node setup is not applicable for every customer as it requires a little more knowledge on the part of the organization to setup and maintain. The key benefits are:

  • Resilience - if one Qlik Alerting server node is offline the others in the cluster will take over the tasks and user interactions. Therefore there should be no loss of service due to downtime of a single machine.
  • Scalability & Performance - If you have a very large number of users with very large volumes of alerts being processed you may wish to separate the load across multiple servers to ensure there is no loss of performance for the users and for the alert delivery.

What will you need to setup a multi-node architecture

  1. Access details for a resilient MongoDB instance (replica set, cluster, Atlas/cloud)
  2. Multiple Windows Servers to install the Qlik Alerting nodes
  3. An external load balancer to manage the user access to the different, accessible Qlik Alerting nodes

Multi Node Architecture

The Qlik Alerting for Windows setup is reasonably simple to configure for a multi-node environment. The complexity is really outside of the Qlik Alerting install and relates to the setting up and maintenance of a resilient MongoDB instance and an external load balancer for users to access the front end.

Architecture diagram

Components

  • Server 1 - Load balancer, this can be NGinx or any other load balancer that the customer has experience of. The example below will cover an NGinx deployment.
  • Server 2, 3, ... - Qlik Alerting full stack installs using installer.
    Information noteYou do not need to install MongoDB on these servers but you will need to install NodeJS and then the Qlik Alerting installer.
  • External Databases

The role of the load balancer

The load balancer is used to direct access to the web UI, extension and API calls to the appropriate / most available server. It acts as the single entry point to the cluster and would typically be setup to be resilient on it's own.

Allocation of backend tasks (scans, notifications etc)

Backend tasks are identified and pushed into the queue in MongoDB. Each node will take from the queue as required and the action completed by that node. When a node has taken the item from the queue it is removed and therefore the same action will not be duplicated on another node.

Setup a multi-node Qlik Alerting for Windows site

  1. Ensure you have your MongoDB connection details.

    For MongoDB to be considered resilient you would need to setup and/or connect to a replica set, shared cluster or MongoDB Atlas (cloud SaaS).

  2. On the first Windows server you will install Qlik Alerting and run through the setup (assuming you have not transferred the MongoDB database from an existing install).
    1. Install the latest NodeJS version. https://nodejs.org/en/download/ as per the installation pre-requisites. You do not need to install MongoDB

    2. Install Qlik Alerting for Windows as per the single node installation instructions but do not continue with the configuration steps. It will complete the install even though the databases are not locally installed so let it run through to the end of the process.
    3. Update the MongoDB connection details

      1. on the server navigate to the C:\Program Files/qlik alerting/config/ folder
      2. open the default.json file with a text editor
      3. add the MongoDB connection details for your resilient server setup, if you are using a replica set, cluster or Atlas connection then you will likely use the connectionString option as you will be connecting to multiple nodes through the string.

        For details on how to add these details see Install MongoDB

      4. save this file and restart the Qlik Alerting Repository and Qlik Alerting Queuer services
  3. Repeat step 2 for each additional node you wish to add to the cluster. You can add additional nodes at any time after the original setup by following these steps.
  4. To setup the site you will need to run through the registration process from any one of the nodes you have setup. Follow the Qlik Sense connection configuration guide to configure the Qlik Sense data connection, the Qlik Alerting configuration, the email server and the administration users.

    Information noteThe address you enter in the Qlik Alerting configuration should be the load balancer address as this is used to create the connection strings that are sent in the notifications.

Information noteDepending on the requirements of the load balancer you may choose to simplify the setup by changing the default 4551/4551 ports for Qlik Alerting to a the standard 80/443 ports for http/https connections. This may simplify your setup, see Changing the ports for Qlik Alerting web access for details on how to do this. Please remember to do this one each and every Qlik Alerting node.

For more information and a walk-through example, see Multi Node Install Example for Qlik Alerting for Windows using Nginx as a Load Balancer.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!