From e97b62cf678b2231eece475efd5e025389b7c724 Mon Sep 17 00:00:00 2001 From: "zhenshan.cao" Date: Wed, 13 Oct 2021 20:28:34 +0800 Subject: [PATCH] Change RocksDBLRUCache size to 0 (#9820) Signed-off-by: zhenshan.cao --- internal/kv/rocksdb/rocksdb_kv.go | 2 +- internal/util/rocksmq/server/rocksmq/rocksmq_impl.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/kv/rocksdb/rocksdb_kv.go b/internal/kv/rocksdb/rocksdb_kv.go index e0d30aa2ca..cc45da258e 100644 --- a/internal/kv/rocksdb/rocksdb_kv.go +++ b/internal/kv/rocksdb/rocksdb_kv.go @@ -29,7 +29,7 @@ type RocksdbKV struct { const ( // LRUCacheSize is the lru cache size of rocksdb, default 3 << 30 - LRUCacheSize = 512 * 1024 * 1024 + LRUCacheSize = 0 ) // NewRocksdbKV returns a rockskv object diff --git a/internal/util/rocksmq/server/rocksmq/rocksmq_impl.go b/internal/util/rocksmq/server/rocksmq/rocksmq_impl.go index 86f6db15e2..78c0cf044a 100644 --- a/internal/util/rocksmq/server/rocksmq/rocksmq_impl.go +++ b/internal/util/rocksmq/server/rocksmq/rocksmq_impl.go @@ -38,7 +38,7 @@ var RocksmqPageSize int64 = 2 << 30 const ( DefaultMessageID = "-1" FixedChannelNameLen = 320 - RocksDBLRUCacheCapacity = 512 * 1024 * 1024 + RocksDBLRUCacheCapacity = 0 kvSuffix = "_meta_kv"