RRDCacheD journal cleanup

4 messages Options
Embed this post
Permalink
Sebastian Harl

RRDCacheD journal cleanup

Reply Threaded More More options
Print post
Permalink
Hi Kevin (and list),

It seems that journal files never get removed. Is that on purpose? If
so, is there any "best practice" how to cleanup old files? Keeping them
around would quickly fill up the disk.

TIA,
Sebastian

--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin



_______________________________________________
rrd-developers mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

signature.asc (204 bytes) Download Attachment
kevin brintnall

Re: RRDCacheD journal cleanup

Reply Threaded More More options
Print post
Permalink
On Sat, Sep 26, 2009 at 02:12:11PM +0200, Sebastian Harl wrote:
> Hi Kevin (and list),
>
> It seems that journal files never get removed. Is that on purpose? If
> so, is there any "best practice" how to cleanup old files? Keeping them
> around would quickly fill up the disk.

Sebastian,

journal_set_remove() is called every config_flush_interval for the
2-generations-old journal set.  Journal files older than
2*(config_flush_interval) are removed.

If you bump your syslog up to LOG_DEBUG, you should see the syslog
messages when it's removing files.

--
 kevin brintnall =~ /[hidden email]/


> TIA,
> Sebastian
>
> --
> Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
>
> Those who would give up Essential Liberty to purchase a little Temporary
> Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin
>


_______________________________________________
rrd-developers mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
Sebastian Harl

Re: RRDCacheD journal cleanup

Reply Threaded More More options
Print post
Permalink
Hi Kevin,

On Sat, Sep 26, 2009 at 09:45:03AM -0500, kevin brintnall wrote:
> On Sat, Sep 26, 2009 at 02:12:11PM +0200, Sebastian Harl wrote:
> > It seems that journal files never get removed. Is that on purpose? If
> > so, is there any "best practice" how to cleanup old files? Keeping them
> > around would quickly fill up the disk.
>
> journal_set_remove() is called every config_flush_interval for the
> 2-generations-old journal set.  Journal files older than
> 2*(config_flush_interval) are removed.

IC - thanks. Looks like it does not take care of old files though, i.e.
files left over from a previous rrdcached process. I just did some quick
tests so far without actually using the daemon - guess, I'll have to
have a closer look at that.

Cheers,
Sebastian

--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin



_______________________________________________
rrd-developers mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

signature.asc (204 bytes) Download Attachment
Sebastian Harl

Re: RRDCacheD journal cleanup

Reply Threaded More More options
Print post
Permalink
Hi,

On Sun, Sep 27, 2009 at 10:17:53PM +0200, Sebastian Harl wrote:

> On Sat, Sep 26, 2009 at 09:45:03AM -0500, kevin brintnall wrote:
> > On Sat, Sep 26, 2009 at 02:12:11PM +0200, Sebastian Harl wrote:
> > > It seems that journal files never get removed. Is that on purpose? If
> > > so, is there any "best practice" how to cleanup old files? Keeping them
> > > around would quickly fill up the disk.
> >
> > journal_set_remove() is called every config_flush_interval for the
> > 2-generations-old journal set.  Journal files older than
> > 2*(config_flush_interval) are removed.
>
> IC - thanks. Looks like it does not take care of old files though, i.e.
> files left over from a previous rrdcached process.
FTR: I was wrong about that. The old journal files are added to the
current journal set while they are restored and, thus, they are rotated
and then removed after 2 * config_flush_interval. Sorry for the noise
;-)

Cheers,
Sebastian

--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin



_______________________________________________
rrd-developers mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

signature.asc (204 bytes) Download Attachment