package fiber_scheduler
- Alphabetic
- By Inheritance
- fiber_scheduler
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final class FiberScheduler extends ForkingScheduler
******************** *** EXPERIMENTAL *** ********************
******************** *** EXPERIMENTAL *** ********************
The Fiber Scheduler uses fibers to implement a high-performance mechanism for the execution of
Future
computations via load balancing, work stealing, and continuation affinity.Fibers are created via the
fork
methods and they continue to be valid even after async boundaries. AllFuture
continuations of a fiber are grouped by execution within the fiber itself. Nested fibers exchange continuations at their boundaries, providing a seamless mechanism to handle thread scheduling ofFuture
computations.This
Scheduler
can be used in parallel to other thread pools but it is also carefully crafted to support all of an application's workload, including blocking and CPU-intensive operations. If enabled with the default configuration,FuturePool
tasks are automatically redirected to the Fiber Scheduler.The adaptive size mechanism automatically adapts the number of worker threads to achieve peak throughput and avoid known Aurora limits like CPU throttling and container memory usage.
- final class FiberSchedulerService extends FinagleSchedulerService
Service-loaded implementation used by
FinagleScheduler
to allow users to enable the Fiber Scheduler using the flagcom.twitter.finagle.exp.scheduler
.
Value Members
- object FiberScheduler
- object FiberSchedulerOptimizer
Creates an
Optimizer
with the necessary configuration to support aFiberScheduler
.