Re: Number of cached objects
On Mar 9, 2010, at 9:30 PM, Poul-Henning Kamp wrote: In message c98122ba1003091910y6de964beue598f69b406a9...@mail.gmail.com, Brad Schick writes: Its not clear to which field is the number of cache entries. Perhaps shm_records? You want n_object Thanks. It would be nice if the output of varnishstat -l gave a bit more info. Currently the descriptions aren't really any more descriptive than the field names. I would not likely have guessed the N struct object is the number of cached objects. Also unclear what the difference is between sm, sma, sms, etc. -Brad ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
varnishtop stdin
It would be a nice feature if varnishtop accepted input from stdin, then I could do something like the following to easily get a view on the most missed urls: varnishlog -c -o VCL_call ^miss | varnishtop -i RxUrl I assume I could do this by using varnishlog to write to a file and varnishtop to read it, but then I'd end up with huge files that need cleaning. -Brad ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Log slow responses
Is there a way to get varnishlog to print requests that take over a certain amount of time to complete? My understanding is that ReqEnd contains: XID req_timestamp comp_timestamp idle_time proc_time xmit_time I'd like to print entries that have xmit_time over a certain amount. -Brad ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Maintenance message
On Feb 10, 2010, at 3:04 AM, Reinis Rozitis wrote: I have a varnish server working well, but I'd like to have a standby server that does nothing but server up Sorry we are preforming maintenance. My thought was to write VCL code to check the health of the director, and if that was bad use a different server (something like the example below). But that doesn't work. Any suggestions? Why not use the vcl_error ? Just customize the default html which is included in the sample config and you can have a nice error page without even the need of a extra server. Thanks for the suggestion, but our error page isn't trivial and I don't like the idea of maintaining the site within a varnish configuration file. It actually won't be an extra server, it will just be on a port on the same machine as varnish. But served by a proper http server. -Brad ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Maintenance message
I have a varnish server working well, but I'd like to have a standby server that does nothing but server up Sorry we are preforming maintenance. My thought was to write VCL code to check the health of the director, and if that was bad use a different server (something like the example below). But that doesn't work. Any suggestions? backend web1 { .host = 10.0.0.1; .probe = { .url = /; .window = 5; .threshold = 3; } } backend web2 { .host = 10.0.0.2; .probe = { .url = /; .window = 5; .threshold = 3; } } backend maint { .host = 127.0.0.1; } director cluster round-robin { { .backend = web1; } { .backend = web2; } } sub vcl_recv { if(cluster.healthy){ set req.backend = cluster; } else { set req.backend = maint; } ... } sub vcl_fetch { if(req.backend == maint) { pass; } ... } ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc