https://github.com/wwoods/cherrypy_forkingtool
A simple utility for CherryPy apps that provides forking and a few other bells and whistles.
https://github.com/wwoods/cherrypy_forkingtool
Last synced: 7 months ago
JSON representation
A simple utility for CherryPy apps that provides forking and a few other bells and whistles.
- Host: GitHub
- URL: https://github.com/wwoods/cherrypy_forkingtool
- Owner: wwoods
- Created: 2012-11-27T03:31:06.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-24T20:28:17.000Z (over 12 years ago)
- Last Synced: 2025-01-21T12:26:47.409Z (9 months ago)
- Language: Python
- Size: 121 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
How to use
==========
The tool just needs to be imported and called right before you start the cherrypy engine; something like:import cherrypyForkingTool
cherrypyForkingTool.forkingTool()
cherrypy.engine.start()
cherrypy.engine.block()After that, modify the [global] section of your cherrypy's configuration, or use cherrypy.config.update() to set the following properties:
* server.fork_pool - The number of forks to spawn. Note that the total number of server processes will be one higher than this.
* server.fork_life_mins - The maximum number of minutes that any single fork should accept requests; used as a really cheap memory leak fixer.Read the source to learn more.