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.engine.start() minspare = 5 maxspare = 40 shrink_frequency = 10 cherrypy.engine.threadpool_monitor.configure( cherrypy.server.httpserver.requests, minspare, maxspare, shrink_frequency, 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-1.0.tar.gz
(6.1 kB
view hashes)