Skip to main content

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
)

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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for cherrypy-dynpool-2.0.tar.gz
Algorithm Hash digest
SHA256 32fd37090859884acf329e0ccd5d8857d47edba71ee6ce4eb0394a581e325241
MD5 18939cdb578d86cb990e5f28f70900d9
BLAKE2b-256 e1d9a5836e0ebd38d365d259ca339f8f2ec33d33cf0a9111a334523a6ad639a9

See more details on using hashes here.

Release history Release notifications | RSS feed

2.4.0

2 files

2.2.3

1 file

2.2.1

1 file

2.2

1 file

2.1

1 file

2.0.1

1 file

This release

2.0 This release

1 file

1.0.1

1 file

1.0

1 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