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
)
Release files for cherrypy-dynpool 2.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cherrypy-dynpool-2.4.0.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cherrypy_dynpool-2.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / cherrypy-dynpool-2.4.0.tar.gz
| Download URL | cherrypy-dynpool-2.4.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85f63cd2bc49c929f39e431f162a4867ea93eebed10fecd0ba498715f007a2ad
|
|
BLAKE2b-256 checksum How to use checksums |
35f2ad36005bf0780a0f6a59dd2ddc7e4390309d8db479cdbfad5da5164710f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0
|
Release files / cherrypy_dynpool-2.4.0-py3-none-any.whl
| Download URL | cherrypy_dynpool-2.4.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50772793d6fe79ecd3ed8348b4110a1d5c67370e86d3d3c50b6c24079ec7209b
|
|
BLAKE2b-256 checksum How to use checksums |
e17539fdebc27f162176bc4429630c0f59b486e0b1b2ab17fe731d51f7e1cbe5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0
|