When i comment the following lines in /usr/bin/colplot, colplot index page is
displayed instantaneously.
findFiles(3, $mycfg, $pparams, "$dir$sep*", undef) ||
error("No plottable files match your selection criteria. Are your dir
and/or file protections right?");
I guess i could live with index page displaying the hardcoded with
"fdate=>20010101, tdate=>29991231", it means front page is quick. One could
always click on "List Dir" to display the files if they wanted to know, but
there is no benefit in slowing down the landing page of colplot. But then,
colplot by default only displays current local servers files, and collectl is
configured by default to store only last 7 days files unless one change
retention policy in /etc/collectl.conf.
I have changed the default PlotDir in /etc/colplot.conf to my NFS share which
is holding plot'able files from lots of servers for lots of days (actually no
deletion at all, as i want to maintain the history). So searching through all
the files to find first and last days file name was taking 4-5 secs and slowing
down landing page. It would have only got slower and slower, as number of files
would increase over time. So, i have changed /usr/bin/colplot to command out
above two files.
On all my servers, I have also changed the default radio button selection to
Last 60 minutes, as some of the user forget to check that and end up trying to
generate graphs for entire history. So i would rather let them change the
period from default of last 60 minutes to something longer instead of
defaulting to entire history.
I wonder whether it would be worthwhile having following as the configuration
options
Default timeframe, whether it should be fixed timeframe or floating timeframe.
Enable/Disable searching through files to find first/last day of available
history.
Regards,
Vishal Gupta
http://blog.vishalgupta.com
-----Original Message-----
From: Vishal Gupta <[email protected]>
Subject: colplot - Slow index.cgi
Date: 20 October 2012 16:51:54 BST
To: "[email protected]"
<[email protected]>, Mark Seger <[email protected]>
Mark,
When i consolidate plot'able collectl output files from lots (currently 88) of
servers into a single NFS mount, with lot of all the history files in the same
directory. ColPlot's index.cgi take a long time to display the input parameter
page. Is it because it tries to calculate the minimum and maximum date range
and with lots of files over NFS, it takes a while to do directory listing? Is
there a switch or configuration parameter in colplot.conf which can be set to
quickly display the index.cgi web server front page?
Regards,
Vishal Gupta
Blog | LinkedIn | Twitter
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Collectl-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/collectl-interest