cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
602
Views
0
Helpful
4
Replies

CSS Load Balancing with Cookies

devsharma
Level 1
Level 1

We are trying to load balance 2 backend servers hosted on Websphere with advance balance cookies method.

Restrictions

ServerA is unable to accept cookies generated from ServerB.

ServerA and ServerB are generating random cookies

Unable to modify cookie string with a constant.

How can we load balance based on cookies considering the above restrictions?

We have attempted to do hash based load balancing with cookies but the problem we run into is the servers do not accept cookies generated from another server.

The configuration we tried is written below:

service ServerA

ip address 192.168.10.2

keepalive type tcp

keepalive port 80

active

service ServerB

ip address 192.168.20.2

keepalive type tcp

keepalive port 80

active

content ABC

url "/*"

add service ServerA

string prefix "JSESSIONID="

advanced-balance cookies

port 80

add service ServerB

string skip-length 5

string process-length 16

string operation hash-xor

protocol tcp

vip address 172.16.32.1

active

Can we change the string prefix to JSESSION instead of JSESSIONID= ?

The only place the app guys can add a constant string to match on is before the = sign.

Is it possible for CSS to match on a constant string before = sign e.g below:

service ServerA

ip address 192.168.10.2

keepalive type tcp

keepalive port 80

string id567=

active

service ServerB

ip address 192.168.20.2

keepalive type tcp

keepalive port 80

string id123=

active

content ABC

url "/*"

add service ServerA

string prefix "JSESSION"

advanced-balance cookies

port 80

add service ServerB

string skip-length 0

string process-length 6

protocol tcp

vip address 172.16.32.1

active

1 Accepted Solution

Accepted Solutions

Gilles Dufour
Cisco Employee
Cisco Employee

go for arrowpoint cookies.

The CSS will generate its own cookie.

Much easier.

No need to modify the servers.

the command you need is 'advanced-balance arropwoint'.

Gilles

View solution in original post

4 Replies 4

Gilles Dufour
Cisco Employee
Cisco Employee

go for arrowpoint cookies.

The CSS will generate its own cookie.

Much easier.

No need to modify the servers.

the command you need is 'advanced-balance arropwoint'.

Gilles

Gilles,

We have tried using the arrowpoint cookies method as well but it did not work for us.Infact the configuration was provided to us by a Cisco TAC engineer and while we tested it, he was on Webex session.

Thnks,

Dev

It should work.

There is no reason for it not to work...

This is the best method you can have on the CSS for stickyness.

Get a sniffer trace on the client and server with arrowpoint cookie configured on the CSS and capture a failure so we can see what is going on.

also send me the config so I can verify everything is ok.

If you have a service request open with the TAC, you can also give the SR # so I can review what has been done.

Gilles.

Gilles,

We tried the arrowpoint cookie once more and after taking some sniffer traces, we found out that the client app was not passing the arrowpoint cookie back to CSS, so the CSS was following the regular round robin load balancing.App guy had to modify the code to recognize and pass the aarowpoint cookie back to CSS.Well for now everything works fine. Thanks for the help.

Dev

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: