Re: Question about Cache Size

2008-01-20 Thread james
james wrote:
 Hey everyone,

 In trying to diagnose why the varnish child dies at seemingly random 
 times, I started varnish with -d -d and waited for a crash. This is what 
 I got in the output:

 Child said (2, 16094): Assert error in STV_alloc(), stevedore.c line 70:
   Condition((st) != NULL) not true.
   errno = 107 (Transport endpoint is not connected)
  
 Cache child died pid=16094 status=0x6
 Clean child
 Child cleaned
 start child pid 18886
 Child said (2, 18886): Child starts
 managed to mmap 565284864 bytes of 565284864
 Ready
 CLI ready
  
   

This issue is not effecting me anymore after moving to a 64bit system.

Alas, I am experiencing another issue using varnish-1.2. After purging 
from the cache (using url.purge *.css), the child will die and the 
management process goes to 100% cpu. From running in debug mode:

storage_file: filename: /var/cache/varnishd//varnish.BIT37f (unlinked) 
size 10240 MegaBytes.
Using old SHMFILE
rolling(1)...
rolling(2)...
start
start child pid 20178
200 0  

Child said (2, 20178): Child starts
managed to mmap 10737418240 bytes of 10737418240
Ready
CLI ready
 
Cache child died pid=20178 status=0xb
Clean child
Child cleaned
start child pid 20199
Child said (2, 20199): Child starts
managed to mmap 10737418240 bytes of 10737418240
Ready
CLI ready
 

Is there anything else I should to to help track down the issue? Is it 
advisable to go to 1.1.2?

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


Question about Cache Size

2008-01-10 Thread james
Hey everyone,

In trying to diagnose why the varnish child dies at seemingly random 
times, I started varnish with -d -d and waited for a crash. This is what 
I got in the output:

Child said (2, 16094): Assert error in STV_alloc(), stevedore.c line 70:
  Condition((st) != NULL) not true.
  errno = 107 (Transport endpoint is not connected)
 
Cache child died pid=16094 status=0x6
Clean child
Child cleaned
start child pid 18886
Child said (2, 18886): Child starts
managed to mmap 565284864 bytes of 565284864
Ready
CLI ready
 


Any idea what this might be an indication of? Also, when starting 
varnish from the command line (and not an init.d script), I noticed this 
output which I haven't noticed before:

[EMAIL PROTECTED] ~]# /usr/local/sbin/varnishd -a ipaddr:8000 -T 
ipaddr:8080 
-s file,/var/cache/varnish/,10G -p group=nobody -p thread_pool_max=1500 
-p thread_pools=5 -p listen_depth=512 -p client_http11=on -p 
backend_http11=on -p default_ttl=36000 -P /var/run/varnishd.pid -f 
/etc/varnish.conf
WARNING: storage file size reduced to 1342177280 due to system limitations
WARNING: storage file size reduced to 599837900 (80% of available disk 
space)
file /var/cache/varnish//varnish.z8brik (unlinked) size 599834624 bytes 
(146444 fs-blocks, 146444 pages)
Using old SHMFILE


However, 80% of my available disk space is not 599834624 bytes ( 572 
Mbytes ).

FilesystemSize  Used Avail Use% Mounted on
/dev/sda3 131G   16G  109G  13% /
/dev/sda1  99M   15M   79M  16% /boot
tmpfs 1.8G 0  1.8G   0% /dev/shm

Any idea if these things are related? Currently running varnishd-1.2

Thanks!

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


VCL.List Output

2007-09-05 Thread James Quacinella
Hello everyone,

I was curious about the output of vcl.list, specifically as to what the 
numbers meant, since I don't think its documented in the man page. I 
went through the source and I think the number outputted is the 
vcl-conf-busy structure member, which is incremented every time in 
VCL_Get. I'm not sure exactly when that happens though.

I ask only because I could not seem to unload a certain configuration 
using vcl.discard, which prompted me to stop and start the child so that 
I could. Thats no big deal as its not on a production environment yet. 
The commands I executed were as follows:

varnishadm -T x.x.x.x:8080 vcl.use boot
varnishadm -T x.x.x.x:8080 vcl.list
*   1 boot
1 config
varnishadm -T x.x.x.x:8080 vcl.load config1 
/usr/local/etc/varnish/static.vcl
varnishadm -T x.x.x.x:8080 vcl.load config2 
/usr/local/etc/varnish/static_and_dynamic.vcl
varnishadm -T x.x.x.x:8080 vcl.list
*   1 boot
1 config
0 static
0 static_and_dynamic
varnishadm -T x.x.x.x:8080 vcl.discard config

Which returns an error. Any idea why that one config was still 'busy'?

-- james

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


Re: why purge makes child process restart?

2007-09-03 Thread james
Monty Ree wrote:
 So thanks and so sorry for bothering you.
 But my varnish is 1.1.1 not trunk, and I don't know how to fix at 1.1.1.
 version 1.1.1 has no file related cache_backend_simple.c 

 Please give me a solution for the version 1.1.
   

I imagine that you're best bet would be to run varnish from trunk
(http://varnish.projects.linpro.no/wiki/Installation).

-- james


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


Re: Browser refresh and varnish

2007-08-02 Thread James Quacinella
KKK RRR wrote:
 why every time i can't refresh my browser with files from varnish cache ?

 for exapmle:
 if i go to www.x.com/abcd.jpg then is ok - varnish shows HIT
 but if i refresh it don't work
   

Maybe because your browser is caching the image abcd.jpeg after the 
inital request ? Depending on your browser, you should either clear your 
local cache or don't cache at all for a certain domain (not sure if 
thats possible). Why not use something like wget?

-- james

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


Re: Configuration help

2007-07-30 Thread James Quacinella
Stig Sandbeck Mathisen wrote:
 Steven Ciaburri [EMAIL PROTECTED] writes:
   
 See the zope-plone.vcl config which is included, and also available at
 http://varnish.projects.linpro.no/svn/trunk/varnish-cache/etc/zope-plone.vcl

Quick question about that config file:

# We only care about the __ac.* cookies, used for authentication
if (req.http.Cookie  req.http.Cookie ~ 
__ac(|_(name|password|persistent))=) {
pass;
}

Basically, that means if a request comes in with one of those Cookie 
values, its passed to the backend (since if a cookie is given, its 
assumed to be a dynamic page). Would it be possible to do something 
similar but to still cache static images but pass html. I was thinking 
something like req.url ~ *.html but not all html pages end with .html. 
Would it be better to use if (req.url ~ *.(jpg|jpeg|gif)) { lookup } 
or something along those lines.

Anyone every try anything similar?

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


Re: Latest trunk build will not start (rev1586)

2007-06-28 Thread James Quacinella
Dag-Erling Smørgrav wrote:
 In any case, this particular failure is most likely a result of not
 re-running autogen.sh and configure after updating the source tree.
   

Doh!

You're right. I usually do, I'm not sure how I overlooked that. Oh well, 
sorry for the mailing list noise.

Thanks!

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