Problems combining 'backup' command in upstream block with 'fair'-command

Maxim Dounin mdounin at mdounin.ru
Tue Jun 11 12:55:19 UTC 2013


Hello!

On Tue, Jun 11, 2013 at 02:19:46PM +0200, Jakob van Bethlehem wrote:

[...]

> I get the same results if more non-backup servers are configured. And if I put 'fair' as the first command in the initial scenario:
> upstream 0893697e3d3e9e1a78d79c5d3b13c258 {
> 	fair;
> 	server 172.17.88.10;
> 	server 172.17.88.20 backup;
> }
> 
> the nginx configuration tester gives an error:
> nginx: [emerg] invalid parameter "backup"
> 
> To me it seems that the fair-module does not cooperate properly with the 'backup' parameter. Did anyone else notice this problem, and if so, is there a workaround/solution? Are there other configuration issues I may have to check?

The error message suggests that fair balancer isn't able to work 
with backup servers.

The error is only reported if a balancer is activated before 
"server" directives as the check in question only done when 
parsing "server" directives.

-- 
Maxim Dounin
http://nginx.org/en/donation.html



More information about the nginx mailing list