cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
924
Views
0
Helpful
3
Replies

Application ssl with balance leastconn

conectividade
Level 1
Level 1

Messrs,

I'd like your help. I did the a cfg in CSS11501 where that have to load balance two server with SSL connections and was chosen the balance leastconn, but always one server has a great number of connections than another and the source IP address always be connected with the same server. So what could happen?

What could I do to improve that load balance?

Attached I send you the configuration, sh service summary and show flows.

1 Accepted Solution

Accepted Solutions

the meaning of stickyness, is "if you came here already, will send you to the same server".

So, as soon as there is a sticky match, we do not care if you are doing leastconn or roundrobin or whatever, it is a match, so the loadbalancer sends the traffic to the matching server.

This is why you never get equal loadbalancing.

Because if you have only 2 users, when will be sent to server A and the other one to server B. If the first user open 3 connections and the 2nd user only one, you end up with 3 connections on server A and 1 on server B.

Moreover, sticky with leastconn is not a very good idea if you do not have a lot of traffic.

Because if user 1 comes in, it will be sent to server A, then it disconnects and user 1 comes in. Both servers are idle - no connection. The loadbalancer could select server A again. You then have 2 sticky entries pointing to A.

You should use roundrobin with stickyness or leastconn and no stickyness.

Gilles.

View solution in original post

3 Replies 3

Gilles Dufour
Cisco Employee
Cisco Employee

with stickyness - like "advanced-balance ssl" you almost never get equal loadbalancing.

If a few very active users end up on the same server, they will open more connections and they will all be sent to the same server therefore creating unequal load.

Gilles.

conectividade
Level 1
Level 1

Gilles,

but about the balance leastconn.

Even, that a cfg has balance leastconn or ACA, the stickyness will be the first option to a connection process?

What is the sequence to a connection process?

- 1-VIP, 2-PORT, 3-stick(yes or no) after

that the type of balance?

thanks a lot,

Renato

the meaning of stickyness, is "if you came here already, will send you to the same server".

So, as soon as there is a sticky match, we do not care if you are doing leastconn or roundrobin or whatever, it is a match, so the loadbalancer sends the traffic to the matching server.

This is why you never get equal loadbalancing.

Because if you have only 2 users, when will be sent to server A and the other one to server B. If the first user open 3 connections and the 2nd user only one, you end up with 3 connections on server A and 1 on server B.

Moreover, sticky with leastconn is not a very good idea if you do not have a lot of traffic.

Because if user 1 comes in, it will be sent to server A, then it disconnects and user 1 comes in. Both servers are idle - no connection. The loadbalancer could select server A again. You then have 2 sticky entries pointing to A.

You should use roundrobin with stickyness or leastconn and no stickyness.

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: