Script or Utility to find high peaking user on shared hosting

Posted on 2011-10-03
Last Modified: 2012-08-13
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.
Question by:royandre
    LVL 77

    Accepted Solution

    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.
    LVL 31

    Expert Comment

    by:James Murrell
    This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    This article will show the steps for installing Python on Ubuntu Operating System. I have created a virtual machine with Ubuntu Operating system 8.10 and this installing process also works with upgraded version of Ubuntu OS. For installing Py…
    Sequence is something that used to store data in it in very simple words. Let us just create a list first. To create a list first of all we need to give a name to our list which I have taken as “COURSE” followed by equals sign and finally enclosed …
    Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
    Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now