Oracle-Based Deployment Guide for Cisco IoT FND, Release 5.x.x and Later

PDF

Load balancer

Want to summarize with AI?

Log in

Overview

This topic explains the role and behavior of the load balancer in Cisco IoT FND High Availability (HA) environments, including its traffic management, health monitoring, and failover mechanisms.

The load balancer is a critical component in Cisco IoT FND HA that distributes incoming traffic and monitors the health of servers in the cluster.

  • Distributes and balances traffic destined for Cisco IoT FND servers.

  • Maintains heartbeats with each server in the cluster to detect failures and ensure high availability.

  • Redirects traffic to healthy servers if a failure is detected, ensuring continuous service.

Load balancer health monitoring and configuration

The load balancer uses a health monitoring mechanism to determine the status of each Cisco IoT FND server. Heartbeats are sent to each server, and responses are evaluated to mark servers as active or down.

  • Heartbeats are typically implemented as HTTP GET messages to the Cisco IoT FND server on port 80.

  • If a server responds with HTTP 200 OK within a specified interval, it is considered active.

  • If no response or an unexpected response is received, the server is marked down and retried after a specific interval.

  • Some load balancers support custom health monitors using user-defined scripts.

The default values for heartbeat checks and retry intervals depend on the vendor-specific implementation of the load balancer.

  • Custom health monitors can use scripts to check server status.

To check the status of the Cisco IoT FND server on different RHEL versions, use the following commands:

Table 1. Cisco IoT FND Server Status Commands by RHEL Version

RHEL Version

Command

8.x

systemctl status cgms

7.x

service cgms status

For custom health monitors, the script can check if the last two lines of the output indicate "up and running" to confirm the Cisco IoT FND application server is operational.

The following is an example output when running the status check command on the Cisco IoT FND server. The presence of "up and running" in the last two lines indicates the application server is operational.

[root@fndtest ~]# service cgms status
IoT-FND Version 4.8.1-72
09-22-2022 16:45:59 IST: INFO: IoT-FND database server: 1.1.1.1
09-22-2022 16:45:59 IST: INFO: IoT-FND database connection verified.
09-22-2022 16:46:00 IST: INFO: IoT-FND application server is up and running.
09-22-2022 16:46:01 IST: INFO: IoT-FND is up and running.
[root@fndtest ~]#