Welcome! Log In Create A New Profile

Advanced

Re: Nginx changing settings on the fly?

Jonathan Matthews
July 27, 2013 04:56AM
On 26 July 2013 22:18, YesThatGuy <nginx-forum@nginx.us> wrote:
> We're currently using CrossRoads for our load balancing needs and are
> evaluating a switch to Nginx. We are excited by the existence of a
> pacemaker/heartbeat ocf script. But one of the needs that we have is that
> our web servers have somewhat volatile load averages. Some hits cause a
> tremendous amount of processing, most others cause very little.
>
> The nginx config option "weight" allows you to balance how much load to
> preferentially give to which host, but can this option be changed in value
> without restarting nginx? I would want to default to "1" and then have each
> logic server announce to the load balancer what weight should be used, in
> short intervals.

I'd be looking at HAProxy for this. You can update weights of existing
servers on the fly via a unix socket. Of course, your runtime state
then diverges from your on-disk startup state, but that sounds like
the mechanism you're looking for.

J

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx changing settings on the fly?

YesThatGuy July 26, 2013 05:18PM

Re: Nginx changing settings on the fly?

B.R. July 26, 2013 05:56PM

Re: Nginx changing settings on the fly?

YesThatGuy July 26, 2013 06:33PM

Re: Nginx changing settings on the fly?

B.R. July 26, 2013 06:52PM

Re: Nginx changing settings on the fly?

YesThatGuy July 26, 2013 08:26PM

Re: Nginx changing settings on the fly?

Jonathan Matthews July 27, 2013 04:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 293
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready