S
S
Sergey2016-08-17 10:49:48
MySQL
Sergey, 2016-08-17 10:49:48

How to monitor the load on the web server for each domain?

Good afternoon, there is a server on which about 50 sites hang, the task arose to find out which sites and how much server resources consume (memory, CPU, Internet traffic, as well as the load on mysql) how can you monitor projects, as hosting companies do!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Chernykh, 2016-08-25
@mrmoney

We have created our own php-fpm pool for each web project, this makes it possible to monitor the project in the munin.
Several instances of mysql are running on different ports , a forum database on its own port, a banner spinner on its own, a number of databases that are not heavily loaded on its port - this also makes it possible to assess the load and, in general, quickly find the culprit.
You can spread projects across several virtual machines, but as noted above, this is an overhead in memory and disks. But it's worth it.
Something like this

K
ky0, 2016-08-17
@ky0

Hosting companies do not monitor sites (if they are not located on different instances of web servers and DBMS), but users or virtual machines. Some shareds simply set horse limits, so even with a strong desire to load the server heavily, scripts and requests to the database will be automatically killed by timeout or excess of consumed resources. And those who have VPS do not look at what is happening inside, that is, who generates the load, being limited only by its presence in principle.
In your case, I would separate sites (or groups of sites) into different containers and monitor them separately. Of course, in this case there will be some memory overhead due to the use of several databases and web servers.

V
Vladimir, 2016-08-17
@MechanID

We do not monitor the load of sites or users (on shared servers) - each user in his microcontainer is given a certain amount of CPU / memory / IO in accordance with the tariff and that's it.
The availability of services on the server and the classic CPU load, / memory usage, etc. are monitored, in case of anomalies, we go, look, figure out what and why.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question