table of contents
other versions
- wheezy 2.22-13+b2
SPEEDY(1p) | SPEEDY(1p) |
NAME¶
speedy - a persistent Perl interpreterSYNOPSIS¶
speedy [ <perl options> ] [ -- <speedy options> ] [ <filename> ]DESCRIPTION¶
speedy, short for SpeedyCGI, is a way to run perl scripts persistently, which can make them run much more quickly. The most common way to make a script run persistently is by changing the interpreter line at the top of the script from:- #!/usr/bin/perl
- #!/usr/bin/speedy
OPTIONS¶
The speedy command line is the same as for regular perl, with the exception that SpeedyCGI specific options can be passed in after a "--". For example the line:- #!/usr/bin/speedy -w -- -t300
OPTIONS AVAILABLE¶
See CGI::SpeedyCGI(3.pm) for a complete description of the options.- -p<string>
- BackendProg : Path to the speedy backend program. (Default: /usr/bin/speedy_backend)
- -B<number>
- BufsizGet : Use <number> bytes as the maximum size for the buffer that receives data from the perl backend. (Default: 131072)
- -b<number>
- BufsizPost : Use <number> bytes as the maximum size for the buffer that sends data to the perl backend. (Default: 131072)
- -g<string>
- Group : Allow a single perl interpreter to run multiple scripts. See CGI::SpeedyCGI(3.pm) for details. (Default: `none')
- -M<number>
- MaxBackends : If non-zero, limits the number of speedy backends running for this perl script to <number>. (Default: 0)
- -r<number>
- MaxRuns : Once the perl interpreter has run <number> times, re-exec the backend process. Zero indicates no maximum. This option is useful for processes that tend to consume resources over time. (Default: 500)
- -t<number>
- Timeout : If no new requests have been received after <number> seconds, exit the persistent perl interpreter. Zero indicates no timeout. (Default: 3600)
- -T<string>
- TmpBase : Use the given prefix for creating temporary files. This must be a filename prefix, not a directory name. (Default: `/tmp/speedy')
- -v
- Version : Print the SpeedyCGI version and exit.
ENVIRONMENT¶
Environment variables can also be used to pass in options. This can only be done before the initial execution, not from within the script itself. The name of the environment variable is always SPEEDY_ followed by the option name in upper-case. For example to set the speedy Timeout option, use the environment variable named SPEEDY_TIMEOUT.FILES¶
/tmp/speedy* A unix socket used to connect to the backend process. See speedy_backend(1) for more information.AUTHOR¶
-
Sam Horrocks
http://daemoninc.com
sam@daemoninc.com