Open
Description
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:
- We have as many threads as the number of DB connections used.
- Each terminal is just a state that runs on the threads when they are ready to be executed.
Metadata
Assignees
Labels
No labels
Activity