[rrd-users] Re: Still learning

alex at ergens.op.Het.Net alex at ergens.op.Het.Net
Tue Apr 4 14:56:41 MEST 2000


john o'gara wrote:

> As to my knowledge when i create a database with this tool it is for a
> preset timespan with preset dates and times. Say I create a database for
> one year, when the year is up I want to start inserting at the start of
> the database again, how does this wraparound function work as the rows
> at the start are now dated a year previously,

You don't need to worry about the wrapping.  The mechanism inside RRDtool
does all this for you.  You can look at the database as if it was a circle,
like a clock, with a hand that points to the current entry.  Whenever a
new entry has to be created, the hand is moved forward thereby destroying
the oldest value in the database.  This way you will always have the most
recent entry and all previous entries dating upto one year old.

> Please let me know if I'm being painfully stupid

When I find a good reason to do so, I will, trust me :-)

regards,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users



More information about the rrd-users mailing list