How to Detect Overselling

Status
Not open for further replies.

l0calh0st

Active Member
4,052
2010
713
0
Hello, this is my way of finding out if webhosts are overselling.

Firstly overselling does not mean too many clients on one server, it means too many domains (websites) hosted on one server.

Assume that the addon websites are popular.

Info 1:
Client A orders hosting from a company that provides a cheap hosting plackage for 2 bucks, that plan has NO limit of addom domains. This means the client can add as much domains as he/she wants.
If this member adds 50 domains/websites then the server will get slow. But who cares? Its an unlimited hosting plan. This company probably dont care about the speed as long as its up lol. :p

Client B orders hosting from a company that provides hosting at the same price but with limited addon domains. Example: max. 3 addons domains.
This means the client can add only 3 domains, so no big deal right?

Info 2:
Check the server load, if possible. Ask for the server specifications as you don't want to be hosted on an intel p4 box :P
Ask for an IP to ping. Just incase.
Ask for datacenter information and do some research about the datacenter.
Ask for a demo. (Not all companies provide this, I understand them. Lot's of people abuse it.)

Info 3:
Get in touch with a client of the company, get a personal review about the server speeds and performance.

This will be improved later, this is just my theory. Hope this helps clients.

Ignore hosts that provide cheap plans with unlimited addon domains.

Over and out.
 
30 comments
I'd say another method would be to :

http://whois.domaintools.com

WHOIS check up an website currently hosted on their web servers. See when clicking server stats, it should say how many websites are hosted on the server. Anything above 50 i'd say is pretty much overselling, so if they do claim to be semi-dedicated, you should check it up with them.
 
good helpful post @ localhost. and i have to agree with FLOW most of the people here go for the cheapest hosting,which in most cases is a nu-host that does end up overselling
 
I'd say another method would be to :

http://whois.domaintools.com

WHOIS check up an website currently hosted on their web servers. See when clicking server stats, it should say how many websites are hosted on the server. Anything above 50 i'd say is pretty much overselling, so if they do claim to be semi-dedicated, you should check it up with them.

Are you saying any "shared" host with more than 50 domain per servers is overselling or only apply to "Semi-Dedicated"?

Its really depend on machine through but 50 domain per shared servers is quite low.
 
this post makes no sense.
if i have 1 million domains on a server, but only 2 of them have traffic how is that overselling?
How are the other 999,998 other domains even doing anything?

Allowing "unlimited" domains, is only a factor, not a major cause of overselling.

That's why you check user's resource usage (cpu/memory/bandwidth, etc).
 
I truely agree with sandino aswell.

You can have many sites that can have traffic but are not high on resources and all. so a server can have more than 10,000 sites on one server and can handle the load just perfectly.

All you need to see for overselling is if the load of the server goes high all the time, but also this can be due to wrong configuration of the server and all.

Thanks & Regards
 
Note that my info is about the Warez world, you all know forums use high resources compared to others. If you disagree open up Dreamweaver and check the main php core of a forum system.

BTW: Thread updated.

EDIT: I'm waiting on you Mr.Happy, you are watching the thread. Spam us with your wise words :P

[SLIDE]http://screensnapr.com/u/l1s4n9.png[/SLIDE]
 
PHP:
<?php
//GET SERVER LOADS
$loadresult = @exec('uptime');
preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/",$loadresult,$avgs);

//GET SERVER UPTIME
$uptime = explode(' up ', $loadresult);
$uptime = explode(',', $uptime[1]);
$uptime = $uptime[0].', '.$uptime[1];
$data .= "Server Load Averages $avgs[1], $avgs[2], $avgs[3] <br />";
$data .= "Server Uptime $uptime";
echo $data;
?>

Upload that to your hosting account and it will tell you the real truth about your hosting.
 
You know l0cal, there are ways you can actually see who's using how much resources, allowing you to... suspend them *GASP*
 
@.mac, Im posted this in the "client" view, and not the server admin view. :P

@Mr.Happy, your code isn't working, I get:
Server Load Averages , ,
Server Uptime ,

I have exec disabled on the server.
 
Again, allowing unlimited addon domains has NOTHING to do with overselling. If a client has a few domains that are heavy on the CPU, it's very easy to detect and suspend it. Not all hosts are morons.

Regarding the script; it's kind of logical that if you have the functions required disabled it won't work, right?
 
@.mac, not every host is so fucking smart as you.
And I'm also not as smart as you, I really don't know why that script isn't working lol.

PHP:
<?php

error_reporting(0);

if (ini_get('disable_functions')) {
    $disabled_funcs=array_map('trim',explode(',',ini_get('disable_functions')));
}

$action=$_GET["action"];

if ($action=="phpinfo") {
    /*
    Uncoment the line below to allow users to view PHP Info for your
    server. This potentially allows access to information a malicious
    user could use to find weaknesses in your server.
    */
    #phpinfo();
} else {
    $users[0]="Unavailable";
    $users[1]="--";
    $loadnow="Unavailable";
    $load15="--";
    $load30="--";
    if (in_array('exec',$disabled_funcs)) {
        $load=file_get_contents("/proc/loadavg");
        $load=explode(' ',$load);
        $loadnow=$load[0];
        $load15=$load[1];
        $load30=$load[2];
    } else {
        $reguptime=trim(exec("uptime"));
        if ($reguptime) {
            if (preg_match("/, *(\d) (users?), .*: (.*), (.*), (.*)/",$reguptime,$uptime)) {
                $users[0]=$uptime[1];
                $users[1]=$uptime[2];
                $loadnow=$uptime[3];
                $load15=$uptime[4];
                $load30=$uptime[5];
            }
        }
    }
    if (in_array('shell_exec',$disabled_funcs)) {
        $uptime_text=file_get_contents("/proc/uptime");
        $uptime=substr($uptime_text,0,strpos($uptime_text," "));
    } else {
        $uptime=shell_exec("cut -d. -f1 /proc/uptime");
    }
    $days=floor($uptime/60/60/24);
    $hours=str_pad($uptime/60/60%24,2,"0",STR_PAD_LEFT);
    $mins=str_pad($uptime/60%60,2,"0",STR_PAD_LEFT);
    $secs=str_pad($uptime%60,2,"0",STR_PAD_LEFT);
    $phpver=phpversion();
    $mysqlver=mysql_get_client_info();
    $zendver=zend_version();
    echo "<load>$loadnow</load>\n";
    echo "<uptime>$days Days $hours:$mins:$secs</uptime>\n";
    echo "<phpver>$phpver</phpver>\n";
    echo "<mysqlver>$mysqlver</mysqlver>\n";
    echo "<zendver>$zendver</zendver>\n";
}

?>

WHMCS?
 
Not trying to be smart, but assuming a host is overselling based on addon domains...

Happy's script won't work if you have exec disabled, and load/uptime in WHMCS's script won't work if you have explode and file_get_contents disabled...
 
Status
Not open for further replies.
Back
Top