serve healthcheck file locally
Tim Dunphy
bluethundr at gmail.com
Sun Jul 20 16:36:34 CEST 2014
Hey all,
I have a situation that I need to try and solve with varnish. As of now
I'm serving up a website with two varnish nodes being balanced (leastconn)
by an F5. The two varnish nodes then do a client balancing scheme across 3
web servers.
But as of now I'm only running TCP port checks against varnish on 8080. But
the F5 team is unhappy with that solution and say it's not up to their
standards of doing content checks. So what I'd like to be able to do is
have the varnish cache serve a static file locally.
Such that you can do a :
GET http://$(hostname -f):8080/healtcheck.php
And return the contents of that file (which is simply the word 'good').
I've been googling a while and not found any advice on how to server a text
file locally on the varnish server itself.
Is there any way I can do this easily in my VCL?
Thanks!
Tim
--
GPG me!!
gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20140720/681d6241/attachment.html>
More information about the varnish-misc
mailing list