[rrd-developers] Modify step size of existing RRD

Tobias Oetiker tobi at oetiker.ch
Sun Mar 9 18:36:56 CET 2014


Hi Peter,

Yesterday Peter Stamfest wrote:

> Dear List!
>
> I have just pushed a new version of my rrd modify work to
> https://github.com/stamfest/rrdtool-1.x in branch rrdmodify-master.
>
> This is the first "public" version to have support for a reduction of
> the basic RRD step size. Note that there are restrictions about the
> possible new step size: The current step size must be a whole-number
> multiple of the new step size. The modification works by recording the
> new step size and adjusting the pdp count of all existing RRAs. This
> also means, that reducing the step size will most likely only make sense
> if you add a new RRA with a pdp count of 1 so you can take advantage of
> the then higher resolution.
>
> Example:
>
> Given in.rra with step size 300 and initial RRA definitions of
> RRA:AVERAGE:0.5:1:100 and RRA:MAX:0.5:6:1000 the command
>
> rrdtool modify -s 60 in.rrd out.rrd RRA:AVERAGE:0.5:1:250
>
> should result in out.rrd having 3 RRAs with definitions of
> RRA:AVERAGE:0.5:1:250 (just added) and  RRA:AVERAGE:0.5:5:100 and
> RRA:MAX:0.5:30:1000. In addition, the new RRA will have been populated
> using data from the pre-existing AVERAGE RRA.
>
>
> It is not (yet?) possible to increase the step size, mostly because the
> use case is not entirely clear and additional requirements regarding the
> old and new step sizes have to be met.

there are sometimes people who start a database with way to much
data and then later re-consider ...

> Tobi: This should be pull-able... although the travis integration still
> does not work as it should.

merged, and it passed travis! (I had changed your scripts a bit the
other day to make it work).

cheers
tobi


-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
www.oetiker.ch tobi at oetiker.ch +41 62 775 9902



More information about the rrd-developers mailing list