Skip to main content

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.1.tar.gz (6.2 kB view details)

Uploaded Source

File details

Details for the file cherrypy-dynpool-1.0.1.tar.gz.

File metadata

File hashes

Hashes for cherrypy-dynpool-1.0.1.tar.gz
Algorithm Hash digest
SHA256 26f1222f0671bc5c35988431d56354877e41a218d6d4e17b670e5c7259bc25ae
MD5 3ebeb01a8c00fd8cc0ff96cbf3d35f47
BLAKE2b-256 eebaf7b7fa325e154c05bf48982a0c46b288d4bf934dd08e5cf903db68d7ea69

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page