Package

com.twitter.finagle.netty4

param

Permalink

package param

Visibility
  1. Public
  2. All

Type Members

  1. case class TrackWorkerPoolExecutionDelay(enableTracking: Boolean, trackingTaskPeriod: Duration, threadDumpThreshold: Duration) extends Product with Serializable

    Permalink

    Control for tracking execution delay in the worker threads for a listener.

    Control for tracking execution delay in the worker threads for a listener. This is intended to be enabled for perf tracking, and may impact performance as it adds tracking runnables to the event executors. Stats will be written to the stats receiver for the listener under workerpool/deviation_ms. When thread dumping is enabled, all logging is done at the warning level.

    enableTracking

    If true enable thread pause tracking.

    trackingTaskPeriod

    The fixed time scheduling window for the execution delay runnable.

    threadDumpThreshold

    If > 0ms, enable stack dumping of threads when they have been delayed for more than the threshold. Thresholds of < 10ms will not work as expected as the underlying executors do not use high resolution timers.

  2. case class WorkerPool(eventLoopGroup: EventLoopGroup) extends Product with Serializable

    Permalink

    A class eligible for configuring the io.netty.channel.EventLoopGroup used to execute I/O work for finagle clients and servers.

    A class eligible for configuring the io.netty.channel.EventLoopGroup used to execute I/O work for finagle clients and servers. The default is global and shared among clients and servers such that we can inline work on the I/O threads. Modifying the default has performance and instrumentation implications and should only be done so with care. If there is particular work you would like to schedule off the I/O threads, consider scheduling that work on a separate thread pool more granularly (e.g. com.twitter.util.FuturePool is a good tool for this).

Value Members

  1. object TrackWorkerPoolExecutionDelay extends Serializable

    Permalink
  2. object WorkerPool extends Serializable

    Permalink

Ungrouped