Skip to main content

A dynamic thread pool tool for CherryPy 3.

Project description

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
)

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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for cherrypy-dynpool-2.2.1.tar.gz
Algorithm Hash digest
SHA256 1f5c7f7d8782841c6232739632c372fb1963dc9244174bd32918494081b38ca4
MD5 5168f1ad9220be353b8174f881c6f5aa
BLAKE2b-256 03645bd50694258cbe2d43c6144bba6654085d4adff85e858dc3c21f08fff33f

See more details on using hashes here.

Supported by

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