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

Introduce session worker threads. #4702

Closed
wants to merge 1 commit into from

Conversation

jakewins
Copy link
Contributor

This decouples request execution from IO threads, resolving several pesky NDP
deadlock issues, as well as opening up doors for performance improvements where
IO threads can focus on request deserialization, and worker threads focus on
query execution.

This design uses one thread per session started, under the assumption that the
average database will deal with <= 10 000 live sessions per database instance.

This should resolve deadlock issues seen on single-cpu systems.

Also, modify JobScheduler to allow dynamically created thread groups, and per-group thread creation strategies.

This decouples request execution from IO threads, resolving several pesky NDP
deadlock issues, as well as opening up doors for performance improvements where
IO threads can focus on request deserialization, and worker threads focus on
query execution.

This design uses one thread per session started, under the assumption that the
average database will deal with <= 10 000 live sessions per database instance.

This should resolve deadlock issues seen on single-cpu systems.
@@ -50,6 +51,12 @@ public JobHandle schedule( Group group, Runnable job )
}

@Override
public JobHandle schedule( Group group, Runnable job, Map<String,String> metadata )
Copy link
Contributor

Choose a reason for hiding this comment

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

How about make schedule( Group, Runnable ) to invoke this one with NO_METADATA?

@jakewins jakewins closed this May 27, 2015
@jakewins jakewins deleted the 2.3-workerthreads branch May 27, 2015 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants