varnish crashes
Angelo Höngens
a.hongens at netmatch.nl
Sat Jan 23 14:07:39 CET 2010
On 23-1-2010 13:02, Poul-Henning Kamp wrote:
> In message <4B5AD8B0.6090103 at netmatch.nl>, =?ISO-8859-1?Q?Angelo_H=F6ngens?= wr
> ites:
>
>> By the way: the balancers do a total of 2000 req/sec now, but when
>> stresstesting I can easily get 9000 cache/hits persec. So I don't think
>> it's hanging on the upper limits of its performance.
>
> At that level of load, make sure to kldload the http accept filter.
Thanks, after doing some reading, I loaded accf_data and accf_http..
> Your varnish-stat looks pretty OK.
>
> Have you configured health-polling of all those backends ?
Not explicitly no..
I have haproxy running on these machines as well for over a year, with
the 200-300 backends, each bound on a local port. These do health
checking to backend nodes, and if they are down haproxy presents a
pretty looking 503 page specific for that project.
In Varnish I have only configured backends like this.
backend backend8001 {
.host = "localhost";
.port = "8001";
}
backend backend8002 {
.host = "localhost";
.port = "8002";
}
..
else if (req.http.host == "blabla.sitea.com") { set req.backend =
backend8001; }
else if (req.http.host == "blabli.sitea.com") { set req.backend =
backend8001; }
else if (req.http.host == "blabla.siteb.com") { set req.backend =
backend8002; }
else if (req.http.host == "blabla.sitec.com") { set req.backend =
backend8002; }
I know I could do this all in my vcl, but then I would loose all the
haproxy advantages like the stats page, and increase the size of my vcl
to several megabytes.
--
With kind regards,
Angelo Höngens
systems administrator
MCSE on Windows 2003
MCSE on Windows 2000
MS Small Business Specialist
------------------------------------------
NetMatch
tourism internet software solutions
Ringbaan Oost 2b
5013 CA Tilburg
+31 (0)13 5811088
+31 (0)13 5821239
A.Hongens at netmatch.nl
www.netmatch.nl
------------------------------------------
More information about the varnish-misc
mailing list