(LedgerStore) Add compression type (#23578)

This PR adds `--rocksdb-ledger-compression` as a hidden argument to the validator
for specifying the compression algorithm for TransactionStatus.  Available compression
algorithms include `lz4`, `snappy`, `zlib`. The default value is `none`.

Experimental results show that with lz4 compression, we can achieve ~37% size-reduction
on the TransactionStatus column family, or ~8% size-reduction of the ledger store size.
This commit is contained in:
Yueh-Hsuan Chiang
2022-03-22 02:27:09 -07:00
committed by GitHub
parent 49228573f4
commit ae75b1a25f
4 changed files with 133 additions and 15 deletions

View File

@ -358,6 +358,7 @@ mod tests {
..BlockstoreRocksFifoOptions::default()
},
),
..LedgerColumnOptions::default()
},
..BlockstoreOptions::default()
}