object FailureDetector
Companion object capable of creating a FailureDetector based on parameterized config.
- Alphabetic
- By Inheritance
- FailureDetector
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait Config extends AnyRef
Base type used to identify and configure the FailureDetector.
- case class MockConfig(fn: () => Status) extends Config with Product with Serializable
Indicated to use the com.twitter.finagle.liveness.MockFailureDetector when creating a new detector
- case class Param(param: Config) extends Product with Serializable
Helper class for configuring a FailureDetector within a com.twitter.finagle.Stackable client
- case class ThresholdConfig(minPeriod: Duration = 5.seconds, closeTimeout: Duration = 4.seconds) extends Config with Product with Serializable
Indicated to use the com.twitter.finagle.liveness.ThresholdFailureDetector configured with these values when creating a new detector.
Indicated to use the com.twitter.finagle.liveness.ThresholdFailureDetector configured with these values when creating a new detector.
The default
windowSize
andthreshold
are chosen from examining a representative ping distribution in a Twitter data center. With long tail distribution, we want a reasonably large window size to capture long RTTs in the history. A small threshold makes the detection sensitive to potential failures. There can be a low rate of false positive, which is fine in most production cases with cluster redundancy.closeTimeout
allows a session to be closed when a ping response times out after 4 seconds. This allows sessions to be reestablished when there may be a networking issue, so that it can choose an alternative networking path instead. The default 4 seconds is pretty conservative regarding normal ping RTT.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- case object GlobalFlagConfig extends Config with Product with Serializable
Default config type which tells the FailureDetector to extract config values from the sessionFailureDetector GlobalFlag.
- case object NullConfig extends Config with Product with Serializable
Indicated to use the com.twitter.finagle.liveness.NullFailureDetector when creating a new detector
- case object Param extends Product with Serializable