forked from reactor/reactor-core
-
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.
see reactor#1804 Enforce 100K task cap on Schedulers.boundedElastic()
While introducing the singleton version of BoundedElasticScheduler, we might as well make it truly bounded, including in the number of task submissions it can "absorb" during a spike. Used to be unbounded, now bounded to 100K tasks. This is also more likely to uncover problematic scheduling of blocking tasks. Users switching from `elastic()` to `boundedElastic()` and seeing `RejectedExecutionException`s should challenge why their Reactor app schedules so many blocking tasks, and if still legitimate and necessary, use a `newBoundedElastic` instance that is better tuned to their workload. Reviewed-in: reactor#1900
- Loading branch information
1 parent
f705674
commit 32d2a29
Showing
4 changed files
with
79 additions
and
12 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
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