Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are good ways of monitoring server status?

I have a central load balancing server and several application servers running on Apache Tomcat. The load balancing server receives request and forwards them to the application servers in round robin fashion. If one these application servers goes down, the load balancing server should stop forwarding requests to it.

My current solution for this is to ping the application servers every few minutes and if I don't receive a response, remove them from a list of available servers. Is there a better way to monitor the status of these servers? Should I ping more often or should the application servers constantly inform the load balancing server?

like image 249
Sotirios Delimanolis Avatar asked Mar 19 '12 06:03

Sotirios Delimanolis


People also ask

What should you monitor on a server?

“Server monitoring” refers to the task of watching the performance of a server's system resources to avoid exhaustion. The key attributes to watch are CPU usage, memory consumption, I/O, network capacity and activity levels, and disk usage.

What do you monitor as server performance?

Server monitoring is the process of monitoring a server's system resources like CPU Usage, Memory Consumption, I/O, Network, Disk Usage, Process etc. Server Monitoring also helps in capacity planning by understanding the server's system resource usage.


1 Answers

Execute a null transaction on it regularly. Pinging really isn't enough, it only exercises the TCP/IP stack, and I have seen operating systems in states where TCP/IP was up but no applications and not even part of the OS stack itself. Executing a transaction exercises everything. Include the database in the null transaction.

like image 190
user207421 Avatar answered Sep 23 '22 15:09

user207421