Heart beat

Nuno Magalhães nunomagalhaes at eu.ipp.pt
Wed Sep 9 01:22:40 MSD 2009

> Does anyone know how to implement heart beat when using Nginx for load balancing between web servers?

AFAIK heartbeat is just to make sure a daemon is running (and acting
upon the reply), but i'm often wrong.

> Ideally I would like it to work, so that it checks the content for a web page and if that is not correct then the server is dropped out from the load balancer.

So it's kind of like making sure all servers are up to date on their
contents and cache? I don't know about nginx proper, but you could use
cron, wget, some (perl?) scripting... especially if you can target
specific (worker) processes. Otherwise i'm not sure how could you tell
nginx (or other daemons) what "correct content" is.

Just a layman's suggestion...

()  ascii-rubanda kampajno - kontraŭ html-a retpoŝto
/\  ascii ribbon campaign - against html e-mail

More information about the nginx mailing list