Project

General

Profile

Actions

Feature #1451

closed

Queuing requests to FastCGI backed rather then sending them.

Added by Anonymous about 17 years ago. Updated almost 8 years ago.

Status:
Duplicate
Priority:
Low
Category:
mod_fastcgi
Target version:
-
ASK QUESTIONS IN Forums:

Description

First of all see discussions there :
500 Errors on high concurrent load of multithreaded fcgi app

Lighttpd is capable of queuing request that sends to simple single threaded
FastCGI server, However this does not happens in case of multithreaded application.

If FastCGI application is capable of managing 10 requests on the single socket.
(Accepting maximum 10 requests for 10 threads), all other concurrent requests
will return Error 500 instead of being queued on Lighttpd side.

Thus option that limits maximal concurrent requests per single FastCGI server
required. Otherwise fastcgi application will have to manage the queue of incoming
request by itself, that is significantly less effective.

-- artyomtnk


Related issues 1 (0 open1 closed)

Is duplicate of Feature #967: request-queue-limit option for mod_fastcgiFixedActions
Actions #1

Updated by gstrauss over 8 years ago

  • Description updated (diff)
  • Category changed from core to mod_fastcgi
  • Assignee deleted (jan)
Actions #2

Updated by gstrauss over 8 years ago

  • Target version deleted (1.5.0)
Actions #3

Updated by gstrauss about 8 years ago

  • Priority changed from Normal to Low

With lighttpd 1.4.40 and later, lighttpd aborts connection to fastcgi backend if the client disconnects. (https://github.com/lighttpd/lighttpd1.4/pull/53). Also, lighttpd allows you to tune the socket listen backlog for backends separately from frontend connections (https://github.com/lighttpd/lighttpd1.4/pull/50) See also further discussion in #2116, #1825, #967, #641, #399

As suggested for mod_cgi in #2431

(If looking to arbitrarily limit the number of outstanding requests to backends, perhaps a more generic solution would be to write a module to allow URI paths to apply limits to number of outstanding requests waiting for backends for that URI path, and could return 503 Service Unavailable for any new requests to such a URI path comes in while the limit has been reached)
Actions #4

Updated by gstrauss almost 8 years ago

  • Is duplicate of Feature #967: request-queue-limit option for mod_fastcgi added
Actions #5

Updated by gstrauss almost 8 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom