<\/span><\/h3>\nWithin the following example the string “ServerID=<\/span><\/span>” is searched for within the header ‘cookie’. The value following this string is then used to balance the traffic.<\/span><\/p>\ncsw-rule \"r1\" header \"cookie\" search \"ServerID=\" csw-policy \"p1\" match \"r1\" persist offset 0 length 4 group-or-server-id default forward 1 server real RS1 10.1.1.1 port http port http url \"HEAD \/\" port http server-id 1211 port http group-id 1 1 server real RS2 10.1.1.2 port http port http url \"HEAD \/\" port http server-id 1212 port http group-id 1 1 server virtual VIP1 192.168.1.3 port http port http csw-policy \"p1\" port http csw bind http RS1 http RS2 http<\/span><\/span><\/pre>\n<\/span>Cookie Hashing<\/strong><\/span><\/h3>\nWithin the following example the string “JSessionID=” is searched for within the header ‘cookie’. The value following this string is then hashed and used to balance the traffic. <\/span><\/p>\ncsw-rule r1 header cookie pattern \u201cJSessionID=\u201d<\/span>csw-policy p1<\/span> match r1 persist offset 0 length 16 persist-to-hash-bucket<\/span> default forward 1<\/span> server real RS1 10.1.1.1<\/span> port 80<\/span> port 80 group-id 1 1<\/span>server real RS2 10.1.1.2<\/span> port 80<\/span> port 80 group-id 1 1<\/span>server virtual VIP1 192.168.1.3<\/span> port http<\/span> port http csw-policy p1<\/span> port http csw<\/span> bind http RS1 80 RS2 80<\/span><\/pre>\nNote<\/em> <\/strong>: For all cookie persistence methods, should you require persistence between HTTP and HTTPS then the same server-id should be applied to both HTTP and HTTPS on the real server. Along with applying the same CSW policy to both HTTP and HTTPS on the virtual server.<\/p>\n","protected":false},"excerpt":{"rendered":"The Brocade ADX offers 2 main persistence methods ; sticky and cookie. Within this article we will look at both of these methods and the various configuration options of each one. Types Sticky With sticky traffic is sent to the same server based on the clients IP for duration of the sticky timeout duration. Sticky also … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"yoast_head":"\nBrocade ADX - Persistence - Fir3net<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n