[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
Showing posts with label threadpool. Show all posts
Showing posts with label threadpool. Show all posts
Friday, April 1, 2011
extend default thread pool workers of paster in pylons
add a option named threadpool_workers in server:main section in development.ini as below:
[server:main]
use = egg:Paste#http
host = 127.0.0.1
port = 5000
threadpool_workers = 20
then you will get this message from log:
11:09:33,678 INFO [paste.httpserver.ThreadPool] kill_hung_threads status: 20 threads (0 working, 20 idle, 0 starting) ave time N/A, max time 0.00sec, killed 0 workers
[server:main]
use = egg:Paste#http
host = 127.0.0.1
port = 5000
threadpool_workers = 20
then you will get this message from log:
11:09:33,678 INFO [paste.httpserver.ThreadPool] kill_hung_threads status: 20 threads (0 working, 20 idle, 0 starting) ave time N/A, max time 0.00sec, killed 0 workers
Subscribe to:
Posts (Atom)