Forum Discussion
Greg_34053
Jul 13, 2011Nimbostratus
disabled virtual server continues to serve - apparently!
Hi all,
I created a virtual server with an irule to display what the code is doing using http respond to display results.
Displaying a page using ie or firefox then disabling the virtual server has page reloads after that still returning data.
Wazzappenin?
Regards,
Greg
- Greg_34053NimbostratusI verified that it is indeed still serving as I threw new uris at it and it showed them correctly on the page. The log too shows the irule continuing to be exercised.
- hooleylistCirrostratusHi Greg,
- hooleylistCirrostratusActually, I think the issue is that you have an existing TCP connection to the virtual server, disable the virtual server and then continue to make requests over the pre-existing connection. If you want to ensure no pre-existing connections are allowed, you can disable the virtual server and then clear the connection table entries for that VS:
- Greg_34053NimbostratusYep. I'm sure. Leave it long enough (minutes) and reload the page and you get a reset from the F5. Then I get
- Greg_34053NimbostratusExisting connection is what I suspected. The intent in the future is to use icontrol to disable a service but that won't be enough to stop it dead immediately. So, I will look to see if I can get the virtual server status in the irule to stop it at that layer. It is not the behaviour that I expected and it begs the question why there aren't at least two modes of disable - go away slowly and STFU now. I'll see what can be done.
- hooleylistCirrostratusOut of curiosity, what's the use case for killing active connections to the virtual server?
- Greg_34053NimbostratusThe use case is that I actually want the service to stop. The connections are active in as much as they are not closed at the tcp layer but the connection is idle. I tried different uri's about increasing time intervals between - 15 secs, 30 secs, 45 secs .... After over 5 minutes of doing this the server was still responding. I don't know how long the last one was as I was starting to dig through the LTM Config manual and looking through LTM screens.
- hooleylistCirrostratusBy default, TMM will keep a connection open as long as neither the client or server close it and it's actively used before the TCP idle timeout expires. 300 seconds for an idle timeout is fairly high for production HTTP virtual servers. If your servers respond reasonably quickly to requests you could probably lower this.
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