10-25-2007 09:55 AM
I have set up a real basic configuration with a verver on port 80 pointing to a serverfarm with two servers. I have no sticky enabled and no persistent rebalance on the vserver. If I go to the URL that points to the VIP the connection is made with the 1st server. If I hit refresh or close and reopen the browser the connection stays active for about one minute. I need every refresh to alternate between the two servers. Why does this connection stay active so long with no sticky? How can I get around this?
Thank you,
10-25-2007 10:16 PM
"no persistent rebalance" is your problem. By nature all browsers use http/1.1. This means when a browser opens a connection to get the html page, they will keep the connection open for all the following requests and this even for a few minutes.
10-26-2007 04:33 AM
When I have persistent rebalance enabled I see the same behavior. I have a server that is going to send data to the VIP about every five seconds and I need to balance those data bursts. Any ideas?
10-26-2007 07:03 AM
the CSM does not rebalance a connection if there is no need to [ie: no cookie info pointing to a different server].
Nothing you can do about it.
Only solution would be to force your server to close the connection immediately after transmitting each data.
Gilles.
10-26-2007 07:02 AM
the connection stays active until we get a RESET or FIN or if it times out - the default idle timeout is 60 minutes.
When you click refresh, the browser does not necessarily close the connection to open a new one.
Gilles.
10-26-2007 08:26 AM
60 minutes or seconds because it looks like one minute? Is there a way to change that default behavior? If so can it be done for a vserver or is it a global command?
Thanks...
10-26-2007 09:12 AM
60 minutes or seconds because it looks like one minute? Is there a way to change that default behavior? If so can it be done for a vserver or is it a global command?
Thanks...
10-30-2007 04:22 AM
you can control the idle timeout with the vserver command 'idle'.
The default is 3600 seconds.
Reducing the idle timeout to force the CSM to drop the connection in order to rebalance the next request might not be the best solution.
You can endup with more trouble with a low idle timeout.
Definitely you will kill your performance because the client will have to reopen a connection [new tcp 3-way handshake].
Are you really sure it is important to rebalance every request ???
Gilles.
10-30-2007 06:31 AM
In this case yes. All requests will be coming from a single device at about 5 second intervals. If we don't force the CSM to balance that traffic we will never utilize the second server.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: