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.engine.start()
minspare = 5
maxspare = 40
shrink_frequency = 10
cherrypy.engine.threadpool_monitor.configure(
cherrypy.server.httpserver.requests,
minspare, maxspare, shrink_frequency,
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-1.0.tar.gz
(6.1 kB
view details)
File details
Details for the file cherrypy-dynpool-1.0.tar.gz.
File metadata
- Download URL: cherrypy-dynpool-1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4add381d08f789e88669d0f499405f9c953b9ed9484d79f2b5f0b46c9e6efe6
|
|
| MD5 |
dd121319da10c42267f978b9a7d9d7c9
|
|
| BLAKE2b-256 |
d48e50e1ffe805e8601f4dd15bdf95f35c61d6885adf062cbad2a9171018301a
|