diff options
| author | ianb <devnull@localhost> | 2007-03-10 02:35:35 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2007-03-10 02:35:35 +0000 |
| commit | a36799cb8543a687217121e5651b95b388652dc4 (patch) | |
| tree | c059ad3eeceabbeeb0b41533c1d195e62130c253 /docs | |
| parent | 755e68d095d27f582e4914f813d2cb863093a310 (diff) | |
| download | paste-a36799cb8543a687217121e5651b95b388652dc4.tar.gz | |
Major threadpool features to add threads temporarily, kill threads, monitor the killed threads, and notify the administrator about problems. Also updates to watchthreads to see this new information.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/news.txt | 12 | ||||
| -rw-r--r-- | docs/test_server.ini | 13 |
2 files changed, 25 insertions, 0 deletions
diff --git a/docs/news.txt b/docs/news.txt index d790d61..3703645 100644 --- a/docs/news.txt +++ b/docs/news.txt @@ -3,6 +3,18 @@ News .. contents:: +svn trunk +--------- + +* In ``paste.httpserver`` added lots of functionality to the + threadpool. See ``paster points paste.server_runner http`` for the + documentation, or the docstrings in ``paste.httpserver``. This + catches worker threads (and WSGI apps) that take too long to + complete their task; killing them eventually, adding more worker + threads when the pool is exhausted and it doesn't look good that + it'll clear soon, and optionally killing the process when there are + too many lost/zombie threads. + 1.3 --- diff --git a/docs/test_server.ini b/docs/test_server.ini index 3d53aee..7b9c096 100644 --- a/docs/test_server.ini +++ b/docs/test_server.ini @@ -1,9 +1,22 @@ +[DEFAULT] +error_email = ianb@colorstudy.com + [app:main] use = egg:PasteScript#test [server:main] use = egg:Paste#http host = 127.0.0.1:8081 +# These options make it easier to trigger the thread pool catches +# (i.e., threads are hung fast, killed fast, spawn fast, and the +# whole process dies quickly due to zombies) +threadpool_workers = 3 +threadpool_hung_thread_limit = 10 +threadpool_kill_thread_limit = 20 +threadpool_spawn_if_under = 2 +threadpool_max_zombie_threads_before_die = 2 +threadpool_hung_check_period = 1 +threadpool_dying_limit = 10 [server:cherrypy] use = egg:PasteScript#cherrypy |
