logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Controlling Balancer failover
Author
mblahay



Joined: 26 Sep 2016
Posts: 3
Location: United States, Cincinnati

PostPosted: Mon 26 Sep '16 22:01    Post subject: Controlling Balancer failover Reply with quote

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

PostPosted: Tue 11 Oct '16 14:52    Post subject: Reply with quote

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

PostPosted: Tue 11 Oct '16 21:11    Post subject: Reply with quote

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

PostPosted: Tue 11 Oct '16 21:13    Post subject: Reply with quote

The parameter that you looking for is "retry" The defaul value is 60 ( seconds)

see https://httpd.apache.org/docs/current/mod/mod_proxy.html

if you still have a question please ask again.
Back to top
mblahay



Joined: 26 Sep 2016
Posts: 3
Location: United States, Cincinnati

PostPosted: Tue 01 Nov '16 21:16    Post subject: Reply with quote

Is there any ability to retry the failed requests on the other server?
Back to top


Reply to topic   Topic: Controlling Balancer failover View previous topic :: View next topic
Post new topic   Forum Index -> Apache