Re: http purge help
Stig Sandbeck Mathisen <[EMAIL PROTECTED]> writes: > * http://www.example.com/KjempeStortPinnsvin > > PURGE / HTTP/1.1 > Host: www.example.com I'm not at my best after just one cup of coffee, sory. This should be: PURGE /KjempeStortPinnsvin HTTP/1.1 ...of course. Same with the two others. -- Stig Sandbeck Mathisen, Linpro ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: http purge help
Charlie Farinella <[EMAIL PROTECTED]> writes: > Perhaps we just misunderstand what should be happening. What > exactly will the command 'PURGE /' remove from the cache? We are > trying to empty it. It will purge the document hashed with the host name in the Host: header. If you send a PURGE, you need to send one request per host name for every hostname that can be used to access that page. If you have several hostnames, you will need to purge for instance: * http://www.example.com/KjempeStortPinnsvin PURGE / HTTP/1.1 Host: www.example.com * http://home.example.com/KjempeStortPinnsvin PURGE / HTTP/1.1 Host: home.example.com * http://example.com/KjempeStortPinnsvin PURGE / HTTP/1.1 Host: home.example.com If you add more items to your hash used to store and lookup items in Varnish, this can soon get out of hand. :D Running "varnishlog" will give you lots and lots of details. See http://varnish.projects.linpro.no/wiki/FAQ#HowcanIdebugtherequestsofasingleclient for how to limit the output to just your client. > We need to have web developers have the ability to clear the Varnish > cache. Currently we are doing it for them by telneting to the > Varnish management interface and running 'url.purge *'. We'd like > to protect them (and us) from that if possible. That's a good thought. :D -- Stig Sandbeck Mathisen, Linpro ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Debugging of Child dies under heavy load and empty cache
> spassert(sp->vcl == 0) Well, not really, forgot to == 0.. > I got a ton of these > > start child pid 30356 > Child said (2, 30356): <> > Child said (2, 30356): <> > Child said (2, 30356): <> > Child said (2, 30356): <> > Child said (2, 30356):> > Child said (2, 30356): <> > Child said (2, 30356): << fd = -1, id = 1134, xid = 0,>> > Child said (2, 30356): << client = 81.166.235.84:13142,>> > Child said (2, 30356): << step = STP_DONE,>> > Child said (2, 30356): <<},>> > Cache child died pid=30356 status=0x6 > Clean child > Child cleaned So these are the correct ones. Here is what really happends start child pid 29643 Child said (2, 29643): <> Child said (2, 29643): <> Child said (2, 29643): <> Child said (2, 29643): <> Child said (2, 29643): > Child said (2, 29643): <> Child said (2, 29643): << fd = -1, id = 1926, xid = 790060728,>> Child said (2, 29643): << client = 84.202.232.251:10359,>> Child said (2, 29643): << step = STP_LOOKUP,>> Child said (2, 29643): <<},>> Manager got SIGINT Clean child Child stopping unlink ./vcl.OaGbHZXp.o * Denne fotnoten bekrefter at denne e-postmeldingen ble skannet av MailSweeper og funnet fri for virus. * This footnote confirms that this email message has been swept by MailSweeper for the presence of computer viruses. * ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Debugging of Child dies under heavy load and empty cache
Symtoms: When restarting all frontend varnishes at once they keep crashing (child dies,parent lives) with a frequncy of once every second to maybe once every 50 seconds. After mabye 10-15 minuttes they stop crashing. Running trunk revision 2519 2524. Running with -d -d revealed following Child said (2, 32302): <> Child said (2, 32302): <> Child said (2, 32302): <> Child said (2, 32302): <> Child said (2, 32302): << Condition((sp->vcl) == 0) not true.>> Cache child died pid=32302 status=0x6 Clean child Child cleaned By changing AZ(sp->vcl); to spassert(sp->vcl == 0) I got a ton of these start child pid 30356 Child said (2, 30356): <> Child said (2, 30356): <> Child said (2, 30356): <> Child said (2, 30356): <> Child said (2, 30356):> Child said (2, 30356): <> Child said (2, 30356): << fd = -1, id = 1134, xid = 0,>> Child said (2, 30356): << client = 81.166.235.84:13142,>> Child said (2, 30356): << step = STP_DONE,>> Child said (2, 30356): <<},>> Cache child died pid=30356 status=0x6 Clean child Child cleaned * Denne fotnoten bekrefter at denne e-postmeldingen ble skannet av MailSweeper og funnet fri for virus. * This footnote confirms that this email message has been swept by MailSweeper for the presence of computer viruses. * ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Forward client IP address
I'm impressed. Really quick answer. Thank you! Regards On 21 feb 2008, at 13.37, Stig Sandbeck Mathisen wrote: Fredrik Nygren <[EMAIL PROTECTED]> writes: > I'm running Varnish 1.1.2 with Apache at the backend. When I follow > Apaches access logs all incoming clients have the same IP-number, > the IP-number of my Varnish server of course. How do I forward the > IP- number of an incoming request from Varnish to Apaches access > logs? Is it possible? I've added a recipe for this to the FAQ, see http://varnish.projects.linpro.no/wiki/FAQ#HowcanIlogtheclientIPaddressonthebackend (nice long url) -- Stig Sandbeck Mathisen, Linpro ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Forward client IP address
Fredrik Nygren <[EMAIL PROTECTED]> writes: > I'm running Varnish 1.1.2 with Apache at the backend. When I follow > Apaches access logs all incoming clients have the same IP-number, > the IP-number of my Varnish server of course. How do I forward the > IP- number of an incoming request from Varnish to Apaches access > logs? Is it possible? I've added a recipe for this to the FAQ, see http://varnish.projects.linpro.no/wiki/FAQ#HowcanIlogtheclientIPaddressonthebackend (nice long url) -- Stig Sandbeck Mathisen, Linpro ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Forward client IP address
On Thursday 21 February 2008 11:39:30 Fredrik Nygren wrote: > Hi, > I'm running Varnish 1.1.2 with Apache at the backend. When I follow > Apaches access logs all incoming clients have the same IP-number, the > IP-number of my Varnish server of course. How do I forward the IP- > number of an incoming request from Varnish to Apaches access logs? Is > it possible? the originating IP address will be forwarded by varnish to you backend in the X-Forward-for header. search the archives and the net for X-Forward-for and you find (among others) mod_extract_forwarded > > Regards > > > ___ > varnish-misc mailing list > varnish-misc@projects.linpro.no > http://projects.linpro.no/mailman/listinfo/varnish-misc ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Forward client IP address
Hi, I'm running Varnish 1.1.2 with Apache at the backend. When I follow Apaches access logs all incoming clients have the same IP-number, the IP-number of my Varnish server of course. How do I forward the IP- number of an incoming request from Varnish to Apaches access logs? Is it possible? Regards ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc