[emerg]: invalid parameter "backup" error on Ubuntu

Maxim Dounin mdounin at mdounin.ru
Tue Sep 8 18:06:48 MSD 2009


Hello!

On Tue, Sep 08, 2009 at 09:18:25AM -0400, stefancaunter wrote:

> Greetings:
> 
> I am running 0.8.14 on Ubuntu (compiled from source with openssl). 
> 
> Desired result is static cache as backup for dynamic asp webapp. Cache builds nicely, serves fine on 127.0.0.2:80 or unix socket, however when I attempt to manage weights and also specify that 127.0.0.2:80 is backup I get:
> 
> : invalid parameter "backup"
> 
> This works fine -
> 
>  upstream backend {
>                 ip_hash;
>                 server web2-1.example.com;
>                 server web2-2.example.com down;
>                 server web2-3.example.com;
>                 server web2-4.example.com;
>                 server 127.0.0.2:80;
>         }
> 
> but I cannot add "weight", "max_fails" or "backup". Am I missing a module? Note that I am unable to compile in nginx_upstream_hash-0.3  so far.

Ip_hash balancer does not support backup servers and weight,
though max_fails should work.

For weighting you may just specify the same server multiple times, 
instead of backup you may use error_page-based fallback.

Maxim Dounin





More information about the nginx mailing list