Hi list, I am using SQLAlchemy and running Flup SCGI server in threaded mode. I am not sure how/if the number of database connections relate to the number of threads, but I've noticed about 4 "idle" postgres connection for one Pylons app. Simulating higher load resulted in an extra connection. I couldn't find any configuration setting to restrict the number of connections and / or the number of threads. So my question is: - are those two related (db connections and threads)? - how to restrict the number of them in this setup:
[server:main] use = egg:PasteScript#flup_scgi_thread host = 0.0.0.0 port = 6039 In case it matters, my BaseController has the following line in __call__: model.ctx.current = make_session(convert_unicode=True) I am using Pylons 0.9.5. Thanks for any hints! Ksenia. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
