To force to use same cache directory at everytime I started varnish

2009-07-13 Thread Babblu Ghimire
I am a lerner and know very little about Varnish. Though, every time I
started varnish on my RHEL, change of cache directory is shown as
follows :
storage_file: filename: ./varnish.kEDdOW (unlinked) size 2047 MB.

I am curious - is there anyway to force to use same cache directory at
everytime I started varnish ?

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


make check fails most tests on Ubuntu 8.10 : missing dependency?

2009-07-13 Thread Dave Llopis
I'm trying to install either 2.04 or trunk on Ubuntu Intrepid, but
almost all the make check tests are failing,
all (or at least most) of which seem to fail like this:

  Assert error in varnish_start(), vtc_varnish.c line 329:
Condition(u == CLIS_OK) not true.

I'm running a base install of Intrepid, with just the few packages I
think are required for varnish:
ncurses-term, automake, libtool, make, and their dependencies.

The output of autogen.sh, configure, make, and make check is half a
megabyte, so I'm posting it elsewhere rather including it here:
http://www.davel.org/misc/build-varnish-trunk.txt

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


Question about Cache Purge

2009-07-13 Thread Brian Pan
Hi all,

I have a newbie question regarding 'purging the cache.'  When I run the 
following command to purge the root domain of my website,

varnishadm -T localhost:80  purge.url ^/$

I get this error:

An error occured in receiving status.

Based on examples, I've setup my VCL as follows:

//
acl purge {
localhost;
my local ip address;
}

sub vcl_recv {
# Allow wildcard purging
if (req.request == PURGE){
if (!client.ip ~ purge) {
error 405 Not allowed.;
}
purge_url(req.url); }
...

//***

Any help would be greatly appreciated.

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


Re: varnish 2.0.4 backend errors

2009-07-13 Thread Lazy
2009/7/14 Ken Brownfield k...@slide.com:
 The progression from your dump is:

 Varnish         Apache
 SYN
                SYN+ACK
 ACK
 ...4.4 seconds later...
                SYN+ACK
 ACK
 PSH+ACK
                ACK
 FIN+ACK (???)
                PSH+ACK
 RST

right i missed the 4second gap, so varnish may be hitting a timeout


 It looks like the ACK from the Varnish side is getting lost on its way to
 Apache, and Apache retransmits.  This itself would imply that you have some
 packet loss between Varnish and Apache.  That 4.4 second delay could easily
 be running you against the sess_timeout (or cli_timeout, maybe).  Bumping
 those up to 10 might clear the issue for you.

 Obviously, packet loss will cause issues in general, so I'd investigate that
 anyway.
it's a local interface, not lo but the traffic is going threw loopback interface


 More bizarrely, that FIN+ACK is missing a FIN from Apache.  Are you sure
 this stream is correct?  I have no idea what would cause a spurious FIN+ACK
 (besides a spurious FIN) and the issue would be highly unlikely a Varnish
 issue; more likely a kernel TCP stack issue.

 Is there anything between Varnish and Apache in your config, besides two
 machines on a shared switch?  Proxies?  Firewall rules?  Switch ACLs?  What
 OSes/versions are you running on each side?

it's only 1 machine
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc