Project

General

Profile

Feature #1451

closed

Queuing requests to FastCGI backed rather then sending them.

Added by Anonymous about 13 years ago. Updated about 4 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

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

Updated by gstrauss over 4 years ago

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

Updated by gstrauss over 4 years ago

  • Target version deleted (1.5.0)
#3

Updated by gstrauss over 4 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)
#4

Updated by gstrauss about 4 years ago

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

Updated by gstrauss about 4 years ago

  • Status changed from New to Duplicate

Also available in: Atom