Skip to content

Commit a69263a

Browse files
author
Sourav Maji
committed
[server] Validate block-cache config against system memory
1 parent 0d96921 commit a69263a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clients/da-vinci-client/src/main/java/com/linkedin/davinci/store/rocksdb/RocksDBServerConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,9 @@ public RocksDBServerConfig(VeniceProperties props) {
338338
}
339339

340340
this.rocksDBBlockCacheSizeInBytes =
341-
props.getSizeInBytes(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 16 * 1024 * 1024 * 1024L); // 16GB
341+
props.getSizeInBytes(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 2 * 1024 * 1024 * 1024L); // 2GB
342342
this.rocksDBRMDBlockCacheSizeInBytes =
343-
props.getSizeInBytes(ROCKSDB_RMD_BLOCK_CACHE_SIZE_IN_BYTES, 2 * 1024 * 1024 * 1024L); // 2GB
343+
props.getSizeInBytes(ROCKSDB_RMD_BLOCK_CACHE_SIZE_IN_BYTES, 1 * 1024 * 1024 * 1024L); // 1GB
344344

345345
this.rocksDBBlockCacheImplementation = RocksDBBlockCacheImplementations
346346
.valueOf(props.getString(ROCKSDB_BLOCK_CACHE_IMPLEMENTATION, RocksDBBlockCacheImplementations.LRU.toString()));

0 commit comments

Comments
 (0)