03-10-2013 12:24 AM
Dear Experts,
In our organiation , we have ACE module that is configured with load balancing the server farm ( 2 webserver , WEB01 and WEB02 ) in round-robin predictor method.
Currenly the loadbalancing between WEB01 and WEB02 are working perfect with round-robin mode.
Now their is a requirement to use this webserver in primary / secondary mode. ie WEB01 should be active all the time and process the web request. WEB02 should be in standby and active only when WEB01 is down or not reachable.
Then i re-configured the rserver with weigth value of 100 on WEB01 and and weigth value of 1 on WEB02.
Now i can see that the all the web request is comming to WEB01.
Could you please advice whether above configured one is the right method to deploy/configure the ACE as per the new requirement ?
Becuase i do not want any request to go to WEB02 untill the WEB01 is down.
Kindly advice.
Regards,
Solved! Go to Solution.
03-10-2013 10:59 AM
Hey,
You may want to check the following post:
https://supportforums.cisco.com/thread/2048804
Here you have a sample:
rserver WEB01
ip address 10.20.20.2
inservice
rserver WEB02
ip address 10.20.20.3
inservice
serverfarm host WEB01-PRIMARY
rserver WEB01
inservice
serverfarm host WEB02-SECONDARY
rserver WEB02
inservice
policy-map type loadbalance http first-match WEB-SERVICES
class class-default
serverfarm WEB01-PRIMARY backup WEB02-SECONDARY
Jorge
03-10-2013 10:59 AM
Hey,
You may want to check the following post:
https://supportforums.cisco.com/thread/2048804
Here you have a sample:
rserver WEB01
ip address 10.20.20.2
inservice
rserver WEB02
ip address 10.20.20.3
inservice
serverfarm host WEB01-PRIMARY
rserver WEB01
inservice
serverfarm host WEB02-SECONDARY
rserver WEB02
inservice
policy-map type loadbalance http first-match WEB-SERVICES
class class-default
serverfarm WEB01-PRIMARY backup WEB02-SECONDARY
Jorge
03-13-2013 07:01 AM
Thanks Jorge and Ajay for your help on my requirment.
I have done the configuration based on the Jorge's advice and it is working fine now.Many thanks !!!
One doubt i have now is , if the primary server goes down , the ACE will direct the traffic to secondary/standby server and process the request.
But when the primary server comes UP , do they switchover to primary ? Or seconday server will handle the request till it go down ?
If primary server process the request when it comes back , what will happen to the inital connection request that was prevoulsy handled by the standby server ?
Could you kindly clarify on this ?
Kind Regards,
03-12-2013 06:42 AM
Hi,
I believe this would suite you.
ace-1/test(config)# serverfarm host testserverfarm
ace-1/test(config-sfarm-host)# rserver WEB01
ace-1/test(config-sfarm-host-rs)# backup-rserver
WEB01 WEB02
ace-1/test(config-sfarm-host-rs)# backup-rserver WEB02
ace-1/test(config-sfarm-host-rs)# end
ace-1/test# sh run serverfarm
Generating configuration....
serverfarm host testserverfarm
probe tcp
rserver WEB01
backup-rserver WEB02
inservice
rserver WEB02
inservice standby
Hope that helps,
regards,
Ajay Kumar
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide