zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: Code to clean up transaction logs needs snapshots before it works?
Date Wed, 14 Aug 2019 15:20:05 GMT
On Wed, Aug 14, 2019 at 5:35 AM Koen De Groote <koen.degroote@limecraft.com>
wrote:

> ...
> I've read that the log files are preallocated. I see them as being 65MB a
> piece.
>

Yes. Preallocation of logs is an important performance trick.

The point is that if a file doesn't change length when you write to it,
then the file attributes don't have to change. Writing file attributes can
be as expensive as writing the data and, in any case, isn't free and it has
forced ordering.

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