NAME¶
SCGI::SCGI - SCGI configuration
SYNOPSIS¶
SCGI::SCGI< >
-
- = SCGI(Int port,Int startservers,Int minspareservers,Int
maxspareservers,Int maxservers,Int maxbacklog,Int
maxchildpages)
DESCRIPTION¶
This data type describes the configuration of an SCGI server. The
scgiconfig
function can be used to set the configuration, as well as performing any
initialisation that should be specific to the entire server group (generally,
unless only select queries are needed, database connections should be
initialised in the per-process
webconfig function).
-
- - port : The TCP port to listen on
-
- - startservers : The number of initial sub-server processes
-
- - minspareservers : The minimum number of spare sub-server
processes to have
-
- - maxspareservers : The maximum number of spare sub-server
processes to have
-
- - maxservers : The maximum number of spare server processes to
have. If there are more simultaneous connections than this, then
additional connections will be held in the backlog. This number should be
set as high as possible, but not so high that physical memory runs out
trying to serve them all.
-
- - maxbacklog : The maximum backlog of unaccepted connections to
allow. Additional connections once the backlog is full will be
rejected.
-
- - maxchildpages : The maximum number of pages a single sub-server
can handle. Once a sub-server has served this many pages it will be killed
and restarted, which may keep memory usage down.
The default values, if no
scgiconfig function is present, are
SCGI(7597,2,2,4,10,100,10)
AUTHORS¶
Kaya standard library by Edwin Brady, Chris Morris and others
(kaya@kayalang.org). For further information see
http://kayalang.org/
LICENSE¶
The Kaya standard library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License (version
2.1 or any later version) as published by the Free Software Foundation.