Forum Discussion

deeje_115970's avatar
deeje_115970
Icon for Nimbostratus rankNimbostratus
Sep 25, 2014

Health monitor for pool members with servers using multiple ports

First, I know this is not a very clear explanation but i'll try my best

Goal: Pool members will be marked inactive if health check end point returns !200.

Pool setup: The pool members pass traffic via 11111 but the health status endpoints live on a different port -- 11117

Snippet of pool members:

node1 service port=11111 manage port=11117

node1 service port=11121 manage port=11127

node1 service port=11131 manage port=11137

node2 service port=11111 manage port=11117

node2 service port=11121 manage port=11127

node2 service port=11131 manage port=11137

Is there a way to use a health monitor that could look at the nodes port and substitute a digit. For example, the health monitor looks at pool member node1:11111 and knows to check port 11117?

I tried adding 3 health monitors looking at each port, 11117,11127, 11137, and setting the availability requirement to 2. That doesn't work because a pool member's port could be down but the other 2 are up so it doesn't mark the actual pool member down.

Here is one of the health monitors i've set up

ltm monitor http myapp_11117 {

defaults-from http7
destination *:11117
interval 5OK"
recv "200 OK"nage/status HTTP/1.1\r\nHost: localhost\r\nConnection: Close\r\n\r\n"
send "GET /manage/status HTTP/1.1\r\nHost: localhost\r\nConnection: Close\r\n\r\n"
time-until-up 0
timeout 16

}

Open to any all and all suggestions that include solutions outside of the F5.

4 Replies

  • you can make use of Alias Service Port setting of the health monitors to address your requirement. Thanks!

     

  • I tried adding 3 health monitors looking at each port, 11117,11127, 11137, and setting the availability requirement to 2.

     

    didn't you assign the health monitor to pool member level (rather than pool level)?