Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Website loadbalancing failure - Error page?

We currently have a Cisco ACE 4710 that has a server farm load balancing a webpage.  Is there anyway for the ACE to present a custom error page if all servers in the farm is unavailable, or would I have to create a 3rd server entry and make it a redirect to another website?

  • Application Networking
1 REPLY
Bronze

Re: Website loadbalancing failure - Error page?

Hi,

One option would be configuring a specific serverfarm to which you can redirect requests, if the primary serverfarms fails or the associated probe receives an undesired responsecode (eg. 500). Could look something like this:

probe type http CHK_WEB

  request method get url /[string]

  expect status 200 200

rserver WEB_SRV_A

  ip addr x.x.x.x

  inser

rserver WEB_SRV_B

  ip addr y.y.y.y

  inser

rserver OUT_OF_SRVC

  ip addr z.z.z.z

  inser

serverfarm host SFARM_WEB

  probe CHK_WEB

  rserver WEB_SRV_A [dst.port]

    inser

  rserver WEB_SRV_B [dst.port]

    inser

serverfarm host OUT_OF_SRVC

  rserver OUT_OF_SRVC [dst.port]

    inser

policy-map type loadbalance first-match PMAP_LB_WEB

  class [class-name]

    serverfarm SFARM_WEB backup OUT_OF_SRVC

Don't know if this is what you're looking for, but maybe it'll do.

hth

/Ulrich

285
Views
0
Helpful
1
Replies