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:
- Download the attached file and place it in the lib directory of your Rails app.
- Modify the last line so that the page can be uniquely identified as your app. For example, change "mongrel-status" to "123408ASDF9ask"
- 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."