documentation of $slow variable

William Dode wilk at flibuste.net
Tue Oct 13 00:28:32 MSD 2009


On 12-10-2009, Igor Sysoev wrote:
> On Mon, Oct 12, 2009 at 04:27:56PM +0000, William Dode wrote:
>
>> Hi,
>> 
>> Where can i find the documentation about the $slow variable ? I see it 
>> in lot of example, but cannot find the description...
>> 
>> I search for a way to don't pass through proxy if the load of the system 
>> is high. Instead, i want to give a page "please come back later"
>
> You saw probably a variable, created by the geo directive:
>
>     geo  $slow  {
>         default          1;
>         192.168.1.0/24   0;
>         ...
>
> You may call this variable what you will.
>
>

I saw 

if ($slow) {
  limit_rate  10k;
  break;
}

it's why i thought it really mean something about slow !

thx

-- 
William Dodé - http://flibuste.net
Informaticien Indépendant






More information about the nginx mailing list