Skip to main content

A dynamic thread pool tool for CherryPy.

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

Uploaded Source

Built Distribution

cherrypy_dynpool-2.4.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cherrypy-dynpool-2.4.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for cherrypy-dynpool-2.4.0.tar.gz
Algorithm Hash digest
SHA256 85f63cd2bc49c929f39e431f162a4867ea93eebed10fecd0ba498715f007a2ad
MD5 5ee3bebcabdb6a8b6eb04cf26b468bfa
BLAKE2b-256 35f2ad36005bf0780a0f6a59dd2ddc7e4390309d8db479cdbfad5da5164710f8

See more details on using hashes here.

File details

Details for the file cherrypy_dynpool-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: cherrypy_dynpool-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for cherrypy_dynpool-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50772793d6fe79ecd3ed8348b4110a1d5c67370e86d3d3c50b6c24079ec7209b
MD5 3f6747358672e4be151cc825d9ffec95
BLAKE2b-256 e17539fdebc27f162176bc4429630c0f59b486e0b1b2ab17fe731d51f7e1cbe5

See more details on using hashes here.

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