beautypg.com

Configuring persist on the nested rule, Configuring persist on the real port – Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual

Page 296

background image

280

Brocade Virtual ADX Server Load Balancing Guide

53-1003247-01

Server and server port persistence with CSW nested rules

5

Also, the current CSW supports the persistence on the group or server ID. Support of persistence
on the real server port gives you more granular control.

This feature is to be used with persistence on the group or server ID and is useful when the
customer has multiple ports configured on the same group or server, and also wants to direct the
request to a particular port instead of load balancing among all the ports.

Persist or rewrite actions can be performed when a nested rule matches, and the location of
persistence or rewrite string is determined by a master rule within the nested rule.

Configuring persist on the nested rule

To create a csw nested rule, enter a command such as the following.

Virtual ADX(config)#csw-rule r1 url pattern "pweb"

Virtual ADX(config)#csw-rule r2 url pattern "jsession"

Virtual ADX(config)#csw-rule n1 nested-rule "r1&&r2" master-rule r2

Syntax: [no] csw-rule rule-name nested-rule rule-logic-string master-rule rule-name

NOTE

If a master rule is not specified, the default master in the first rule is the nested rule.

NOTE

If a master rule is not present when the nested rule matches, the persist or rewrite action cannot be
performed. It will be treated as nested rule not matched.

Configuring persist on the real port

To specify the real port for a persist action, enter a command such as the following.

Virtual ADX(config)#csw-policy p1

Virtual ADX(config-csw-p1)#match n1 persist offset 22 length 2 group-or-server-id

real-port 10500

Syntax: [no] match rule-name persist offset offset length offset [[persist-method [real-port port

[port-failover | fail-close]]] [secondary]]

NOTE

The real port and the failover modes can only be specified when the persist-method variable is
group-or-server-id.

The three modes when the specified real port is not available are:

Default: Layer 4 load balancing is performed.

Port-failover: The Brocade Virtual ADX fails over to the same port number configured on the
virtual port. When there is no real port to be failed over, the client connection is closed.

Fail-close: The Brocade Virtual ADX immediately closes the client connection.