Forum Discussion
Connection Draining based upon Health Monitoring?
- Feb 20, 2014
There is an option called "recv disable" string which if received will disable the member.
From the monitor configuration monitor monwebserver { defaults from https recv disable "MAINTENANCE" recv "PASS" send "GET / HTTP/1.1\r\nHost: abc.com\r\nConnection: close\r\n\r\n } This will disable the member if MAINTENANCE is received and will enable it if PASS is received. when its disabled it will allow existing connections.
There is an option called "recv disable" string which if received will disable the member.
From the monitor configuration monitor monwebserver { defaults from https recv disable "MAINTENANCE" recv "PASS" send "GET / HTTP/1.1\r\nHost: abc.com\r\nConnection: close\r\n\r\n } This will disable the member if MAINTENANCE is received and will enable it if PASS is received. when its disabled it will allow existing connections.
- Paul_E__144936Feb 20, 2014
Nimbostratus
Thank you for the quick response Mui! I will work with our admin tomorrow and see if we can get it going. If I may ask, is that a typo or two in your response? There's a double-quote before GET, but not one anywhere after. And you wrote "monitor configuration monitor monwebserver" which seems redundant to this newgry. Sorry, I've never seen this stuff before, so I can't tell for sure if the syntax is correct. - Paul_E__144936Feb 20, 2014
Nimbostratus
I did a bit of reading, and I think I now understand your answer. "monitor configuration" is where this code goes. The monwebserver is just a name for the monitor, whatever we want. There is a missing quote, which I think goes at the end of the send statement. And I need to replace abc.com with the URL. Applying all that, here's my adjusted code. Does this look right? In my sample code below, the URL being monitored is: https://glcictkdap108.glr.local:11443/HealthCheck.dll/Check monitor HealthCheck { defaults from https recv disable "MAINTENANCE" recv "PASS" send "GET / HTTP/1.1\r\nHost: glcictkdap108.glr.local:11443/HealthCheck.dll/Check\r\nConnection: close\r\n\r\n" } Thanks again for your help! - Paul_E__144936Feb 21, 2014
Nimbostratus
Mui, I've gone ahead and flagged this as the correct answer, even though we were not able to implement it. I appreciate your prompt and accurate answer. Our admin checked and said the 'recv disable' feature is not available until version 10.2. We are currently on 10.0, and apparently no upgrade is planned for our enterprise anytime soon.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com