Failure cenarios?

2007-07-03 Thread Gaute Amundsen

I have come to understand that in some builds under some conditions varnish 
may hang or a crash. (we run 1.0.4-3el4.i386.rpm)

I have now routed all our ~180 sites troug varnish, pipe by default, cached 
for selected hostnames. Talk a bout all ones eggs in one basket :)

The way it is all set up, we have varnsih on port 80 on one IP and apache on 
80 on another whch is not in use for anything directly.
If anything should hapen to varnish, or we need to upgrade or anything, 3 
lines to netfilter wil reroute all the trafic directly to apache.

Now the question is, how do I best detect if varnsih should have a problem?
Would it be reasonably reliable to just chek if the pid 
from /var/run/varnish.pid is running, do I need to fetch a page, or is there 
some better way?

Gaute
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: Failure cenarios?

2007-07-03 Thread Denis Brækhus
- Gaute Amundsen [EMAIL PROTECTED] wrote:
 I have come to understand that in some builds under some conditions
 varnish 
 may hang or a crash. (we run 1.0.4-3el4.i386.rpm)

Hi Gaute,

I'll just say that in my experience Varnish has proven itself to be extremely 
stable. We actually run 1.0.3 across the board (yes I know there are known 
bugs, however we do not experience them at all) and Varnish currently serves up 
all requests at www.startsiden.no and www.abcnyheter.no. If anything breaks, it 
has not so far been varnish. 

However our scenario is pretty different from yours, we have very few vhosts 
but each has a very high amount of traffic. There is little or no advanced VCL 
configuration at all on our sites. We're pretty close to the default. The two 
sites have a different setup with regards to placement of Varnish. One site 
runs with dedicated varnish servers, the other has varnish and apache2 on the 
same box.

 Now the question is, how do I best detect if varnsih should have a
 problem?
 Would it be reasonably reliable to just chek if the pid 
 from /var/run/varnish.pid is running, do I need to fetch a page, or is
 there 
 some better way?

Well, we always monitor as high up as possible to make sure everything works on 
all levels. Lower level monitoring is useful too, but for pinpointing with more 
accuracy where the problem is. 

Regards
-- 
Denis Braekhus - Teknisk Ansvarlig ABC Startsiden AS
http://www.startsiden.no

___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: Failure cenarios?

2007-07-03 Thread Dag-Erling Smørgrav
Gaute Amundsen [EMAIL PROTECTED] writes:
 Now the question is, how do I best detect if varnsih should have a
 problem?  Would it be reasonably reliable to just chek if the pid from
 /var/run/varnish.pid is running, do I need to fetch a page, or is
 there some better way?

I would recommend retrieving a page (or a set of pages).  Simply
checking the pid won't help you if Varnish has gone off into la-la land,
or been SIGSTOPped or something.

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: Failure cenarios?

2007-07-03 Thread Anup Shukla
James Quacinella wrote:
 I use monit for monitoring programs. Here is a snippet I had used when 
 monitoring a varnish install (too bad it never went into production; 
 change values to you liking / environment):
   

A Billion thanks to you :)
I have been looking for a tool that could do this for me.

Regards
A.S
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc