A dynamic thread pool tool for CherryPy 3.
Project description
A dynamic threadpool tool for CherryPy 3.x
(A backport from CherryPy 4)
Usage:
from cherrypy_dynpool import ThreadPoolMonitor ... cherrypy.engine.threadpool_monitor = ThreadPoolMonitor(cherrypy.engine) cherrypy.engine.threadpool_monitor.subscribe() cherrypy.config.update({ 'server.thread_pool': 5, 'server.thread_pool_max': -1, 'server.thread_pool_minspare': 5, 'server.thread_pool_maxspare': 15, 'server.thread_pool_frequency': 2, 'server.thread_pool_shrink_frequency': 5, }) ... cherrypy.engine.start() cherrypy.engine.threadpool_monitor.configure( thread_pool=cherrypy.server.httpserver.requests, logger=cherrypy.log )
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cherrypy-dynpool-2.0.tar.gz
(6.3 kB
view details)
File details
Details for the file cherrypy-dynpool-2.0.tar.gz
.
File metadata
- Download URL: cherrypy-dynpool-2.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32fd37090859884acf329e0ccd5d8857d47edba71ee6ce4eb0394a581e325241 |
|
MD5 | 18939cdb578d86cb990e5f28f70900d9 |
|
BLAKE2b-256 | e1d9a5836e0ebd38d365d259ca339f8f2ec33d33cf0a9111a334523a6ad639a9 |