cherrypy-dynpool-2.4.0
توضیحات
A dynamic thread pool tool for CherryPy.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cherrypy-dynpool-2.4.0 |
| نام | cherrypy-dynpool |
| نسخه کتابخانه | 2.4.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Gustavo Picon |
| ایمیل نویسنده | tabo@tabo.pe |
| آدرس صفحه اصلی | https://github.com/tabo/cherrypy-dynpool/ |
| آدرس اینترنتی | https://pypi.org/project/cherrypy-dynpool/ |
| مجوز | - |
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
)
نیازمندی
| مقدار | نام |
|---|---|
| >=3.2 | CherryPy |
| <3.0,>=2.0 | dynpool |
| - | pytest |
نحوه نصب
نصب پکیج whl cherrypy-dynpool-2.4.0:
pip install cherrypy-dynpool-2.4.0.whl
نصب پکیج tar.gz cherrypy-dynpool-2.4.0:
pip install cherrypy-dynpool-2.4.0.tar.gz