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?
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.
If you still have questions after reading this post back.
Also don’t forget to use the full http hostname, not just the short name that you have in your example above.
Ok, how about using the response time to determine which poolmember is the fastest? Do we have this kind of feature in F5?
To check if response code is 200 for URL http://rbcdevesh210:8081/alive/1.0/alive use following configuration
GET /alive/1.0/alive HTTP/1.1\r\nHost: rbcdevesh210:8081\r\nConnection: Close\r\n\r\n
and in receive string
to load balance with priority based on response speed, use fastest(member) load balancing method