@mmumshad and @Inderpreet
I am not sure what has gone wrong again with the backend system, and for the last time will ask kodekloud team’s support please recorrect the scores? this is the third time I am losing scores for no obvious reason and no one is even replying?!!
this is what I have done:
1- ssh to the three app servers and checked which port the http is running on:
cat /etc/httpd/conf/httpd.conf | grep Listen
the port was
Listen 3004
2- ssh to alb server and Installed HAProxy on ALB server
yum -y install haproxy
systemctl status haproxy
systemctl start haproxy
3- configured HAProxy as per requirements:
vi /etc/haproxy/haproxy.cfg
#------------------------------------
# FrontEnd Configuration
#------------------------------------
frontend main
bind *:80
option http-server-close
option forwardfor
default_backend app-main
- Make sure you get the http port of all app. And use it with backend server details as below:
#---------------------------------------------------------------------
# BackEnd roundrobin as balance algorithm
#-----------------------------
backend app-main
balance roundrobin #Balance algorithm
server stapp01 172.16.238.10:3004 check
server stapp02 172.16.238.11:3004 check
server stapp03 172.16.238.12:3004 check
save the file and restarted HAPRoxy
systemctl restart haproxy
couldn’t get the page running on from the browser, not sure why and what I have done wrong, I have done this task two more time and had no issue. could you please review this and let me know why this has failed?