From fa9270ebe13f5c07b362a2ccc98c6e66be8c00cb Mon Sep 17 00:00:00 2001 From: Gabriel Fukushima Date: Mon, 2 Sep 2024 11:53:04 +1000 Subject: [PATCH] disable compression Signed-off-by: Gabriel Fukushima --- .../teku/storage/server/kvstore/KvStoreConfiguration.java | 4 ++-- .../teku/storage/server/rocksdb/RocksDbInstanceFactory.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/src/main/java/tech/pegasys/teku/storage/server/kvstore/KvStoreConfiguration.java b/storage/src/main/java/tech/pegasys/teku/storage/server/kvstore/KvStoreConfiguration.java index 0da8561cab3..e7aada8d75f 100644 --- a/storage/src/main/java/tech/pegasys/teku/storage/server/kvstore/KvStoreConfiguration.java +++ b/storage/src/main/java/tech/pegasys/teku/storage/server/kvstore/KvStoreConfiguration.java @@ -45,7 +45,7 @@ public class KvStoreConfiguration { public static final int DEFAULT_LEVELDB_BLOCK_SIZE = 4096; - public static final int DEFAULT_LEVELDB_WRITE_BUFFER_SIZE = 4194304; + public static final int DEFAULT_LEVELDB_WRITE_BUFFER_SIZE = 4_194_304; public static final int DEFAULT_LEVELDB_MAX_OPEN_FILES = 1000; @@ -67,7 +67,7 @@ public class KvStoreConfiguration { /** RocksDb Time to roll a log file (1 day = 3600 * 24 seconds) */ public static final long TIME_TO_ROLL_LOG_FILE = 86_400L; - public static final long ROCKSDB_BLOCK_SIZE = 32768; + public static final long ROCKSDB_BLOCK_SIZE = 32_768; /* --------------- Safe to Change Properties ------------ */ diff --git a/storage/src/main/java/tech/pegasys/teku/storage/server/rocksdb/RocksDbInstanceFactory.java b/storage/src/main/java/tech/pegasys/teku/storage/server/rocksdb/RocksDbInstanceFactory.java index 127555bc098..fa0eb0a45d3 100644 --- a/storage/src/main/java/tech/pegasys/teku/storage/server/rocksdb/RocksDbInstanceFactory.java +++ b/storage/src/main/java/tech/pegasys/teku/storage/server/rocksdb/RocksDbInstanceFactory.java @@ -165,7 +165,7 @@ private static DBOptions createDBOptions( private static ColumnFamilyOptions createColumnFamilyOptions( final KvStoreConfiguration configuration, final Cache cache) { return new ColumnFamilyOptions() - .setCompressionType(CompressionType.LZ4_COMPRESSION) + .setCompressionType(CompressionType.NO_COMPRESSION) .setTtl(0) .setTableFormatConfig(createBlockBasedTableConfig(cache)); }