O'Reilly logo

OpenShift Cookbook by Shekhar Gulati

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required