Skip to main content

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)

Source distribution for cherrypy-dynpool 2.4.0
File Size Uploaded
cherrypy-dynpool-2.4.0.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cherrypy-dynpool 2.4.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2.4.0 This release

2 release files

2.2.3

1 release file

2.2.1

1 release file

2.2

1 release file

2.1

1 release file

2.0.1

1 release file

2.0

1 release file

1.0.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page