Customized rras

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
kyosanim
Posts: 37
Joined: Thu Apr 05, 2007 5:33 am

Customized rras

Post by kyosanim »

Hi community,

i created my own customized rras.
can someone please check if my calculating is right or wrong?

Hourly 5 Minute AVG: Step 1 Rows 100 Timespan 14400
Daily 5 Minute AVG: Step 1 Rows 600 Timespan 86400
Weekly 5 Minute AVG:Step 6 Rows 11520 Timespan 604800
Monthly 2 Hour AVG: Step 24 Rows 775 Timespan 2678400
Yearly 12 Hour AVG: Step 114 Rows 1594 Timespan 33053184

my calculation is based on gandalfs example in the cacti-doku.

thanks
noflies
Cacti User
Posts: 83
Joined: Sun Dec 18, 2005 9:30 am

Post by noflies »

I calcuated the same for all except your HOURLY. Timespan on hourly should be 3600 not 14400.

This assumes there are 31 24-hour days in each month and 382.56 24-hour days in each year. Why the year RRA was setup like this is a mystery to me, but perhaps someone else can shed light on this?? Bueller? Bueller?

BTW: I'm not sure why you'd have so many rows for weekly and so relatively few for other RRAs. If I'm not mistaken the defaults are documented in the cacti manual.
kyosanim
Posts: 37
Joined: Thu Apr 05, 2007 5:33 am

Post by kyosanim »

thanks for your reply...

now i know some of my calculating was totaly wrong :(
i red gandalfs post about "Howto define a very BIG rra without data loss".
and i think i know the trick, now.

Hourly 5 Minute AVG: Step 1 Rows 25 Timespan 3600
Daily 5 Minute AVG: Step 1 Rows 600 Timespan 86400
Weekly 5 Minute AVG:Step 1 Rows 4800 Timespan 604800
Monthly 30 Min AVG: Step 6 Rows 3400 Timespan 2678400
6 Month 2Hour AVG: Step 24 Rows 5100 Timespan 16526592
Yearly 12 Hour AVG: Step 144 Rows 1700 Timespan 33053184

can someone confirm that?
i still don't know why gandalf is calculation a year with 400 days.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

kyosanim wrote:i still don't know why gandalf is calculation a year with 400 days.
Well, it's just about rounding up.
Reinhard
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I wanna store 3 month data with 5 min average (just for zoom not on graph).
Can anybody share me rra values?
noflies
Cacti User
Posts: 83
Joined: Sun Dec 18, 2005 9:30 am

Post by noflies »

TFC wrote:I wanna store 3 month data with 5 min average (just for zoom not on graph).
Can anybody share me rra values?
Is this what you want?

Daily (5 min Avg), store 91 days
xff: 0.5
Steps: 1
Rows: 26208
Timespan: 86400
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

The Timespan value is correct?
Actually what is Timespan :)
İf I am not mistaken timespan defines of graph's horizontal dimension. Right?
So that 86400= 24 hour.
And, what is row actually. Is ıt defines database size?
noflies
Cacti User
Posts: 83
Joined: Sun Dec 18, 2005 9:30 am

Post by noflies »

TFC wrote:The Timespan value is correct?
Actually what is Timespan :)
İf I am not mistaken timespan defines of graph's horizontal dimension. Right?
So that 86400= 24 hour.
And, what is row actually. Is ıt defines database size?
Yes, the TIMESPAN is the "width" of the graph in seconds.
Number of ROW affects the RRD filesize.
ROWS times STEP interval equals total archive seconds.
NOTE step *interval*...to be more precise for the example above)
STEPS = 1
step interval = 300 (seconds)
ROWS = 26208
(1 * 300 * 26,208) = 7,862,400 seconds = 91 days
Last edited by noflies on Fri Mar 21, 2008 7:37 am, edited 1 time in total.
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

perfect answer.
Simple and understandable
;)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests