Sample configuration – Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual
Page 295
Brocade Virtual ADX Server Load Balancing Guide
279
53-1003247-01
Server and server port persistence with CSW nested rules
5
3. The Client clicks on the link: www.test.com/test/nextpage.html?PSrvrID=1234567
If cookies are enabled, the Client sends: “Cookie: PSrvrID=1234567”
If cookies are disabled, NO cookie is sent back.
4. The load balancer analyzes the incoming request as described:
If “cookie” is found in the header (Cookie:), the cookie value is looked up in the session table
for the session bound to the same server.
If no cookie is found, the URL can be analyzed. the cookie name is also found after the “?”
value is found. It is also looked up in the session table for the session bound to the same
server.
Sample configuration
You can use the following configuration for the previous example.
Virtual ADX(config)#csw-rule "response-cookie" response-header "Set-Cookie"
pattern "PSrvrID="
Virtual ADX(config)#csw-rule "uri" url pattern "PSrvrID="
Virtual ADX(config)#csw-rule "forward-cookie" header "Cookie" pattern "PSrvrID="
Virtual ADX(config)#csw-policy "passive1"
Virtual ADX(config-csw-policy-passive1)#match "response-cookie" passive-persist
offset 0 length 7
Virtual ADX(config-csw-policy-passive1)#match "forward-cookie" persist offset 0
length 7 passive-persist
Virtual ADX(config-csw-policy-passive1)#match "uri" persist offset 0 length 7
passive-persist
You must then bind the csw-policy to a virtual server port.
Server and server port persistence with CSW nested rules
This section contains the following sub-sections:
•
“Configuring server and server port persistence with CSW nested rules”
•
“Configuring persist on the nested rule”
•
“Configuring persist on the real port”
NOTE
CSW nested rules are not supported in a csw response rewrite policy.
Configuring server and server port persistence with
CSW nested rules
This section describes the support of CSW rewrite/persist on nested rule and persist on real server
ports.
Currently, CSW supports rewrite or persist action on simple rules. The rewrite or persist action on
nested rules is not supported, because the place of rewrite or persist action can not be decided on
nested rule. This new feature adds a new CLI to specify a base rule within nested one that rewrite
or persist action can be based on.