-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: add more cache info #2797
feat: add more cache info #2797
Conversation
list redis cache and block cache of rocksdb on info data
WalkthroughThe recent updates primarily involve the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- src/pika_admin.cc (3 hunks)
- src/storage/include/storage/storage.h (1 hunks)
Files skipped from review due to trivial changes (1)
- src/storage/include/storage/storage.h
Additional comments not posted (8)
src/pika_admin.cc (8)
1261-1261
: Initializetotal_redis_cache_usage
variable.The variable
total_redis_cache_usage
is initialized to track the total Redis cache usage.
1262-1262
: Initializetotal_block_cache_usage
variable.The variable
total_block_cache_usage
is initialized to track the total block cache usage.
1265-1266
: Initializeredis_cache_usage
andblock_cache_usage
variables.These variables are initialized to track the Redis and block cache usage for each database.
1277-1277
: Retrieve block cache usage.The block cache usage is retrieved using
PROPERTY_TYPE_ROCKSDB_BlOCK_CACHE_USAGE
.
1279-1279
: Retrieve Redis cache usage.The Redis cache usage is retrieved from the database's cache info.
1283-1284
: Accumulate block cache and Redis cache usages.The total block cache and Redis cache usages are accumulated for all databases.
1294-1295
: Include cache usages in memory metrics.The total memory usage now includes the Redis and block cache usages, and these metrics are incorporated into the output stream.
1298-1299
: Output cache usage metrics.The Redis and block cache usages are included in the output stream.
list redis cache and block cache of rocksdb on info data
list redis cache and block cache of rocksdb on info data
list redis cache and block cache of rocksdb on info data
list redis cache and block cache of rocksdb on info data
used memory caculate blockcache && rediscache
and list redis cache and block cache in new line
Summary by CodeRabbit
New Features
Bug Fixes