Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Boost Plugin v1.6 Released
Goto page Previous  1, 2, 3 ... 15, 16, 17, 18, 19, 20  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements
Author Message
TheWitness
Developer


Joined: 14 May 2002
Posts: 9723
Location: MI, USA

PostPosted: Wed Apr 23, 2008 10:27 pm    Post subject: Reply with quote

Thanks for the patch. Time is precious.

TheWitness
Back to top
John77



Joined: 27 May 2008
Posts: 4

PostPosted: Tue May 27, 2008 2:05 am    Post subject: Graphs only showing after a refresh Reply with quote

Hi,
Using 0.8.7b and Plugin architecture 2.1, and boost 1.8 (on xen),

I have now the problem, that if I will show the graphs, the first time, no graphs are displayed, or only some of them.
After a refresh (F5), they are all displayed correctly.

I have the same issue with, and without using boost server.

Can anyone give me a hint?

Many Thanks, John
Back to top
eterzella.r.t
Cacti User


Joined: 25 Oct 2007
Posts: 65

PostPosted: Tue May 27, 2008 8:09 am    Post subject: Reply with quote

I have the same problem !
Back to top
jfarese



Joined: 06 Dec 2006
Posts: 22

PostPosted: Thu Jun 05, 2008 12:21 pm    Post subject: Reply with quote

me three
Back to top
gninja
Cacti User


Joined: 24 Aug 2004
Posts: 291
Location: San Francisco, CA

PostPosted: Mon Jun 09, 2008 2:28 pm    Post subject: Reply with quote

Does the on-demand update not remove the updated entries from the output table?

I'm seeing some errors on the regularly scheduled update, and they all seem to be with graphs that I'm actively watching.
Back to top
driden91



Joined: 20 Jan 2006
Posts: 43

PostPosted: Wed Aug 06, 2008 5:05 pm    Post subject: Reply with quote

I have a question

Actually i have a server with this config :
- one cpu : Intel(R) Xeon(R) CPU 5110 @1.60GHz
- Raid 1 with 2 disk SAS 73G 10K
- 4Gb memory
- debian 2.6.18-5-686-bigmem
- ext3 Filesystem
- cacti 0.8.7b with spine


poller time for this config :

Code:
08/06/2008 11:11:01 PM - SYSTEM STATS: Time:60.1091 Method:spine Processes:4 Threads:8 Hosts:482 HostsPerProcess:121 DataSources:11836 RRDsProcessed:7975
08/06/2008 11:16:11 PM - SYSTEM STATS: Time:69.9353 Method:spine Processes:4 Threads:8 Hosts:482 HostsPerProcess:121 DataSources:11836 RRDsProcessed:7975
08/06/2008 11:21:07 PM - SYSTEM STATS: Time:66.1690 Method:spine Processes:4 Threads:8 Hosts:482 HostsPerProcess:121 DataSources:11836 RRDsProcessed:7975



there are 10 a person connected cacti continuously and simultaneously.
these people find that the display of graphs cacti is slow.

So i think change the server for :
- 2 * Intel(R) Xeon(R) CPU 5160 @3.00GHz
- Raid 10 with 4 disk SAS 15K
- 8Gb Memory
- debian 2.6.24-etchnhalf.1-amd64
- reiserfs file System
- cacti 0.8.7b with spine


your opinion cacti performance will improve significantly on ?

Is there a real interest in using the boost plugin for caching images?

have you got an idea for ameliorate the performance ?

thanks

(sorry for my english, i'm french)
Back to top
dononeil
Cacti User


Joined: 06 Aug 2008
Posts: 64

PostPosted: Thu Aug 14, 2008 3:59 pm    Post subject: Reply with quote

I just installed v1.8 on my test and production cacti boxes.... on both boxes if I enable boost the charts stop updating. I'm running spine on the production box, and the php poller on the test box.

here is a screen shot of the graphic... you can see the gaps where boost was enabled, then disabled for a few minutes, then re-enabled.

I'm running 8.7b on SLES 10.2, and here are my boost settings (tried tweaking all sorts):

Enable on Demabd RRD Updating - set
Base time: 12:00am
How Often: 6 Hours
Max Records 1000000
Max Recoreds per pass 500,000 (tried 50,000)
Max Insert String - 64000
Update String length - 8192 (tried 2048)
Max RRD Update Time - 1 Hour
Enable Image Caching - Enabled



boost.JPG
 Description:
 Filesize:  32.83 KB
 Viewed:  900 Time(s)

boost.JPG


Back to top
Chrysalis



Joined: 19 Sep 2008
Posts: 9
Location: UK

PostPosted: Fri Sep 19, 2008 1:48 pm    Post subject: Reply with quote

Hi.

I too had lots of problems with this plugin listed below.

With boost on demand enabled, The graphs stopped plotting data and were been generated with all 0 readings basically, only with timestamps been updated. After a while it got slower and slower loading graph pages with it taking 30 seconds to generate each graph in the browser. Various errors in the cacti log showing the process hitting resource limits and processing 100s of thousands of rrd records. (I only got 8 graphs).

Then turned off the on demand and only had caching enabled for the cached images, this made the graphs plot again and display fast in browser, however every polling interval a php process started owned by cacti and used max cpu until the php execution killed it (set to 5 minutes), in the log errors showing boost had hit resource limits but at least my graphs were been plotted again, why was the boost running with on demand disabled?

I then updated from svn trunk. Then immediatly in the logs I see a very fast boost run of only 58 records and done in a very short time, more like it, and every poll interval no longer generates the red line errors.

Seems the trunk files need to be put in a tarball for a 1.8 version as 1.7 is messy.
Back to top
dononeil
Cacti User


Joined: 06 Aug 2008
Posts: 64

PostPosted: Fri Sep 19, 2008 2:14 pm    Post subject: Reply with quote

Where is the boost SVN located?
Back to top
cd



Joined: 17 Aug 2007
Posts: 14

PostPosted: Tue Sep 23, 2008 6:07 am    Post subject: Reply with quote

svn://cvs.cacti.net/var/svnroot/cacti_plugins
Back to top
khufure
Cacti User


Joined: 24 Oct 2007
Posts: 153
Location: San Francisco, CA

PostPosted: Wed Sep 24, 2008 2:19 pm    Post subject: Reply with quote

I've just implemented boost on a few of our cacti servers. Even with a development Cacti server, spotting all the problems can be difficult. A few tips:

- Use the SVN version or suffer horrible pain.
- Performance gain is very, very noticeable. Boost is awesome. One of our servers was struggling under the load of ~30,000 RRDs. That same server now comfortably supports 35,000 RRDs with many features still not optimized.
- Be sure the mysql user you are using has DROP TABLE rights. This is not mentioned anywhere in the docs and should be. Without the proper auth rights you will know pain. It needs the auth for rcaston_<random> tables it creates.
- Boost 'multiprocesser' needs to be disabled by default. Boost server failed over and over again with it enabled. Note: I didn't test rrdupdate as I didn't want to introduce more changes than was necessary.
- This plug-in is not for the faint of heart. Expect problems for the first day or two.

Some tips:

A simple shell script to make sure Boost server stays up if it crashes:

/etc/crontab:
# Make sure the Boost poller is running
*/2 * * * * root /usr/local/bin/cacti_rrdsvc

(not to be confused with /etc/init.d/ version)

-bash-3.00$ ls -lat /usr/local/bin/cacti_rrdsvc
-rwxr-xr-x 1 root root 207 Sep 24 03:58 /usr/local/bin/cacti_rrdsvc
#!/bin/sh
# Check to make sure cacti_rrdsvc is running

export RUNCHECK=`netstat -anp | grep 9050 | grep LISTEN | grep -v grep | wc -l`
if [ "$RUNCHECK" -lt "1" ]; then
/etc/init.d/cacti_rrdsvc restart
fi

When you first implement boost it may be worth it to cron a job to
(Modify the interval to your liking)

<Cacti user cron, e.g. /var/spool/cron/cacti or crontab -e -u cacti>
# boost - force update to disk every 30 minutes
15 * * * * /usr/bin/php -q /$pathto/cacti/plugins/boost/poller_boost.php -f -d > /dev/null 2>&1

I kept this cron entry installed as a safety measure.
Back to top
dononeil
Cacti User


Joined: 06 Aug 2008
Posts: 64

PostPosted: Wed Sep 24, 2008 2:37 pm    Post subject: Reply with quote

The SVN version in trunk is listed as 1.7.... is this the latest official version that works?
Back to top
khufure
Cacti User


Joined: 24 Oct 2007
Posts: 153
Location: San Francisco, CA

PostPosted: Wed Sep 24, 2008 3:16 pm    Post subject: Reply with quote

dononeil wrote:
The SVN version in trunk is listed as 1.7.... is this the latest official version that works?


The latest official version doesn't work right. People have been using SVN which contains some patches and fixed the latest official version doesn't have.

It's overdue for a new release, but Witness is really busy, probably with integrating everything nicely into .9 .
Back to top
dononeil
Cacti User


Joined: 06 Aug 2008
Posts: 64

PostPosted: Thu Sep 25, 2008 6:58 pm    Post subject: Reply with quote

Ok... I've tried using the SVN version of boost and I'm still having problems.

I've verified that my DB user has full permissions.

I imported the correct SQL stuff

I have this in my crontab:
* * * * * php -q /www/cactitest/plugins/boost/poller_boost.php -f -d > /dev/null 2>&1

I copied the other php scripts into my lib folder

I have the settings for boost set like the attached pic.

The second pic is what I get when I graph...

What am I doing wrong?

My web server has write perms on the rrd files, so I don't need to run the 'server'.



untitled.PNG
 Description:
 Filesize:  21.37 KB
 Viewed:  490 Time(s)

untitled.PNG



boost settings.PNG
 Description:
 Filesize:  68.69 KB
 Viewed:  490 Time(s)

boost settings.PNG


Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9723
Location: MI, USA

PostPosted: Thu Sep 25, 2008 7:35 pm    Post subject: Reply with quote

It could be that your database needs to be tuned. What happens when you run the poller boost at the shell? Have you considered outputing STDOUT and STDERR to a text file from the cron entry? Is the poller_output_boost table loaded?

TheWitness
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements All times are GMT - 5 Hours
Goto page Previous  1, 2, 3 ... 15, 16, 17, 18, 19, 20  Next
Page 16 of 20

 



Powered by phpBB © 2001, 2005 phpBB Group