cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
398
Views
10
Helpful
3
Replies

Least Connection problem

josephschung
Level 1
Level 1

Dear Sir,

We are using a pair of 11501s to load balance HTTPS traffic to a pair of web servers.

We configure the least connection as the balancing method. But, somehow, web server 1 receive double connections than web server 2.

We suppose the connection to both web servers should be the same.

Any idea?

Thanks.

1 Accepted Solution

Accepted Solutions

Because of stickyness !!!

If one server went down or if you started with one server first and then added the other one, the sticky function will force the clients to stick to the same server (the first one) even if this server is overloaded.

This is the purpose of stickyness.

clear the sticky table now that all servers are up and you should get an equal load.

W/ stickyness we can't guarantee that the load will be equal on all the servers.

For example, if you have just 2 machine accessing your VIP.

One machine is sent to Server1 and the other one to server2.

If the first machine opens 10 connections and the 2nd one only 1, you get 10 connections to server 1 and 1 connection to server2.

Totally unequal loadbalancing.

Without stickyness, you would see 5/6 or 6/5.

Gilles.

View solution in original post

3 Replies 3

Are you using any sticky method? If yes then You will not see an equal of connections to all servers when you use any sticky method.

The only connections that are being loadbalanced are connection that do not have an entry in the sticky database, so only new connections are being load balanced.

Syed Iftekhar Ahmed

Yes, we are using sticky as configured below.

content SSL

vip address 10.106.13.224

redundant-index 36

advanced-balance ssl

application ssl

add service WEBP01

add service WEBP02

protocol tcp

port 443

url "/*"

balance leastconn

active

Both WEB servers are configured identically. Why does WEBP01 always shows 2 or 3 times of opening sessions than WEBP02?

Any idea?

Because of stickyness !!!

If one server went down or if you started with one server first and then added the other one, the sticky function will force the clients to stick to the same server (the first one) even if this server is overloaded.

This is the purpose of stickyness.

clear the sticky table now that all servers are up and you should get an equal load.

W/ stickyness we can't guarantee that the load will be equal on all the servers.

For example, if you have just 2 machine accessing your VIP.

One machine is sent to Server1 and the other one to server2.

If the first machine opens 10 connections and the 2nd one only 1, you get 10 connections to server 1 and 1 connection to server2.

Totally unequal loadbalancing.

Without stickyness, you would see 5/6 or 6/5.

Gilles.

Getting Started

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: