Configuring AWS Application Load Balancer (ALB) for routing traffic to Applications Manager Failover setup

Configuring AWS Application Load Balancer (ALB) for routing traffic to Applications Manager Failover setup

Step 1: Failover Setup

  1. Follow this document and set up the Applications Manager Failover.
    1. It is recommended that you deploy the database server in the Cloud infrastructure as well.
      1. To use PGSQL, you can use bundled PGSQL with Applications Manager.
      2. To use MSSQL, deploy it in the AWS cloud infrastructure (MSSQL in RDS service/MSSQL in EC2 Instance).
    2. Deploy two EC2 instances in accordance to the hardware requirements given here to configure the Applications Manager Failover setup.
Note: In the failover setup, the primary server, secondary server and the database server should be able to communicate with each other.  Ensure that all resources are in the same network i.e., using the same VPC for setting up resources is preferred.

Step 2: Configure AWS ALB to route the traffic

Ensure that the Failover setup of Applications Manager in EC2 is running to configure Application Load Balancer to route the traffic.

Step 2.1: Creating a Target Group

  1. To create target groups, follow the steps here.
    1. Register Applications Manager's primary and failover server's instance IDs as targets.
    2. Enter the default ports (HTTP: 9090 & HTTPS: 8443).
    3. Configure health checks with minimum value to ensure quick availability of failover setup.
  2. At any given time, only one of the targets will be healthy and the other target will be on standby.

Step 2.2: Creating an ALB

  1. To create an Application Load Balancer, follow the steps here.
    1. Create a listener and associate it with the target group created in the above step to facilitate request forwarding.
    2. While specifying the rules, you can use the default rule.
  2. After creating the load balancer, note down the DNS and listener port.
  3. Access the ALB's DNS in the listener port and check if the Applications Manager is accessible.
  4. ALB will automatically redirect to the targets based on their health status.
Ensure that the security group of ALB is configured to receive an inbound request at the listener port.

Failover in ALB Flow Chart


Demo setup screenshots

Setup Details:
Failover-instance-1
  1. Applications Manager
    1. HTTP: 9090
    2. HTTPS: 8443
  2. MSSQL (Can configure RDS also for Applications Manager backend)
    1. TCP: 1433
Failover-instance-2
  1. Applications Manager
    1. HTTP: 9090
    2. HTTPS: 8443


Target group:
Protocol & Port: HTTPS: 443
Targets: Failover-instance-1 & Failover-instance-2 in port 8443.
At a given time, only one target will be in a healthy state and the other server will be serving as a failover.


Health Checks:


Application Load Balancer (ALB):
Listener: HTTP:80 & HTTPS:443 (Protocol & port same as Target group's)
Forward to: APM-Failover-HTTPS & APM-Failover (Target groups)

Rule: Default



                  New to ADManager Plus?

                    New to ADSelfService Plus?

                      • Related Articles

                      • Configuring Applications Manager Failover setup across multiple regions/networks in AWS

                        To configure APM Failover setup in a single region using Amazon Application Load Balancer, refer to this Knowledge Base. Agenda: To configure APM Failover between multiple networks, consider the following scenarios: Establish communication between ...
                      • Failover support in Applications Manager

                        Failover is an alternate Application High availability (HA) mode that facilitates automatic switching to a secondary/ backup server, database, or network when the primary system breaks down, or is unavailable due to maintenance. Configuring failover ...
                      • Configuring Zoho as an OAuth Provider in Applications Manager

                        Zoho's OAuth token is used to access services in Applications Manager like integration with Site24X7, integration with Service desk, access to Zoho Mail APIs etc. As it seems a daunting task to go through all the documentation of the product, here ...
                      • ManageEngine Applications Manager High Availability setup with dual database (MySQL).

                        Apart from the Failover setup,  which uses a single database and dual Application Server, we also support a failover with dual database and Application Server. Failover support requires you to configure Applications Manager Secondary (Standby server) ...
                      • Installing Applications Manager in AWS

                        Applications Manager can be installed in EC2 instances in both Windows and Linux platforms.  Applications Manager comes with bundled PostgreSQL. Installing Applications Manager in EC2 for Windows Go to EC2 console and launch an "Windows" instance ...