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

feat(hotkey): add an interface of hotkey capture #615

Merged
merged 5 commits into from
Oct 13, 2020

Conversation

Smityz
Copy link
Contributor

@Smityz Smityz commented Oct 12, 2020

hotkey capturing is executed in capacity_unit_calculator.
Both capture_raw_key and capture_hash_key have two params: key weight
key: raw_key or hash_key
weight: In some scenarios, some keys will be counted several times, we can capture these keys just one time.

@@ -256,9 +284,11 @@ void capacity_unit_calculator::add_check_and_mutate_cu(
{
int64_t data_size = 0;
int64_t check_and_mutate_bytes = 0;
int64_t key_count = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uint64_t key_count = mutate_list.size();

@Smityz Smityz requested a review from levy5307 October 13, 2020 09:01
@levy5307 levy5307 merged commit 0d3ea55 into apache:master Oct 13, 2020
@Smityz Smityz deleted the hotkey-capture-interface branch October 20, 2020 09:24
@neverchanje neverchanje mentioned this pull request Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants