Re: Strategies for splitting load across varnish instances? And avoiding single-point-of-failure?

2010-01-19 Thread Rob Ayres
2010/1/15 Rob S > John Norman wrote: > > Folks, > > > > A couple more questions: > > > > (1) Are they any good strategies for splitting load across Varnish > > front-ends? Or is the common practice to have just one Varnish server? > > > > (2) How do people avoid single-point-of-failure for Varnis

running varnish-2.0.2 on Sun

2009-02-10 Thread Rob Ayres
Hi, hope this is a good place to post this. I have been trying to build Varnish on a Sun (SunOS 5.10 Generic_127111-03 sun4u sparc SUNW,Sun-Fire-V490, gcc version 4.2.1 ) and are experiencing many problems, if anyone has any hints please help. Have built it on freebsd and linux with no problems, un

Re: running varnish-2.0.2 on Sun

2009-02-13 Thread Rob Ayres
2009/2/12 Tollef Fog Heen > ]] Rob Ayres > > | Does anyone have an idea what has caused this? > > Not really, no. I'm going to get a buildbot slave going on Solaris so > we'll hopefully be able to avoid such bugs in the future. If you have > found a solution

varnish redundancy

2009-09-03 Thread Rob Ayres
Hi, We are using varnish on a single server with four backend servers. This is working very well (thanks to the varnish developers!) but we wish to add some redundancy to the system. The obvious way is just to add another varnish running on another server in a different datacentre. The downside to

Is it possible to simulate this rewrite in vcl?

2009-09-28 Thread Rob Ayres
Hi, I've had to put an instance of apache behind varnish as a redirector as I can't think of a way of making varnish do it. Can this apache rewrite be done in vcl? RewriteRule ^/(.*)/home/(.*)$ http://$1_host.example.com/$2 [P] I've been looking at a mix of using regsub to change parts of the

hitrate at 1.00 but backend still getting traffic

2009-10-14 Thread Rob Ayres
Hi, Doing some testing and have got the hitrate average to 1.00. Cache misses are reported as 0.00 but we are still seeing reqests in the backends apache logs. The Total Pass line (see the varnishstat output below) seems to show about the right number of requests to account for this. But if there

varnish with authirsed requests

2009-10-27 Thread Rob Ayres
Hi, My client machine (actually another server generating requests) is creating POST requests to varnish which also include basic HTTP authentication. I've got varnish caching POST requests from my browser by changing the line in vcl_recv to this: if (req.request != "GET" && req.request != "

Caching POSTs

2009-11-04 Thread Rob Ayres
Hi, I want to cache POSTs but can't get varnish to do it, is it possible? If it makes it any easier, all requests through this cache will be of POST type. So far I have changed the line in vcl_recv to look like this: if (req.request != "GET" && req.request != "HEAD" && req.request != "POST") {