Configuring a different health check URL for HAProxy

In this recipe, you will learn how to update the HAProxy configuration file to configure a different heath check URL.

Getting ready

To complete this recipe, you will need rhc installed on your machine. This recipe will utilize the application created in the Creating scalable applications recipe.

How to do it…

Perform the following steps:

  1. Open a command-line terminal and navigate to the application directory created in the Creating scalable applications recipe.
  2. SSH into the main application gear using the rhc ssh command, as follows:
    $ rhc ssh --app jobstore
    
  3. Change the directory to the haproxy configuration directory, as follows:
    $ cd haproxy/conf
    
  4. Now, open the haproxy.cfg file using VIM, and remove ...

Get OpenShift Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.