cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
471
Views
0
Helpful
1
Replies

CSS Cookie load balancing

raoulcsshl
Level 1
Level 1

Hi,

I have a content rule to do weighted round robin load balancing among three web servers.

I want to be able to direct traffic to ONE of these three servers if a cookie matches a regex. If there's no match, the traffic should be balanced between the other two machines.

First: Is this possible? I'm having trouble understanding the documentation.

Second: If so, how? :)

Below are my configs. Thanks to anyone who can shove me in the right direction.

Name: www-abtest Owner: SFColo

State: Suspend Type: HTTP

Balance: Weighted Round Robin Failover: N/A

Persistence: Enabled Param-Bypass: Disabled

Session Redundancy: Disabled

IP Redundancy: Suspend

L3: 10.1.1.50

L4: TCP/80

Url:

Redirect: ""

TCP RST client if service unreachable: Disabled

Rule Services & Weights:

1: c2-cr26-www-Suspended, S-10

2: c2-cr28-www-Suspended, S-10

3: cr-cr25-www-Down, S-1

Name: c2-cr26-www Index: 61

Type: Local State: Suspended

Rule ( 192.168.1.59 TCP 80 )

Session Redundancy: Disabled

Redirect Domain:

Redirect String: (null)

Keepalive: (HTTP:GET:/status 5 3 5 )

Keepalive Encryption: Disabled

Last Clearing of Stats Counters: 11/04/2008 10:59:20

Mtu: 1500 State Transitions: 1

Total Local Connections: 29 Total Backup Connections: 0

Current Local Connections: 0 Current Backup Connections: 0

Total Connections: 29 Max Connections: 65534

Total Reused Conns: 0

Weight: 10 Load: 255

Weight Reporting: None

CSS11501(config)# show service c2-cr28-www

Name: c2-cr28-www Index: 62

Type: Local State: Suspended

Rule ( 192.168.1.61 TCP 80 )

Session Redundancy: Disabled

Redirect Domain:

Redirect String: (null)

Keepalive: (HTTP:GET:/status 5 3 5 )

Keepalive Encryption: Disabled

Last Clearing of Stats Counters: 11/04/2008 10:59:16

Mtu: 1500 State Transitions: 1

Total Local Connections: 30 Total Backup Connections: 0

Current Local Connections: 0 Current Backup Connections: 0

Total Connections: 30 Max Connections: 65534

Total Reused Conns: 0

Weight: 10 Load: 255

Weight Reporting: None

Name: cr-cr25-www Index: 60

Type: Local State: Down

Rule ( 192.168.1.58 TCP 80 )

Session Redundancy: Disabled

Redirect Domain:

Redirect String: (null)

Keepalive: (HTTP:GET:/status 5 3 5 )

Keepalive Hash: df6feb6cd17c2b28c0336dccc62b0bdf

Keepalive Error: Response code incorrect

Keepalive Encryption: Disabled

Last Clearing of Stats Counters: 11/04/2008 10:59:08

Mtu: 1500 State Transitions: 1

Total Local Connections: 35 Total Backup Connections: 0

Current Local Connections: 0 Current Backup Connections: 0

Total Connections: 35 Max Connections: 65534

Total Reused Conns: 0

Weight: 1 Load: 255

Weight Reporting: None

1 Reply 1

Gilles Dufour
Cisco Employee
Cisco Employee

The CSS can match one cookie name + cookie value to a server.

This is possible with advanced-balance cookie function.

But if the cookie value is not exactly matching the string configured, the CSS can't link the cookie to a server.

The ACE module is able to do this.

Gilles.

Review Cisco Networking for a $25 gift card