Assignment 3 - airavata-courses/jerrin92 GitHub Wiki
Need 4 servers for the load balancer to work.
- Configure the Airavata-Django portal on 3 web servers
- Install haproxy on one of the servers (https://www.upcloud.com/support/haproxy-load-balancer-centos/)
- Replace the default haproxy.cfg with haproxy.cfg in the Airavata-Django-fork
- Replace the backend server IP address with the IP address of the other 3 servers
- Access the loadbalancer ip on your browser.
A dummy load balancer is set up on http://149.165.168.90/ and you can access the HAProxy ui with http://149.165.168.90:1936/
Jira: https://issues.apache.org/jira/browse/AIRAVATA-2533 Pull Request:7f44f97b3de079e819e7a394a49396e89060163e
Currently, has configured HAProxy load balancer to send requests in a round robin fashion to the portal servers. However, service discovery is not yet implemented. As of now, you need to manually add the IP address of portal servers to the HAProxy. The load balancer is also a single point of failure.