Forum Discussion
Muhammad_57196
Nimbostratus
Aug 04, 2009Persistent timeout and drainstop
Hi,
We had a requirement to have persistent enabled for 1 hour timeout. The persistent is based on source address. The server team has the capability of drain stop the node. Since the persistent is set for an hour, the F5 LTM keeps on sending the traffic for the disable node until the persistent timeout.
Is there any way where when the server team disable the node, the F5 LTM will not send the traffic anymore to that node even if the persistent is configured.
Thanks for the reply.
Regards,
Dr. Muhammad Malik
8 Replies
- hoolio
Cirrostratus
Hi Muhammad,
You can set the node address to forced offline:
Enabled (All traffic allowed)
Disabled (Only persistent or active connections allowed)
Forced Offline (Only active connections allowed)
Aaron - JRahm
Admin
Joe wrote a powershell script that affords this control:
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=369 Click here
...your application could be modified to issue the forced offline commands directly. The example is in powershell, but there are also examples in the iControl forums and the codeshare in C, java, perl, and python. Maybe ruby and php too. - Muhammad_57196
Nimbostratus
Hi,
Is there any "b" command to offline the node.
Regards,
Muhammad - hoolio
Cirrostratus
I think this is the logic but it would be good to test it.
b node 1.1.1.1 up/down = equates to Forced Offline (Only active connections allowed)
b node 1.1.1.1 sessions enable/disable = Disabled (Only persistent or active connections allowed)
Aaron - JRahm
Admin
For specific pool members that might share node with others, you can specify this way:
b pool myPool { members 1.1.1.1:http down 1.1.1.2:http }
Note that with the bigpipe commands you'll need to specify each pool member even if you are not downing them. Or, in v.10 you can do this in tmsh, which will only impact the pool member you specify:
tmsh modify ltm pool myPool members modify { 1.1.1.1:http { state down } } - Desai_124243
Nimbostratus
We don't have Tmsh access in our environment and we have persist timeout 200 sec. But after taking pool members, connections are running till more than 2 hours.
Is there any way drop connection when pool member goes offline? I tried session disable and monitor force down, but active connection isn't moving different pool member.
any help would be appreciate on it.
Thanks
- melcaniac
Cirrus
I would be sure that the pool setting Action On Service Down is set to Reselect so that the connections would move to a new server once the member is forced down. - Desai_124243
Nimbostratus
Thanks Melcaniac for reply. Can I do from powershell icontrol command ? if yes, do you have command for it? Thanks
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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