Metadata-Version: 2.1
Name: cherrypy-dynpool
Version: 2.4.0
Summary: A dynamic thread pool tool for CherryPy.
Home-page: https://github.com/tabo/cherrypy-dynpool/
Author: Gustavo Picon
Author-email: tabo@tabo.pe
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries
Requires-Dist: CherryPy (>=3.2)
Requires-Dist: dynpool (<3.0,>=2.0)
Provides-Extra: testing
Requires-Dist: pytest ; extra == 'testing'

cherrypy-dynpool
================

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
    )


