cockroachdb / pebble

RocksDB/LevelDB inspired key-value database in Go
BSD 3-Clause "New" or "Revised" License
4.91k stars 455 forks source link

Could the cacheSize of pebble be modified without restart the engine? #2473

Open XiaooLei opened 1 year ago

XiaooLei commented 1 year ago

Hi~ our team have used pebble as the storage engine for our project, we known that we can set the size of cache by setting the Cache option when we start the pebble engine

pebble.Options{
 Cache: pebble.NewCache(cacheSize),
}

We want to know if it's possible to change the size of pebble cache while the engine is running?
Very thanks to the team of Cockroachdb, your work really helped us a lot.

Jira issue: PEBBLE-195

jbowens commented 1 year ago

Sorry, changing the cache size while the engine is open is not supported.

XiaooLei commented 1 year ago

Sorry, changing the cache size while the engine is open is not supported.

OK, thanks for answering