Ограничение на число одн =?UTF-8?B?0L7QstGA0LXQvNC10L3QvdGL0YUg0YHQvtC10LTQuNC90LXQvdC40Lk=?=, но с постановкой лишних в очередь

Gerasimenko Konstantin kred at gmx.net
Mon Nov 23 14:34:34 MSK 2009


Dmitry Koterov schrieb:
> Как будто бы maxconn в haproxy тоже ограничивает число подключений на 
> весь кластер, а не per-HTTP_HOST:
>
> maxconn <number>
>   Sets the maximum per-process number of concurrent connections to <number>. It
>
>   is equivalent to the command-line argument "-n". Proxies will stop accepting
>   connections when this limit is reached. The "ulimit-n" parameter is
>   automatically adjusted according to this value. See also "ulimit-n".
>
>   
наверное имелось введу параметр maxqueue из описания  backend'a

maxconn <maxconn>
  The "maxconn" parameter specifies the maximal number of concurrent
  connections that will be sent to this server. If the number of incoming
  concurrent requests goes higher than this value, they will be queued, 
waiting
  for a connection to be released. This parameter is very important as 
it can
  save fragile servers from going down under extreme loads. If a "minconn"
  parameter is specified, the limit becomes dynamic. The default value 
is "0"
  which means unlimited. See also the "minconn" and "maxqueue" 
parameters, and
  the backend's "fullconn" keyword.

maxqueue <maxqueue>
  The "maxqueue" parameter specifies the maximal number of connections which
  will wait in the queue for this server. If this limit is reached, next
  requests will be redispatched to other servers instead of indefinitely
  waiting to be served. This will break persistence but may allow people to
  quickly re-log in when the server they try to connect to is dying. The
  default value is "0" which means the queue is unlimited. See also the
  "maxconn" and "minconn" parameters.



More information about the nginx-ru mailing list