cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2534
Views
0
Helpful
3
Replies

Load Balancer for Primary and Secondary Server

s.aliyarukunju
Level 1
Level 1

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,

1 Accepted Solution

Accepted Solutions

Jorge Bejarano
Level 4
Level 4

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

View solution in original post

3 Replies 3

Jorge Bejarano
Level 4
Level 4

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

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,

ajayku2
Cisco Employee
Cisco Employee

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

Review Cisco Networking for a $25 gift card