[
https://issues.apache.org/jira/browse/ZOOKEEPER-3179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16664261#comment-16664261
]
Fangmin Lv commented on ZOOKEEPER-3179:
---------------------------------------
[~hanm] That's a good idea, I'm trying to see what's the benefit of offload
compressions, ZK is not CPU intensive, so usually compression/decompression
won't be a problem, offload to dedicated hardware which has more powerful
computation will make this faster though.
> Add snapshot compression to reduce the disk IO
> ----------------------------------------------
>
> Key: ZOOKEEPER-3179
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3179
> Project: ZooKeeper
> Issue Type: Improvement
> Reporter: Fangmin Lv
> Priority: Major
> Fix For: 3.6.0
>
>
> When the snapshot becomes larger, the periodically snapshot after certain
> number of txns will be more expensive. Which will in turn affect the maximum
> throughput we can support within SLA, because of the disk contention between
> snapshot and txn when they're on the same drive.
>
> With compression like zstd/snappy/gzip, the actual snapshot size could be
> much smaller, the compress ratio depends on the actual data. It might make
> the recovery time (loading from disk) faster in some cases, but will take
> longer sometimes because of the extra time used to compress/decompress.
>
> Based on the production traffic, the performance various with different
> compress method as well, that's why we provided different implementations, we
> can select different compress method for different use cases.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)