Welcome! Log In Create A New Profile

Advanced

Re: Feature I'd like to see

Almir Karic
June 04, 2010 10:36AM
On Thu, Jun 3, 2010 at 4:25 PM, xgdlm <grangier@gmail.com> wrote:
> Hello
>
> A feature I'd like to see is the ability to use the "include" directive in an upstream block
>
> something like
>
> upstream proxy3011 {
>  include "proxy.conf";
> }
>
> using a proxy.conf like
>
> server 192.168.0.1 max_fails=5 fail_timeout=10s;
> server 192.168.0.2 max_fails=5 fail_timeout=10s;
> server 192.168.0.3 max_fails=5 fail_timeout=10s;
> server 127.0.0.1 backup;
>
>
> why ?
>
> At the moment I have a bunch of upstream block using all the same configuration
> so adding or removing a server from the list is quite painfull.
>
> Why do I use a bunch of upstream block using the same configuration, for one reason:
> Using a single upstream block is quite dangerous in my case. If one application fails then one or more server are set inoperative
> for all the application using this upstream. Using one upstream for each application solves this issue
>
> What do you think ?

The same "problem" that you are describing can be solved with say
http://wiki.nginx.org/NginxHttpProxyModule#proxy_next_upstream while
keeping one upstream block.

>
> Regards,
>
> xav
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



--
python/django hacker & sys admin
http://almirkaric.com & http://twitter.com/redduck666

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

Feature I'd like to see

xgdlm June 03, 2010 07:32PM

Re: Feature I'd like to see

Almir Karic June 04, 2010 10:36AM

Re: Feature I'd like to see

xgdlm June 04, 2010 11:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 206
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