CSS how to stop client maintaining session with server.

Unanswered Question
Jul 12th, 2007

Hi

I am using CSS to load balance a simple web page using round robin. I want each client request to be treated as a fresh connection i.e. when there is only one client each request is sent to the subsequent server in the group.

At present the client maintains the session with the server until inactivity of around 60secs.

Config....

service VB4Web1

ip address 10.11.100.8

keepalive type http

keepalive method get

keepalive uri "/test.htm"

active

service VB4Web2

ip address 10.11.100.16

keepalive type http

keepalive method get

keepalive uri "/test.htm"

active

!*************************** OWNER ***************************

owner OwnerVB4

content RuleVB4Web

vip address 10.1.1.250

add service VB4Web1

add service VB4Web2

no persistent

primarySorryServer VB4Sorry

protocol tcp

port 80

url "/*"

active

!*************************** GROUP ***************************

group GroupVB4

vip address 10.1.1.250

add service VB4Web1

add service VB4Web2

active

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
catliao Tue, 07/17/2007 - 23:46

Hi!

With HTTP 1.1 both the browser & web server will maintain an open (or persistent) connection with one another until the set keepalive time is reached. By default that setting is 60 seconds in IE, 120 seconds in IIS 6.0, and 15 seconds in Apache. So if your web servers are IIS and most of your clients are IE, what you are seeing is the expected behavior.

If you really want the clients to terminate connections to the web server as soon as each HTTP request is completed, you have a couple of options: 1) use HTTP 1.0 as it does not support persistence; 2) lower the keepalive timeout on your web server.

More on HTTP 1.1 & persistence can be found on the rfc: http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html

Hope that helps,

Catherine

Actions

This Discussion