RightScale Support Wiki > References > RightScale > RightScale Dashboard > How-to Guides > Set up HAProxy so that it doesn't forward traffic to other sites

Set up HAProxy so that it doesn't forward traffic to other sites

Table of contents
No headers

To ensure that HAProxy doesn't forward traffic to an IP address that you have taken out of the rotation, you need to create a special page that uniquely identifies your machine. We have created one that you can use on ruby systems.

Simply follow the steps below:

  1. Download the attached file and place it in the lib directory of your Rails app.
  2. Modify the last line so that the page can be uniquely identified as your app. For example, change "mongrel-status" to "123408ASDF9ask"
  3. Configure your deployment inputs correctly.
    • Set OPT_MONGREL_CONFIG_SCRIPT to the path where you saved the mongrel handler code. Be sure to specify the full path from the base of your Rails app. Ex: lib/mongrel_health_check_handler.rb
    • Set OPT_HEALTH_CHECK_URI to the path you've chosen above. In this example, set it to "/123408ASDF9ask."

 

Tag page

Files 1

FileSizeDateAttached by 
 mongrel_health_check_handler.rb
No description
2.35 kB22:53, 12 Feb 2008martinActions
You must login to post a comment.