Re: [Web-SIG] question about connection pool, task queue in WSGI

2012-07-15 Thread Benoit Chesneau
On Sun, Jul 15, 2012 at 5:14 PM, Simon Sapin wrote: > Le 14/07/2012 06:07, Graham Dumpleton a écrit : > >>2. Is the socket FD the same mechanism like nginx? If you upgrade >> nginx >>binary, restart nginx, the existing http connection won't break. >> >> I would be very surprised if

Re: [Web-SIG] question about connection pool, task queue in WSGI

2012-07-15 Thread Simon Sapin
Le 14/07/2012 06:07, Graham Dumpleton a écrit : >>2. Is the socket FD the same mechanism like nginx? If you upgrade nginx >>binary, restart nginx, the existing http connection won't break. I would be very surprised if you could upgrade nginx, perform a restart and preserve the HTTP listener sock

Re: [Web-SIG] question about connection pool, task queue in WSGI

2012-07-14 Thread est
These uwsgi features are pretty neat! Thank you! I'll try this. On Sat, Jul 14, 2012 at 1:52 PM, Roberto De Ioris wrote: > > > Hi list, > > > > I am running a site with django + uwsgi, I have few questions about how > > WSGI works. > > > > 1. Is db connection open/close handled by Django? If it'

Re: [Web-SIG] question about connection pool, task queue in WSGI

2012-07-13 Thread Roberto De Ioris
> Hi list, > > I am running a site with django + uwsgi, I have few questions about how > WSGI works. > > 1. Is db connection open/close handled by Django? If it's open/closed per > request, can we make a connection pool in wsgi level, then multiple django > views can share it? > > 2. As a general

Re: [Web-SIG] question about connection pool, task queue in WSGI

2012-07-13 Thread Graham Dumpleton
> On 13 July 2012 07:18, est wrote: >> Thanks for the answer. That's very helpful info. >> >>> Only by changing the Django code base from memory. Better off asking >> on the Django users list. >> >> Is my idea was good or bad? (make wsgi handle connection pools, instead of >> wsgi apps) >> >> I r

Re: [Web-SIG] question about connection pool, task queue in WSGI

2012-07-13 Thread Graham Dumpleton
Please keep replies in the mailing list. Graham On 13 July 2012 07:18, est wrote: > Thanks for the answer. That's very helpful info. > >> Only by changing the Django code base from memory. Better off asking > on the Django users list. > > Is my idea was good or bad? (make wsgi handle connection

Re: [Web-SIG] question about connection pool, task queue in WSGI

2012-07-12 Thread Graham Dumpleton
On 12 July 2012 19:50, est wrote: > Hi list, > > I am running a site with django + uwsgi, I have few questions about how WSGI > works. > > 1. Is db connection open/close handled by Django? If it's open/closed per > request, Yes it is. > can we make a connection pool in wsgi level, then multiple

[Web-SIG] question about connection pool, task queue in WSGI

2012-07-12 Thread est
Hi list, I am running a site with django + uwsgi, I have few questions about how WSGI works. 1. Is db connection open/close handled by Django? If it's open/closed per request, can we make a connection pool in wsgi level, then multiple django views can share it? 2. As a general design considerati