Re: Lots of configs

2011-03-08 Thread David Helkowski
First off, I would like to thank Per Buer for pointing out that I am off by a factor of 1000 in the following statements. I have corrected for that below so that my statements are more clear. My mistake was in considering modern processors as 2 megahertz instead of 2 gigahertz. On 3/7/2011

Re: Lots of configs

2011-03-08 Thread David Helkowski
On 3/8/2011 9:53 AM, Poul-Henning Kamp wrote: In messageaanlktimweic5-+axmjhazpcqyc0huxhgdwaw4+l_6...@mail.gmail.com, Jona than DeMello writes: Poul simply comes across as a nervous child, throwing every superiority imposing cliche out there because he thought a team member was 'threatened'.

Re: Varnish still 503ing after adding grace to VCL

2011-03-08 Thread Drew Smathers
On Mon, Mar 7, 2011 at 5:52 PM, Drew Smathers drew.smath...@gmail.com wrote: On Mon, Mar 7, 2011 at 5:39 PM, Per Buer pe...@varnish-software.com wrote: [snip] That's Saint Mode - please see http://www.varnish-cache.org/docs/trunk/tutorial/handling_misbehaving_servers.html#saint-mode I see

Re: Varnish still 503ing after adding grace to VCL

2011-03-08 Thread Per Buer
Hi Drew, list. On Tue, Mar 8, 2011 at 9:34 PM, Drew Smathers drew.smath...@gmail.comwrote: Sorry to bump my own thread, but does anyone know of a way to set saintmode if a backend is down, vs. up and misbehaving (returning 500, etc)? Also, I added a backend probe and this indeed caused

RE: Varnish 503ing on ~1/100 POSTs

2011-03-08 Thread Caunter, Stefan
I would look at setting a fail director. Restart if there is a 503, and if restarts 0 select the patient director with very generous health checking. Your timeouts are reasonable, but try .timeout 20s and .threshold 1 for the patient director. Having a different view of the backends usually deals

Re: Lots of configs

2011-03-08 Thread Ken Brownfield
An O(1) solution (e.g., a hash table) is a perfectly valid optimization of an O(N) solution. But you are confusing an O(N) solution with an O(N) problem. If the O(N) solution *in actual bona fide reality *becomes a problem for someone's use-case, I'm sure that an O(1) solution can be implemented

Re: Varnish 503ing on ~1/100 POSTs

2011-03-08 Thread Ben Dodd
Hello, This is only to add we've been experiencing exactly the same issue and are desperately searching for a solution. Can anyone help? Thanks, Ben On 8 Mar 2011, at 21:55, varnish-misc-requ...@varnish-cache.orgmailto:varnish-misc-requ...@varnish-cache.org

Re: Varnish 503ing on ~1/100 POSTs

2011-03-08 Thread Ronan Mullally
On Tue, 8 Mar 2011, Stewart Robinson wrote: Whilst this may not be a fix to a possible bug in varnish have you tried switching posts to pipe instead of pass? This might well help, but I'd have no way of knowing for sure. The backend servers indicate the requests via varnish are processed

Re: Lots of configs

2011-03-08 Thread Poul-Henning Kamp
In message 4d7688a1.8020...@sbgnet.com, David Helkowski writes: On 3/8/2011 9:53 AM, Poul-Henning Kamp wrote: In messageaanlktimweic5-+axmjhazpcqyc0huxhgdwaw4+l_6...@mail.gmail.com, Jona My anger was due primarily to the statement if you got to deploy a whole bunch of scary inline C that will

RE: Varnish 503ing on ~1/100 POSTs

2011-03-08 Thread Ronan Mullally
Hi Stefan, On Tue, 8 Mar 2011, Caunter, Stefan wrote: I would look at setting a fail director. Restart if there is a 503, and if restarts 0 select the patient director with very generous health checking. Your timeouts are reasonable, but try .timeout 20s and .threshold 1 for the patient

Re: Lots of configs

2011-03-08 Thread Poul-Henning Kamp
In message 635787275.835680.1299625799368.javamail.r...@mail-01.sbgnet.com, D avid Helkowski writes: Please refrain from continuing to message the list on this topic. I prefer the archives show the full exchange, should any of your future potential employers google your name. If you do not like

Re: Lots of configs

2011-03-08 Thread Geoff Simmons
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 3/9/11 12:50 AM, Johnny Halfmoon wrote: Are you proposing some kind of 'hushing' algorithm? Some threads fail silently, whereas other fail verbosely. - -- UPLEX Systemoptimierung Schwanenwik 24 22087 Hamburg http://uplex.de/ Mob:

Re: Varnish still 503ing after adding grace to VCL

2011-03-08 Thread Drew Smathers
On Tue, Mar 8, 2011 at 3:51 PM, Per Buer pe...@varnish-software.com wrote: Hi Drew, list. On Tue, Mar 8, 2011 at 9:34 PM, Drew Smathers drew.smath...@gmail.com wrote: Sorry to bump my own thread, but does anyone know of a way to set saintmode if a backend is down, vs. up and misbehaving

Re: Lots of configs

2011-03-08 Thread David Helkowski
Original Message - From: Johnny Halfmoon jhalfm...@milksnot.com To: David Helkowski dhelkow...@sbgnet.com Cc: Poul-Henning Kamp p...@phk.freebsd.dk, varnish-misc@varnish-cache.org, Jonathan DeMello demello@googlemail.com Sent: Tuesday, March 8, 2011 6:50:45 PM Subject: Re: Lots of

Re: Lots of configs

2011-03-08 Thread AD
As the OP, i would like to get the discussion on this thread back to something useful. That being said... Assuming there was an O(1) (or some ideal) mechanism to lookup req.host and map it to a custom function, i notice that i get the error Unused function custom_host if there is not an