Re: Django + Varnish. Keepalive?
On Mon, Mar 1, 2010 at 4:12 AM, Alessandro Ronchi
<alessandro.ronchi@soasi.com> wrote:
> 2010/2/25 Alessandro Ronchi <alessandro.ronchi@soasi.com>:
>> I am using Varnish as a frontend proxy for my django apps. I usually
>> disable keepalive on apache, but in this case I've only one client (the
>> proxy on localhost) for apache, isn't it good to avoid closing and opening
>> connections?
>
> Isn't anyone using a proxy with django apps?
> It's always a good advice to turn keepalive off, also if the
> connection is with a localhost proxy wich opens a new connection every
> request?
opening a connection on a LAN is much cheaper than accross the
internet. on Localhost even more so. it's common for a proxy not to
do keepalive on the backend.
also, you can think of any non-mod_python setup to be a proxy in front
of a Django app. It's most evident when using nginx, (which is first
of all a loadbalancer/proxy with a (fast!) static file serving
afterthought), there you set the FastCGI process much like any HTTP
backend server.
--
Javier
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home