Jump to content

[Solved] Glype High Load Solution


Krydos

Recommended Posts

Glype, and other web proxies, are not illegal on our servers. In fact (without getting too political) the admins at Heliohost strongly encourage the use of proxies, and encryption, and vpns, and tor, and anything else you can use to keep your data transfers on the internet secure. These techniques also reduce the chances of someone (or some government) spying on your communications. The problem is glype and other proxies can cause a LOT of load sometimes, and the server will have no choice but to automatically suspend the account that is causing the abnormally high load in order to return full performance to the thousands of other accounts which share your server. But you can hack glype and other proxy scripts by editing the code to cut out automatically if the server load becomes to high. This should greatly reduce or completely alleviate the chances of your account getting a high load suspension.

 

For glype you can edit index.php and browse.php and add this to the top:

$load_array = explode(" ", file_get_contents("/proc/loadavg"));
$load = $load_array[0];
if ($load > 10) {
  echo "ERROR: Load too high.";
  exit;
}
What this does is looks at the average load of the server over the past minute, and if it is greater than 10 the proxy will just show the error message instead of continuing to raise the server load. The server won't actually start suspending any accounts until you cause the load to exceed 15, but 10 is safer. It *IS* still possible to get suspended for high load even with these edits, because the browse.php script especially can run for quite a while and if the load gets too high while the script is already running you could still get suspended, but it should be a lot less likely. The size of the webpages you're browsing with your web proxy, and the speed of your internet connection is what your suspension chance depends on.

 

By the way, if you do end of getting suspended anyways please don't panic. Just make a post at http://www.helionet.org/index/forum/81-suspended-and-queued-accounts/ or get in contact with us some other way and we'll be happy to help you get it sorted out.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...