diff --git a/backend/init/cache/cache.go b/backend/init/cache/cache.go index 6fe1901dd..4d8dad440 100644 --- a/backend/init/cache/cache.go +++ b/backend/init/cache/cache.go @@ -14,29 +14,29 @@ func Init() { options := badger.Options{ Dir: c, ValueDir: c, - ValueLogFileSize: 102400000, - ValueLogMaxEntries: 100000, + ValueLogFileSize: 64 << 20, + ValueLogMaxEntries: 10 << 20, VLogPercentile: 0.1, - MemTableSize: 64 << 20, + MemTableSize: 32 << 20, BaseTableSize: 2 << 20, BaseLevelSize: 10 << 20, TableSizeMultiplier: 2, LevelSizeMultiplier: 10, MaxLevels: 7, - NumGoroutines: 8, + NumGoroutines: 4, MetricsEnabled: true, - NumCompactors: 4, + NumCompactors: 2, NumLevelZeroTables: 5, NumLevelZeroTablesStall: 15, - NumMemtables: 5, + NumMemtables: 1, BloomFalsePositive: 0.01, - BlockSize: 4 * 1024, + BlockSize: 2 * 1024, SyncWrites: false, NumVersionsToKeep: 1, CompactL0OnClose: false, VerifyValueChecksum: false, - BlockCacheSize: 256 << 20, + BlockCacheSize: 32 << 20, IndexCacheSize: 0, ZSTDCompressionLevel: 1, EncryptionKey: []byte{},