• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • Last Modified:

Script or Utility to find high peaking user on shared hosting

Scenario: We have a shared hosting solution (DirectAdmin, if important to know) with 30-40 clients per server. Every now and then one of the clients gets loads of traffic due to advertisements or of any other reason.

We need a way to fast and efficiently find this client so that we can Suspend or move it over to another server, to not let all the other clients on the same server "hang" due to the fact that all resources (CPU etc) gets overloaded.

We have thought of writing a small script that checks which Apache logfiles are growing fastest, using the META information on the files, and then assume which client that needs to be blocked.

Are there any ready-made solution for this? Or does anyone have any better solution?

We are using pfSense as firewall, and so if we could track them down there that would be even better.
1 Solution
David Johnson, CD, MVPOwnerCommented:
that would not be accurate as one request could be for an item that is a few gigabytes in size, ergo 100 users attempt to download this file you get swamped and only 100 requests, the logfile will not change, and another site with a lot of small files will generate many requests.. Suggest instead of manually moving from one server to another to use load balancing instead.
James MurrellProduct SpecialistCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now