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

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.engine.start()
    minspare = 5
    maxspare = 40
    shrink_frequency = 10
    cherrypy.engine.threadpool_monitor.configure(
        cherrypy.server.httpserver.requests,
        minspare, maxspare, shrink_frequency,
        cherrypy.log
    )
