Skip to content

Commit

Permalink
[DB] remove min level to compress (#19777)
Browse files Browse the repository at this point in the history
## Description 

Lz4 should be cheap enough to enable on level 1.

## Test plan

PT: looks like disk usage growth at the start is lower, while validator
CPU usage doesn't seem to change.

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
  • Loading branch information
mwtian committed Oct 14, 2024
1 parent db7e232 commit 048381d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/typed-store/src/rocks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2524,7 +2524,6 @@ pub fn default_db_options() -> DBOptions {
opt.set_table_cache_num_shard_bits(10);

// LSM compression settings
opt.set_min_level_to_compress(2);
opt.set_compression_type(rocksdb::DBCompressionType::Lz4);
opt.set_bottommost_compression_type(rocksdb::DBCompressionType::Zstd);
opt.set_bottommost_zstd_max_train_bytes(1024 * 1024, true);
Expand Down

0 comments on commit 048381d

Please sign in to comment.