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

Use virtual threads for queries #689

Closed
wants to merge 1 commit into from

Conversation

vthacker
Copy link
Contributor

@vthacker vthacker commented Sep 24, 2023

Summary

Use virtual threads for query execution.

We don't have a way to set an uncaught exception handler ( #419 (comment) for when it was added ) . But I think we don't need it?

This thread pool is only used for queries, and we already catch all Exceptions? https://github.com/slackhq/kaldb/blob/314a4b0409b2812a30b12eee32aed78fd75358ff/kaldb/src/main/java/com/slack/kaldb/chunkManager/ChunkManagerBase.java#L124-L136

Let's take the example of a CACHE node today. We have 200 chunks that we load onto it in production which means a single query creates 200 threads. Using virtual threads for this can be beneficial.

Once we get this merged, we might want to revisit the number of parallel chunks we can search today. CPU/2 seems low but I know we did some testing back in the day to come up with this.

@vthacker vthacker force-pushed the vthacker_use_virtual_threads_for_queries branch from 93ea3a2 to e4712ba Compare September 26, 2023 23:28
@vthacker vthacker marked this pull request as ready for review September 26, 2023 23:28
@bryanlb
Copy link
Contributor

bryanlb commented Oct 19, 2023

Closing as will be superseded by #701

@bryanlb bryanlb closed this Oct 19, 2023
@bryanlb bryanlb deleted the vthacker_use_virtual_threads_for_queries branch August 26, 2024 17:35
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.

2 participants