Forum Discussion
Peter_Maag
Nimbostratus
Feb 21, 2006set_availability
Hey All,
Been trying to use the set_availability method in Perl for forcing down a node. We can use set_availability by passing it either a 1 (sessions disabled) or 0 (checking state) with the state parameter. Passing the function anything higher than a 1 leads to the following error:
SOAP-ENV:Server SOAPException : 'ITCMCommon::InvalidArgument Exception caught on ITCMLocalLB::Node::set_availability()!'
Ideally we would like to pass the function a 4 for the state parameter. This *I believe* should mark the node as forced down.
Any help would be greatly appreciated.
Thanks!
Peter
4 Replies
- The set_availability method will take either AVAILABILITY_UP (2) or AVAILABILITY_DOWN (1). It should return an InvalidArgument exception for any other status. Passing in a value of 1 will take the node down. If you are seeing different behavior, let us know.
If you want to disable all traffic (including current connections), then you can call the ITCMLocalLB::Node::set_state() method with STATE_DISABLED, which should (if I can remember correctly) cause a forced down availability status.
-Joe - Peter_Maag
Nimbostratus
The set_availability method will take either AVAILABILITY_UP (2) or AVAILABILITY_DOWN (1). It should return an InvalidArgument exception for any other status. Passing in a value of 1 will take the node down. If you are seeing different behavior, let us know.
No, it appears that is working correctly. The node state goes to disabled when we used that function.
If you want to disable all traffic (including current connections), then you can call the ITCMLocalLB::Node::set_state() method with STATE_DISABLED, which should (if I can remember correctly) cause a forced down availability status.
This will disable the node, however existing connections will persist to that node. Both functions seem to be doing the same thing.
We need either function to force down a node with all current connections being forced over.
Thanks.
Peter - Daniel_Ramey_10
Nimbostratus
So to be clear for us newbies, if I want to make a node stop accepting NEW traffic, but keep the old sessions alive so they can die off gracefully, I would use set_availability method?
Thanks, - Daniel_Ramey_10
Nimbostratus
Got my answer. Thanks!
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
