Maintenance message

2010-02-09 Thread Brad Schick
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).

Re: Maintenance message

2010-02-10 Thread Brad Schick
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

Log slow responses

2010-03-08 Thread Brad Schick
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

Re: Number of cached objects

2010-03-09 Thread Brad Schick
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

varnishtop stdin

2010-03-09 Thread Brad Schick
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