Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Re-change the options for rebuild index batch number #544

Conversation

bright-starry-sky
Copy link
Contributor

I'm so sorry. the configuration file was wrong in the previous PR #540. Let's correct that in this PR.
馃槄

randomJoe211
randomJoe211 previously approved these changes Aug 5, 2021
@critical27
Copy link
Contributor

Hold on for one sec.

@bright-starry-sky
Copy link
Contributor Author

I discussed it with @critical27 , rebuild_index_batch_num is not very effective as the speed limit. added the new option rebuild_index_process_interval for speed limit.

@@ -26,6 +26,9 @@ DEFINE_int32(rebuild_index_batch_num, 256,
DEFINE_int32(rebuild_index_locked_threshold, 256,
"The locked threshold will refuse writing.");

DEFINE_int32(rebuild_index_process_interval, 30000,
Copy link
Contributor

Choose a reason for hiding this comment

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

3ms is enough I think? 30ms means there are 33 request at most for one second.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

3ms is enough I think? 30ms means there are 33 request at most for one second.

good catch. fixed.

Copy link
Contributor

@critical27 critical27 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants