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

Improve the threading model of TPC-C #42

Open
psudheer21 opened this issue Jul 27, 2020 · 1 comment
Open

Improve the threading model of TPC-C #42

psudheer21 opened this issue Jul 27, 2020 · 1 comment
Assignees

Comments

@psudheer21
Copy link
Contributor

TPC-C spec allows us to have. maximum of 10 terminals per warehouse. Currently for every terminal created we create a separate thread. This is fine with smaller number of warehouses but even with 1000 warehoues we create about 10k threads. Increasing the warehouses beyond that with one client is unreasonable.

Change the threading model such that:

  1. We have as many threads as the number of DB connections used.
  2. Each terminal is just a state that runs on the threads when they are ready to be executed.
@psudheer21 psudheer21 self-assigned this Jul 27, 2020
@eivanov89
Copy link

Hi @psudheer21

You might want to consider switching to Java's virtual threads.

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

No branches or pull requests

2 participants