Hi,
I am running Apache as a load balancer in a production environment. I have
set up load balancers using the apache ProxyPassMatch and <Proxy>
directives, e.g.
ProxyPassMatch ^(?i)/Test(.*)$ balancer://testcluster/Test$1
<Proxy balancer://testcluster>
BalancerMember http://10.10.10.1 route=node1
BalancerMember http://10.10.10.2 route=node2
BalancerMember http://10.10.10.3 route=node3
BalancerMember http://10.10.10.4 route=node4
ProxySet lbmethod=byrequests
</Proxy>
All works great, but I wish to monitor the environment more closely. Apache
can mark BalancerMembers as not ok an stop using them, I would like to
know when this happens. I could do this using the following methods:
1) tail the apache error log and alert on problems in there, I can't
however find an appropriate log entry to do this with, even if I could i'm
not sure this is a good solution anyway.
2) grab the apache provided "Load Balancer Manager" page and check if
BalancerMember statuses are not ok.
Does anyone know if there is a nicer way to do the above. And does anyone
have any tips on general realtime monitoring in apache?
Peter
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!