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: Advanced Load balancing
Author
Htoni



Joined: 16 Mar 2016
Posts: 2

PostPosted: Wed 16 Mar '16 12:58    Post subject: Advanced Load balancing Reply with quote

Hi,
I've configured a load balancing using mod_balancer module.
I've two nodes with sticky session.
What I want to achieve is: during normal production situation when requests arrived and are balanced, exclude node1 (but maintaining request with associated session for this route), wait until all request to node1 are finished and then shutdown node1.
What is the best way to reach this result using apache?
Thanks.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 18 Mar '16 16:00    Post subject: Reply with quote

You can enable the manager for that.

See https://httpd.apache.org/docs/2.4/en/mod/mod_proxy_balancer.html

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



Joined: 16 Mar 2016
Posts: 2

PostPosted: Mon 21 Mar '16 12:41    Post subject: Reply with quote

Ok thanks!
A question: if I disable a balancer member node from interface, what's happen to ongoing requests that have the sticky session associated with the powered off node? are balanced through the node also if it is disabled?
Thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 21 Mar '16 17:50    Post subject: Reply with quote

In short: the client looses the seesion and has to get a new one on the other server.
Back to top


Reply to topic   Topic: Advanced Load balancing View previous topic :: View next topic
Post new topic   Forum Index -> Apache