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

Group tasks by category when search threads > 1 #56

Merged
merged 1 commit into from
Mar 4, 2020

Conversation

msokolov
Copy link
Collaborator

@msokolov msokolov commented Mar 2, 2020

I found that when running with SEARCH_TASKS > 1, "expensive" tasks were stealing threads from "cheap" tasks making results meaningless; basically all tasks would appear to have the same QPS. This change groups the (shuffled, repeated) tasks by category before executing them. There would probably still be a little bit of overlap at the boundaries between one run of tasks and the next, but I see dramatically more repeatable results now

@msokolov msokolov merged commit ffb8c18 into mikemccand:master Mar 4, 2020
@msokolov
Copy link
Collaborator Author

msokolov commented Mar 4, 2020

Um, sorry the relevant configuration here is not the number of SEARCH_TASKS, rather it's setting competitor.concurrentSearches = True so that IndexSearcher uses multiple threads per query

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.

None yet

1 participant