Handle timeout from a backend

2012-06-26 Thread Jean Praloran
Hi there, I have a little issue with my differents varnish wich is probably due to a bad configuration. From time to time I am having 503 error thrown by varnish probably due to a backend timeout which is not responding fast enough in regards of varnish timeouts. My question is there anyway to

Load Balancing and Varnish

2012-06-26 Thread Allan Brand
Greetings, I'm new to Varnish and I've seen a number of discussions where Varnish is used in conjunction with a load balancer in the following manner: [LB] - [Varnish] - [www 1-n] I'm guessing that Varnish is running locally on the www hosts? If not, Is there any reason why placing Varnish in

Re: Load Balancing and Varnish

2012-06-26 Thread Javier Casares
¿Why don't you use Varnish as a LB? https://www.varnish-cache.org/trac/wiki/LoadBalancing Javier Casares http://javiercasares.com/ 2012/6/26 Allan Brand allan.br...@gmail.com: Greetings, I'm new to Varnish and I've seen a number of discussions where Varnish is used in conjunction with a

Syntax for piping varnish logs to rotatelogs

2012-06-26 Thread Rowan @ Jetboy
Ubuntu 12.04 Server x64, Varnish 3.0.2 I'm trying to pipe varnishncsa's logs through Apache's rotatelogs, and running from the shell, things work fine: sudo varnishncsa -a -P /var/run/varnishncsa/varnishncsa.pid |/usr/sbin/rotatelogs /var/log/varnish/varnish.log.%Y%m%d%H 3600 creates a new

Re: Load Balancing and Varnish

2012-06-26 Thread Allan Brand
Can Varnish load balance with algorithms other than round-robin or random? That's all I've been able to find. Thanks, Allan On Tue, Jun 26, 2012 at 11:58 AM, Javier Casares jav...@casares.org wrote: ¿Why don't you use Varnish as a LB? https://www.varnish-cache.org/trac/wiki/LoadBalancing

Re: Load Balancing and Varnish

2012-06-26 Thread Allan Brand
Thanks! Does Varnish support least-connections or weighted least-connections load balancing? Also, in the scenario of placing a LB in front of Varnish, is the Varnish host a dedicated machine or is it running locally on the web servers? Allan On Tue, Jun 26, 2012 at 12:40 PM, Hugo Cisneiros

Esi like mod_layout

2012-06-26 Thread Kamil
Hi I would like use Varnish like mod_layout but I can;t find how implement esi in all sites on my serwer automatically. It possible put esi:include src=/folder/ads.html/ in .vcl file or something else to include ads in all my websites? I can manually edit every public_html files on my sites to

RE: Syntax for piping varnish logs to rotatelogs

2012-06-26 Thread Rowan @ Jetboy
Thanks Hugo, I think you've got it there. I've just had a response on Server Fault that seems to be based around the similar logic: http://serverfault.com/questions/402157/syntax-for-piping-varnish-logs-to-ro tatelogs/402506#402506 Am I right in thinking that this is the same limitation that

Re: Syntax for piping varnish logs to rotatelogs

2012-06-26 Thread Hugo Cisneiros (Eitch)
On Tue, Jun 26, 2012 at 6:46 PM, Rowan @ Jetboy ro...@jetboy.co.uk wrote: Thanks Hugo, I think you've got it there. I've just had a response on Server Fault that seems to be based around the similar logic: http://serverfault.com/questions/402157/syntax-for-piping-varnish-logs-to-ro

Varnish Close the connection on long files

2012-06-26 Thread Abraham Cruz Sustaita
We have a lot of videos. Some of them of 500Mb, and when the users want to dowload them, varnish close the connection before the file is fully downloaded. We know this is the problem cause everytime we receive the same file but with differents sizes. If the connection is slow, the file is smaller.