Ticket #444 (closed enhancement: fixed)

Opened 5 years ago

Last modified 3 months ago

RRD performance problems (updated)

Reported by: janl Assigned to: snide
Priority: normal Milestone: Munin 2.0
Component: design Version:
Severity: normal Keywords:
Cc:

Description (Last modified by janl)

Any reasonably sized university installation of munin will suffer performance problems. If they can get munin-update to complete it's run in 5 minutes it still takes some I/O to update ~26000 rrd files.

Rrd 1.4 (1.3?) introduces a rrdcache daemon which collects updates in memory until they are needed on disk (at graph time, and munin-limits time). This consolidated the updates to disk. We must optimize to use this properly.

Another consolidation that would be to store all datasieres values from a plugin into one rrd file as detailed in a comment on this ticket.

Guessing this is suitable for 3.0.

Change History

11/17/06 23:44:01 changed by janl

  • owner changed from nobody to janl.
  • status changed from new to assigned.
  • milestone changed from Munin 1.6 to Munin 1.4.

09/26/07 11:57:16 changed by janl

Noting: - rrd 1.3.late has MMAP based io, doubling update speeds - our munin-cgi-graph script is getting pretty nifty, maybe we can switch to on-demand graphing?

02/27/09 13:06:54 changed by janl

  • owner changed from janl to kjellm.
  • status changed from assigned to new.

10/20/09 17:35:44 changed by janl

  • milestone changed from Munin 1.4 to Munin 1.5.

10/28/09 16:18:19 changed by janl

  • owner changed from kjellm to janl.
  • status changed from new to assigned.

11/01/09 23:57:36 changed by ligne

RRDtool 1.4 includes rrdcached, which does exactly this: <http://oss.oetiker.ch/rrdtool-trac/wiki/RRDtool14>. probably more sensible than rolling our own. less work, too :-)

02/25/10 01:02:36 changed by snide

  • milestone changed from Munin 1.5 to Z-later.

I'm pushing this one to "later", since it would require extensive work.

Since the main performance contender is the graphing subsystem, the 1.5 will provide a greater on-demand graphing experience and therefore should improve the performance issue.

04/13/10 12:15:05 changed by janl

Before we do this we should consolidate plugin time series to single rrd files. This has better graph performance, and probably also update performance. Jimmy writes:

# one datasource per rrdfile
for i in $(seq -w 1 1000); do rrdtool create single-$i.rrd DS:42:GAUGE:600:U:U RRA:AVERAGE:0.5:1:576 RRA:MIN:0.5:1:576 RRA:MAX:0.5:1:576 RRA:AVERAGE:0.5:6:432 RRA:MIN:0.5:6:432 RRA:MAX:0.5:6:432 RRA:AVERAGE:0.5:24:540 RRA:MIN:0.5:24:540 RRA:MAX:0.5:24:540 RRA:AVERAGE:0.5:288:450 RRA:MIN:0.5:288:450 RRA:MAX:0.5:288:450; done

time for i in $(seq -w 1 1000); do rrdtool update single-$i.rrd N:9492432; done
real    0m10.918s
user    0m4.604s
sys     0m6.440s

# 10 datasources per rrdfile
for i in $(seq -w 1 100); do rrdtool create multi-$i.rrd $(for j in $(seq -w 1 10); do echo -n "DS:$j:GAUGE:600:U:U "; done)  RRA:AVERAGE:0.5:1:576 RRA:MIN:0.5:1:576 RRA:MAX:0.5:1:576 RRA:AVERAGE:0.5:6:432 RRA:MIN:0.5:6:432 RRA:MAX:0.5:6:432 RRA:AVERAGE:0.5:24:540 RRA:MIN:0.5:24:540 RRA:MAX:0.5:24:540 RRA:AVERAGE:0.5:288:450 RRA:MIN:0.5:288:450 RRA:MAX:0.5:288:450; done

time for i in $(seq -w 1 100); do rrdtool update multi-$i.rrd N:9492432:9492432:9492432:9492432:9492432:9492432:9492432:9492432:9492432:9492432; done
real    0m1.178s
user    0m0.508s
sys     0m0.676s

Tenfold better!

01/13/11 18:11:05 changed by jorne

Revision 4083 enables very basic rrdcached support.

The optimizations mentioned by janl are still valid, so they should be included in a future release.

07/13/11 09:16:33 changed by janl

  • summary changed from RRD performance problems to RRD performance problems (updated).
  • description changed.
  • milestone changed from Z-later to Munin 3.0.

I think that rrdcache + cgi graphing takes care of the main issue stated in the original ticket text. Updated the ticket text.

07/13/11 09:17:07 changed by janl

  • owner changed from janl to snide.
  • status changed from assigned to new.

07/13/11 09:23:40 changed by janl

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone changed from Munin 3.0 to Munin 2.0.

... Brian De Wolf has pointed out that consolidating all the dataseries of a plugin into one rrd file makes it problematic to add and delete data fields. If we take away this one thing and add that rrd 1.5 will add a rrd server we think that the optimizations mentioned here become obsolete. Closing the ticket as fixed. Get your 2.0 today! :-)

10/27/11 12:08:45 changed by herzricseotu1972

Anyone who loves motion pictures is prone to love movie downloads, too. The actual fact is that this trend is becoming an enormous one and it is great for individuals who wish to create giant collections with out having to dole out prime dollar or premium home space to do so. How to download video from vimeo are now out there legally from all types of huge film studios and even television networks, as well. A video assortment created digitally has a number of advantages over common disk purchases, too. The most important perks of video downloads contain the storage points and pricing. However, why? Video downloads are generally a few dollars or more less than an everyday DVD purchase because there isn't any packaging issues to contend with. Plus, there's the easy fact delivery is not an issue either. Because the firms that promote downloads save on shipping and the film studios save on packaging, they will go on a few of these savings on to buyers. In regard to storage, it is a easy fact of space. It's a whole lot simpler to store films on a computer drive or a backup drive than it's to carry a hundred videos in a room. There is no want for shelf after shelf or tons of DVD towers when a set is created via video download. Management of movies and tv downloads generally is a entire lot easier, too. It is pretty easy to create folders on the pc to retailer motion pictures by genre and it's a whole lot quicker, too. Video downloads have gotten the favorites of many for a motive beyond storage or pricing. This cause is variety. The fact is the sorts of downloads available might be actually mind boggling. Let's look at what sorts of video downloads might be discovered legally: Hit films Just about every new movie that hits the theaters will end up in a authorized obtain format shortly after release. This implies there is not any must run to the video retailer, or worse, pay high dollar at a theater to see a new release. Television applications Vimeo video downloads Because the movie studios bounce on the bandwagon, so too are the tv studios. Hit exhibits from all many years can be found by the season or by the episode through video download.Classics As the movie download enterprise becomes extra common, many studios are video through their catalogues and offering downloads of their older movies. From the classics of the Nineteen Twenties to holiday favorites of the Eighties, they'll all be discovered by way of video download. And, if a title cannot be discovered right now, it is doubtless it is going to be added quickly as every main movie studio falls into place providing downloads by way of numerous different sites. Video downloads provide their customers with an on demand facet, price financial savings and storage concern discount that regular DVD buys cannot. As this new format becomes increasingly accepted, it is becoming the method of choice for getting and watching movies. Unique works There are tons of locations to get video downloads from novice or little identified creators. These movies may not have the monetary backing of a few of the major films in historical past, but that does not imply there is not some good leisure out there. Indie works are getting an entire new audience due to video downloads and the Internet.