Web Interface Running slow
-
Our fog web interface is runing slow, any ideas what could be causing it?
-
maybe this helps 8a copy fron the old forum):
The disk pie chart (along with the server stats page) time out and returns Unable to pull server information
The issue: the Fetch function uses the proxy settings provided in the fog settings (otherInfo>Fogsettings) but the storage node is most likely to be on the same LAN (or even the same server) and does not require a proxy sever.
FIX1: configure the proxy server to deal with internal requests.
OR
FIX2: at the very end of /var/www/fog/commons/functions.include.phpreplace these 2 lines
<code>
//Proxy
if($Proxy)
</code>
with:
<code>
//Proxy
$url1 = explode(“/”, $URL);
$noproxyfor = array(“192.168.”, “10.”);
foreach($noproxyfor as $ip) {
if(substr($url1[2], 0, strlen($ip)) == $ip) $Proxy = false;
}
if ($Proxy)
</code>the array is of the IPs of the servers/ranges that you do not wish to proxy. it looks at the start of the hostname for the strings in the array
eg. any host starting with “192.168.” and “10.” so this would include “192.168.1.2” and “10.2.5.7”
feel free to add and edit the values in teh array for your lan/server