You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@manifoldcf.apache.org by Erlend Garåsen <e....@usit.uio.no> on 2014/09/01 10:20:34 UTC

Cleaning up Zookeeper log and snapshot files

After we switched from FileLockManager to ZooKeeperLockManager, our 
data/synch directory is filled up with a lot of snapshot and log files 
(11 GB). What is the best practice to avoid a full partition on our 
disk? Running LockClean does not seem to clear these files, so should I 
just stop the Agent process and delete the files regularly?

Erlend

Re: Cleaning up Zookeeper log and snapshot files

Posted by Karl Wright <da...@gmail.com>.
Hi Erlend,

You'll have to consult the Zookeeper group's documentation on best
practices in that area.  I do believe there is a "clean" operation you can
run but I don't know what it is.

Thanks,
Karl



On Mon, Sep 1, 2014 at 4:20 AM, Erlend Garåsen <e....@usit.uio.no>
wrote:

>
> After we switched from FileLockManager to ZooKeeperLockManager, our
> data/synch directory is filled up with a lot of snapshot and log files (11
> GB). What is the best practice to avoid a full partition on our disk?
> Running LockClean does not seem to clear these files, so should I just stop
> the Agent process and delete the files regularly?
>
> Erlend
>

Re: Cleaning up Zookeeper log and snapshot files

Posted by Erlend Garåsen <e....@usit.uio.no>.
Thanks!

I will read the Zookeeper documentation properly and try out these settings.

Erlend

On 01.09.14 13:24, lalit jangra wrote:
> Hi Erlend,
>
> You can try these two settings in each of ZK zoo.cfg files.
>
> autopurge.snapRetainCount=3
> autopurge.purgeInterval=1
>
> This way you can keep only 3 snapshots at a time and purging will be
> setup every hour.
>
> Reagrds.
>
>
>
> On Mon, Sep 1, 2014 at 1:50 PM, Erlend Garåsen <e.f.garasen@usit.uio.no
> <ma...@usit.uio.no>> wrote:
>
>
>     After we switched from FileLockManager to ZooKeeperLockManager, our
>     data/synch directory is filled up with a lot of snapshot and log
>     files (11 GB). What is the best practice to avoid a full partition
>     on our disk? Running LockClean does not seem to clear these files,
>     so should I just stop the Agent process and delete the files regularly?
>
>     Erlend
>
>
>
>
> --
> Regards,
> Lalit.


Re: Cleaning up Zookeeper log and snapshot files

Posted by lalit jangra <la...@gmail.com>.
Hi Erlend,

You can try these two settings in each of ZK zoo.cfg files.

autopurge.snapRetainCount=3
autopurge.purgeInterval=1

This way you can keep only 3 snapshots at a time and purging will be setup
every hour.

Reagrds.



On Mon, Sep 1, 2014 at 1:50 PM, Erlend Garåsen <e....@usit.uio.no>
wrote:

>
> After we switched from FileLockManager to ZooKeeperLockManager, our
> data/synch directory is filled up with a lot of snapshot and log files (11
> GB). What is the best practice to avoid a full partition on our disk?
> Running LockClean does not seem to clear these files, so should I just stop
> the Agent process and delete the files regularly?
>
> Erlend
>



-- 
Regards,
Lalit.