0

I implemented load balancer in node.js and want to check the availability of my server by healthchecking on regular interval.

Can anyone please suggest any middleware that I can use for node.js or any custom implementation that can be used out for this.

Thanks in advance.

Jvalant
  • 1
  • 2
  • Node.js has HTTP client functionality. You could just use Node to regularly check if your website is up. Would that be what you need? – cgf Nov 26 '14 at 11:13
  • Actually I implemented laod balancer in node.js and I have to check periodically whether servers are up or not.If anyone is down then I have to remove it from the list which I am using for the round robin implementation.It should check it continuously. @cgf can you suggest something on this? – Jvalant Nov 26 '14 at 18:39
  • @cgf yes I used http.get to implement heartbeat check.Thanks for the suggestion. – Jvalant Dec 22 '14 at 23:47
  • sorry, didn't see your second comment there. Glad I could help. You could copy/paste your solution as a comment (as much as possible) and accept is as the correct answer so that others can learn something from it as well. – cgf Dec 23 '14 at 13:03

0 Answers0