A dynamic threadpool tool for CherryPy
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_log_frequency': 1,
'server.thread_pool_shrink_frequency': 5,
})
...
cherrypy.engine.start()
cherrypy.engine.threadpool_monitor.configure(
thread_pool=cherrypy.server.httpserver.requests,
logger=cherrypy.log
)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cherrypy-dynpool-2.2.3.tar.gz.
File metadata
- Download URL: cherrypy-dynpool-2.2.3.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ba45b0528eaa5ea157c30bee0b345e0a5a78f0ec53c2242f088f8c6365d7517
|
|
| MD5 |
43a328c3c4c7a295d7b770879ab7f0f6
|
|
| BLAKE2b-256 |
b056463098741feb7fc101b97b53f981bd0e2e3e7f30d269aa8bfab64c7cacf6
|