Ambari service for HAProxy
Steps:
- To download the HAproxy service folder, run below
# On Ambari Server Host
VERSION=`hdp-select status hadoop-client | sed 's/hadoop-client - \([0-9]\.[0-9]\).*/\1/'`
sudo git clone https://github.com/saumilmayani/ambari-haproxy-service.git /var/lib/ambari-server/resources/stacks/HDP/$VERSION/services/HAPROXY
- Restart Ambari-server
# On Ambari Server host
ambari-server restart
-
Login to Ambari Server Web UI and click on 'Add Service' from the 'Actions' dropdown menu in the bottom left of the Ambari dashboard
-
Select "HAProxy" and click Next
-
Select the Host where you would want to run "HAProxy Server" and click "Next"
-
Choose to customize "haproxy.cfg" now or later and Hit "Next"
-
Navigate to "Review" Screen and Hit "Deploy"
-
"Install, Start and Test" will complete "Installing HAProxy" and "Starting HAProxy" Service Click Next once you see "Success" Message
-
Once "Complete", You will see "HAProxy" Service on "Ambari Dashboard"
-
For any changes to "haproxy.cfg", navigate to "Configs" page,
Modify the "haproxy.cfg template".
Save
Restart HAProxy