SCGI::SCGI
Constructors
- SCGI(Int port,Int startservers,Int minspareservers,Int maxspareservers,Int maxservers,Int maxbacklog,Int maxchildpages)
Usage
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 onstartservers: The number of initial sub-server processesminspareservers: The minimum number of spare sub-server processes to havemaxspareservers: The maximum number of spare sub-server processes to havemaxservers: 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).