Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Controlling Balancer failover |
|
Author |
|
mblahay
Joined: 26 Sep 2016 Posts: 3 Location: United States, Cincinnati
|
Posted: Mon 26 Sep '16 22:01 Post subject: Controlling Balancer failover |
|
|
I am working with a balancer in mod_proxy where our traffic is distributed among two Weblogic servers. Occasionally, one of the servers goes crazy and starts returning 401’s. I know that by configuring failonerror=401 that I can have the bad server marked down for some amount of time. Beyond that we don’t know much. For instance, can I affect the amount of time that said server is down? When Apache does retry on the downed server and receives another 401 because the situation has not been corrected, is it possible to retry the transaction on the known good server?
Here is an example of what I have setup currently.
<Proxy balancer://server_cluster_ssl>
BalancerMember https://server1:8002 route=srvr1
BalancerMember https://server2:8002 route=srvr2
</Proxy>
<Location /abc>
ProxyPass balancer://server_cluster_ssl/abc stickysession=BALANCEID failonstatus=401
ProxyPassReverse balancer://server_cluster_ssl/abc
</Location> |
|
Back to top |
|
mblahay
Joined: 26 Sep 2016 Posts: 3 Location: United States, Cincinnati
|
Posted: Tue 11 Oct '16 14:52 Post subject: |
|
|
Just letting everyone know that I am still looking for help with this. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 11 Oct '16 21:11 Post subject: |
|
|
You can enable the manager page to manage the instances
Code: |
<Location "/balancer-manager">
SetHandler balancer-manager
Require host example.com
</Location>
|
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
|
Back to top |
|
mblahay
Joined: 26 Sep 2016 Posts: 3 Location: United States, Cincinnati
|
Posted: Tue 01 Nov '16 21:16 Post subject: |
|
|
Is there any ability to retry the failed requests on the other server? |
|
Back to top |
|
|
|
|
|
|