12.07.2015 Views

BROCADE IP PRIMER

BROCADE IP PRIMER

BROCADE IP PRIMER

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 16: Session Persistence and Transparent Cache SwitchingNow, we need to define the real servers in their respective groups:SLB-ServerIron#conf tSLB-ServerIron(config)#server real web1SLB-ServerIron(config-rs-web1)#port http group-id 1 1SLB-ServerIron(config-rs-web1)#server real web2SLB-ServerIron(config-rs-web2)#port http group-id 1 1SLB-ServerIron(config-rs-web2)#server real image1SLB-ServerIron(config-rs-image1)#port http group-id 2 2SLB-ServerIron(config-rs-image1)#server real image2SLB-ServerIron(config-rs-image2)#port http group-id 2 2SLB-ServerIron(config-rs-image2)#server real app1SLB-ServerIron(config-rs-app1)#port http group-id 3 3SLB-ServerIron(config-rs-app1)#server real app2SLB-ServerIron(config-rs-app2)#port http group-id 3 3You can see that these are the same group commands that we introduced inPolicy-based SLB. Finally, we need to apply the CSW policy:SLB-ServerIron#conf tSLB-ServerIron(config)#server virtual-name www 1.2.3.4SLB-ServerIron(config-vs-www)#port httpSLB-ServerIron(config-vs-www)#port http csw-policy p1SLB-ServerIron(config-vs-www)#port http cswSLB-ServerIron(config-vs-www)#bind http web1 http web2 httpSLB-ServerIron(config-vs-www)#bind http image1 http image2httpSLB-ServerIron(config-vs-www)#bind http app1 http app2 httpWe've enabled URL switching with the command port http url-switch. Noticethat this is tied to the virtual server port. Next, we specified which URL map touse. Notice that we only specified one. All three maps that we've defined arecombined in a daisy chain:• general — check for “/www” at the beginning of the URL— if it's there, load balance to server Group 1— if not, check against URL map “image”• image — check for “gif” at the end of the URL— if it's there, load balance to server Group 2— if not, check against URL map “app”• app — check for “/cgi-bin/” anywhere in the URL— if it's there, load balance to server Group 3— if not, load balance to server Group 1364 Brocade <strong>IP</strong> Primer

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!