zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Junqueira <...@apache.org>
Subject Re: Dealing with old delivered requests in memory
Date Fri, 18 Mar 2016 16:12:08 GMT
Hi Ibrahim,

Are you asking about how we compact old logs? We do it by taking snapshots so that upon recovery,
we only load the latest snapshot and replay the txn log from the snapshot tag. The snapshot
tag is the last zxid committed when we start producing the snapshot.

We don't actually delete anything, though, unless you intentionally turn on auto purge:

https://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#sc_administering <https://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#sc_administering>


> On 18 Mar 2016, at 16:05, ibrahim El-sanosi <ibrahimsabattt@gmail.com> wrote:
> Hi all,
> Assume the Zookeeper have been running for about one year (from 1/1/2015
> until now), how does ZooKeeper deal with old delivered write requests (To
> optimize a memory used) (say from 1/1/2015 to 03/04/2015). I am assuming
> the old delivered request are no longer used.
> On the other words, what strategy ZK does to find and delete unused Znodes?
>  Ibrahim

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