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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for cherrypy-dynpool-1.0.tar.gz
Algorithm Hash digest
SHA256 b4add381d08f789e88669d0f499405f9c953b9ed9484d79f2b5f0b46c9e6efe6
MD5 dd121319da10c42267f978b9a7d9d7c9
BLAKE2b-256 d48e50e1ffe805e8601f4dd15bdf95f35c61d6885adf062cbad2a9171018301a

See more details on using hashes here.

Supported by

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