PreFork
Causes Interchange to run in pre-forking server mode.
Synopsis
This is a Yes or No directive.
The default is No.
Scope
This directive is only available for use in the global
(interchange.cfg) configuration file,
and will affect all websites running under the Interchange installation.
It will not work in a website's local (catalog.cfg)
configuration file.
Description
Causes Interchange to run in pre-forked-server mode;
A number of Interchange server daemons
(defined using StartServers) will be pre-spawned
so that they are available to handle page requests as they arrive,
thus reducing system overhead due to forking.
This is the fastest and best way to run a busy Interchange server.
Each server will handle the number of requests defined with
MaxRequestsPerChild before committing suicide and
causing another server to pre-fork and replace it.
PreFork mode is often referred to as RPC mode.
Example
PreFork Yes
StartServers 5
MaxServers 0
MaxRequestsPerChild 100
HouseKeeping 2
PIDcheck 120
|