-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: summary different stages duration #3036
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: summary different stages duration #3036
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
include/pika_conf.h
Outdated
kEnableTime = 5, // enable count and time stats | ||
kOutOfBounds = 6 // N.B. Must always be the last value! | ||
*/ | ||
std::atomic_int rocksdb_perf_level_ = 1; |
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.
rocksdb_perf_level_设置为1 ,是表示disable perf stats的意思吗?
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.
对,这个地方rocksdb默认值是2,我改回去吧。
kEnableCount是统计了一些步骤上的执行次数,没有掐时间。
rocksdb_perf_level_设置为1 ,是表示disable perf stats的意思吗?
|
||
void LIndexCmd::DoUpdateCache() { | ||
if (s_.ok()) { | ||
STAGE_TIMER_GUARD(cache_duration_ms, true); |
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.
这种异步加载cache的命令可以注释一下这里的统计的时间是往队列里面加的时间,不是真正的更新cache的时间
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.
done
d87b970
to
ce829ef
Compare
4b5178a
to
6aa0e6b
Compare
* fix: Reduced ReadCache tags for some commands (#3034) * fix: Fixed an issue with asynchronous loading (#3037) * summary different stages duration && add rocksdb perfcontext (#3036) * fix: The number of element updates in RedisCache is configurable (#3043) * The number of element updates in RedisCache is configurable Co-authored-by: wuxianrong <wuxianrong@360.cn> * fix: fix replication on pika node recovering (#3038) * fix: Fix problems found during testing (#3039) * Example Modify the policy for updating big keys except String to Redis-Cache (#3047) Co-authored-by: wuxianrong <wuxianrong@360.cn> * add auth command to admin-thread-pool (#3048) Co-authored-by: wuxianrong <wuxianrong@360.cn> * fix: Example Repair the subjective and objective offline logic of noeds (#3049) * Example Repair the subjective and objective offline logic of primary and secondary nodes * fix comment --------- Co-authored-by: wuxianrong <wuxianrong@360.cn> * fix: Fixed version information for Pika, Pika_exporter, Codis (#3054) * Fixed version information for Pika, Pika_exporter, Codis * Delete redundant logic --------- Co-authored-by: wuxianrong <wuxianrong@360.cn> * fix: Fixed versions of Pika, Pika_exporter, Codis (#3057) * Resolve conflict differences * Resolve conflict differences * Resolve conflict differences * fix string test * change by review --------- Co-authored-by: wangshao1 <30471730+wangshao1@users.noreply.github.com> Co-authored-by: wuxianrong <wuxianrong@360.cn>
* fix: Reduced ReadCache tags for some commands (OpenAtomFoundation#3034) * fix: Fixed an issue with asynchronous loading (OpenAtomFoundation#3037) * summary different stages duration && add rocksdb perfcontext (OpenAtomFoundation#3036) * fix: The number of element updates in RedisCache is configurable (OpenAtomFoundation#3043) * The number of element updates in RedisCache is configurable Co-authored-by: wuxianrong <wuxianrong@360.cn> * fix: fix replication on pika node recovering (OpenAtomFoundation#3038) * fix: Fix problems found during testing (OpenAtomFoundation#3039) * Example Modify the policy for updating big keys except String to Redis-Cache (OpenAtomFoundation#3047) Co-authored-by: wuxianrong <wuxianrong@360.cn> * add auth command to admin-thread-pool (OpenAtomFoundation#3048) Co-authored-by: wuxianrong <wuxianrong@360.cn> * fix: Example Repair the subjective and objective offline logic of noeds (OpenAtomFoundation#3049) * Example Repair the subjective and objective offline logic of primary and secondary nodes * fix comment --------- Co-authored-by: wuxianrong <wuxianrong@360.cn> * fix: Fixed version information for Pika, Pika_exporter, Codis (OpenAtomFoundation#3054) * Fixed version information for Pika, Pika_exporter, Codis * Delete redundant logic --------- Co-authored-by: wuxianrong <wuxianrong@360.cn> * fix: Fixed versions of Pika, Pika_exporter, Codis (OpenAtomFoundation#3057) * Resolve conflict differences * Resolve conflict differences * Resolve conflict differences * fix string test * change by review --------- Co-authored-by: wangshao1 <30471730+wangshao1@users.noreply.github.com> Co-authored-by: wuxianrong <wuxianrong@360.cn>
…mFoundation#3036) Co-authored-by: wangshaoyi <wangshaoyi@360.cn>
stat different stages cost, including rediscache read/update, write binlog, storage processing time.