-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add Scannable support for Schedulers/Workers #1050
Labels
type/enhancement
A general enhancement
Milestone
Comments
A few questions:
|
simonbasle
added a commit
that referenced
this issue
Feb 9, 2018
Most Schedulers are capable of reporting their NAME, CAPACITY (degree of parallelism/maximum thread pool size), BUFFERED (number of pending tasks), TERMINATED/CANCELLED (is the scheduler shutdown). Additionally, Workers that keep a link to their Scheduler will report it as their PARENT. Schedulers delegate NAME resolution to their improved toString() method. Added an util method to "scan" an Executor, recognizing ThreadPoolExecutor and extracting info out of it.
simonbasle
added a commit
that referenced
this issue
Feb 9, 2018
simonbasle
added a commit
that referenced
this issue
Feb 12, 2018
simonbasle
added a commit
that referenced
this issue
Feb 12, 2018
The new `Attr` RUN_ON allows operators that take a Scheduler or a Worker (except aliases like `Flux#delayElements`) to report which Scheduler or Worker they run on.
simonbasle
added a commit
that referenced
this issue
Feb 13, 2018
Most Schedulers concrete implementations are capable of reporting their NAME, CAPACITY (degree of parallelism), BUFFERED (number of available workers for parallel/elastic), TERMINATED/CANCELLED (is the scheduler shutdown). Schedulers delegate NAME resolution to their improved `toString()` methods. Parallel and Elastic allow iterating over their backing executors via the `inners()` method from `Scannable`. Most Workers are capable of reporting their NAME (including the name of the parent in some cases, but mostly a toString of their executor), CAPACITY (maximum task queue size or maximum thread pool size), BUFFERED (pending and active task count) and TERMINATED/CANCELLED. Added an util method to "scan" an Executor, recognizing ThreadPoolExecutor and extracting info out of it. All the schedulers that defaulted to a singleThreadExecutor now use an introspectable ThreadPoolExecutor with a maxPoolSize of 1.
simonbasle
added a commit
that referenced
this issue
Feb 13, 2018
The new `Attr` RUN_ON allows operators that take a Scheduler or a Worker (except aliases like `Flux#delayElements`) to report which Scheduler or Worker they run on.
simonbasle
added a commit
that referenced
this issue
Feb 14, 2018
Most Schedulers concrete implementations are capable of reporting their NAME, CAPACITY (degree of parallelism), BUFFERED (number of available workers for parallel/elastic), TERMINATED/CANCELLED (is the scheduler shutdown). Schedulers delegate NAME resolution to their improved `toString()` methods. Parallel and Elastic allow iterating over their backing executors via the `inners()` method from `Scannable`. Most Workers are capable of reporting their NAME (including the name of the parent in some cases, but mostly a toString of their executor), CAPACITY (maximum task queue size or maximum thread pool size), BUFFERED (pending and active task count) and TERMINATED/CANCELLED. Added an util method to "scan" an Executor, recognizing ThreadPoolExecutor and extracting info out of it. All the schedulers that defaulted to a singleThreadExecutor now use an introspectable ThreadPoolExecutor with a maxPoolSize of 1.
simonbasle
added a commit
that referenced
this issue
Feb 14, 2018
The new `Attr` RUN_ON allows operators that take a Scheduler or a Worker (except aliases like `Flux#delayElements`) to report which Scheduler or Worker they run on.
simonbasle
added a commit
that referenced
this issue
Feb 14, 2018
The new `Attr` RUN_ON allows operators that take a Scheduler or a Worker (except aliases like `Flux#delayElements`) to report which Scheduler or Worker they run on.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And link the scannable inside the operators using those.
The text was updated successfully, but these errors were encountered: