If Couchbase key size is greater than RAM quota, how can i move some keys from RAM to disk

StackOverflow https://stackoverflow.com/questions/23259959

  •  08-07-2023
  •  | 
  •  

for example; i have a huge data want to save in a bucket, all keys's size is 4G ,and the bucket's RAM quota is 3G, now can i save the huge data in the bucket, is there have some method that some keys did not fit in RAM will overflow to disk, and how can i do it

有帮助吗?

解决方案

This isn't possible (as of Couchbase 2.5.1). Currently, metadata (including the key) has to be held in RAM, to allow client requests to be able to quickly determine if a key exists.

Therefore in your example you wouldn't be able to store more than 3GB of keys (the bucket quota). Note even then you'd have no RAM left for actual document values, as they would always have to be read from disk.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top