mozilla-services / syncserver

Run-Your-Own Firefox Sync Server
Mozilla Public License 2.0
1.87k stars 145 forks source link

Setting maximum threads in the pool #51

Open davidgfnet opened 9 years ago

davidgfnet commented 9 years ago

Hi!

Is there any way to limit the number of threads that "pserve" runs by default? I guess it's some sort of python webserver and I'd like to tweak it a little bit. Thanks!

davidgfnet commented 9 years ago

Let me reply myself. Hacked httpserver.py (under packages/paste) with some default values: spawn_if_under threadpool_workers Setting them to a low causes syncserver to use less threads. I think this should be exposed in the .ini config file (maybe optional section) so people can tweak it depending on their needs. Thanks!