Load Balancer Testing

11.1 Backend Availability Test

Each ERPNext application server was accessed individually to confirm that it was operational before introducing HAProxy.

The following URLs were tested:

http://192.168.31.40:8844
http://192.168.31.41:8844
http://192.168.31.42:8844

All three servers successfully displayed the ERPNext login page.

11.2 Access through HAProxy

Once HAProxy was configured, the application was accessed using the HAProxy IP address.

http://192.168.31.60

Instead of communicating directly with an individual ERPNext server, users now interact only with the load balancer.

HAProxy transparently forwards requests to one of the healthy backend servers.

11.3 Request Distribution

Multiple browser refreshes were performed to verify that incoming requests were distributed across the three application servers.

The Round Robin algorithm successfully balanced requests between App1, App2, and App3.

This confirmed that the load balancing configuration was functioning correctly.