1. Home
  2. Balancer
  3. Checking a specific host with HTTP Checks in the Balancer

Checking a specific host with HTTP Checks in the Balancer

With Snapt, you can easily set up health checks to ensure that your backend services are up and running before marking a load-balanced pool as online. But how do you check to see if a specific host (website) is online?


The HTTP Check URL is often set to / for the index page, or sometimes a specific page such as /status

If you want to send a Host header with it (for a specific website) you can do so by modifying the URL string. For example, to check /status on www.snapt.net you would set the following string:

/health_check.php HTTP/1.1\r\nHost:\ www.snapt.net

Step 1: Edit your group or backend

To set up the above, you’ll need to navigate to your Group or Backend Management and click on “Edit”

Step 2: Protocol Tests

Next, click on the “Protocol Tests” tab to access all the health check options with Snapt

Step 3: HTTP Check

Now, you’ll toggle on the HTTP Check button to “On”

We’ll now also set the HTTP Method to “GET” and you’ll input the string above. (Remember to change the variables)

 

Updated on August 12, 2019


Was this article helpful?

Related Articles