-
Notifications
You must be signed in to change notification settings - Fork 312
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(hotkey): capture data part2 - declare coarse collector #624
Conversation
Better to add the default value in PR description. |
static int get_bucket_id(dsn::string_view data) | ||
{ | ||
size_t hash_value = boost::hash_range(data.begin(), data.end()); | ||
return static_cast<int>(hash_value % FLAGS_data_capture_hash_bucket_num); |
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.
Calculate hash value of every key may be wastly, is it possible to use https://github.com/XiaoMi/rdsn/blob/master/src/dsn.layer2.thrift#L92 directly?
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.
In the current design, it can't get this info
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.
Remember to improve it #628
coarse_data_variance_threshold, | ||
3, | ||
"the threshold of variance calculate to find the outliers"); | ||
|
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.
remove the blank line
the implement of coarse collector
Config changes