forked from cms-dev/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change ES to a batch executor with variable batch size
When the queue is long, the batch size will increase (up to a maximum size) to let the worker increase the throughput at the cost of latency. This change requires many adjustements not only to the executor, but also to the workerpool. This makes it more obvious that the workerpool is not immune to race conditions, especially when checks occur. There is now an additional todo to refactor the code and solve the concurrency problems.
- Loading branch information
1 parent
63f095d
commit 4757518
Showing
4 changed files
with
261 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.