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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for cherrypy-dynpool-2.0.1.tar.gz
Algorithm Hash digest
SHA256 034aad4b8bb6ea19be5af2dbdb627e01d5a82da2484b886ddbd0c56e377a115d
MD5 2dbe13054389b24dcf55cd05183741c4
BLAKE2b-256 5f7ee252c5b41385bbb9425d11fae2695c3922821f4f9dce4ee88910854c480e

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