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_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
)
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.1.tar.gz
(6.5 kB
view details)
File details
Details for the file cherrypy-dynpool-2.1.tar.gz.
File metadata
- Download URL: cherrypy-dynpool-2.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
effe401723ac39fc63076dbe4264a1102333dfdbe67742f3d1a84675a7c5d7f6
|
|
| MD5 |
086dd5cb83b130e54a813ff63ee89337
|
|
| BLAKE2b-256 |
89aed6d3314ee68f7c6eeeb274b80428d4e28cf108f81d020148ec1c9678cf42
|