Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology

Monitoring poolmember thru html return code

We like to change the way the loadbalancers monitor the poolmembers. Currently, the LB check if a specific port is available/accessible. To give us some flexibility to exclude a poolmember temporarily, we want the LB to check an URL and verify the html return code.

I will give an example. The LB should: • check an URL something like http://rbcdevesh210:8081/alive/1.0/alive; • verify the html return code is ‘200’; • use the response time to determine which poolmember is the fastest.

May I ask if this is possible?

Rate this Question
Comments on this Question
Comment made 5 months ago by Dan Pacheco 171

You are describing two separate features. First is a “http health monitor” to send an http request and receive a http status code back. Secondly distribution method “response time”.

There are several knowledge base articles that describe how to set up health checks in detail. https://support.f5.com/csp/article/K2167

If you still have questions after reading this post back.

Comment made 5 months ago by Dan Pacheco 171

Also don’t forget to use the full http hostname, not just the short name that you have in your example above.

Comment made 5 months ago by markymark 2

Ok, how about using the response time to determine which poolmember is the fastest? Do we have this kind of feature in F5?


Answers to this Question


To check if response code is 200 for URL http://rbcdevesh210:8081/alive/1.0/alive use following configuration

send string

 GET /alive/1.0/alive HTTP/1.1\r\nHost: rbcdevesh210:8081\r\nConnection: Close\r\n\r\n

and in receive string

HTTP/1.[01] 200

to load balance with priority based on response speed, use fastest(member) load balancing method