zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norbert Kalmar <nkal...@cloudera.com.INVALID>
Subject Re: log files not being cleaned up despite purgeInterval
Date Fri, 19 Jul 2019 09:00:50 GMT
Hi Koen,

It should do just as you said. You can also set autopurge.snapRetainCount,
bu default it is set to 3, so if you didn't set anything it is not a reason
to keep old logs.

As a plan B you could use zkCleanup.sh [snapshotDir] -n 3 to delete all
except the last 3 log files. You can add this to a cron job.

As for why the old log files not getting deleted, could be something
related to the docker image, maybe a permission problem? Do you see any
errors in the server log?


On Thu, Jul 18, 2019 at 9:25 PM Koen De Groote <koen.degroote@limecraft.com>

> Greetings,
> Working with Zookeeper version 3.4.13 in the official docker image.
> I was under the impression that the setting "autopurge.purgeInterval=1"
> meant that log files would be cleaned up every hour.
> Instead, I now find that months of these files are just sitting in their
> directory, untouched.
> So perhaps I'm wrong about that, but I'm not sure.
> What I wish to achieve is that these log files stop accumulating and keep
> only the most recent. Is there a way to achieve this? Or are they merely
> historical and can they be deleted freely?
> Kind regards,
> Koen De Groote

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message