Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: add an env to enable or disable block cache of an app #795

Closed
ZhongChaoqiang opened this issue Jul 29, 2021 · 0 comments
Closed
Labels
type/enhancement Indicates new feature requests

Comments

@ZhongChaoqiang
Copy link
Contributor

Sometimes, there are some apps of different business in a cluster.Some apps want to enable block cache, others my be not.
So we need add an env to enable or disable block cache of an app.

We control it by fill_cache option of rocksdb::ReadOptions.
If fill_cache is true, when reading data from rocksdb, the data block will be filled into cache.
If fill_cache change to false,the data block will not be filled into cache.But we do not need to clear the block of cached.When block cache is full, the oldest block will be remove by LRU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

2 participants