skipper: github.com/zalando/skipper/filters/circuit Index | Files

package circuit

import "github.com/zalando/skipper/filters/circuit"

Package circuit provides filters to control the circuit breaker settings on the route level.

For detailed documentation of the circuit breakers, see https://godoc.org/github.com/zalando/skipper/circuit.

Index

Package Files

breaker.go

Constants

const (
    ConsecutiveBreakerName = "consecutiveBreaker"
    RateBreakerName        = "rateBreaker"
    DisableBreakerName     = "disableBreaker"
    RouteSettingsKey       = "#circuitbreakersettings"
)

func NewConsecutiveBreaker Uses

func NewConsecutiveBreaker() filters.Spec

NewConsecutiveBreaker creates a filter specification to instantiate consecutiveBreaker() filters.

These filters set a breaker for the current route that open if the backend failures for the route reach a value of N, where N is a mandatory argument of the filter:

consecutiveBreaker(15)

The filter accepts the following optional arguments: timeout (milliseconds or duration string), half-open-requests (integer), idle-ttl (milliseconds or duration string).

func NewDisableBreaker Uses

func NewDisableBreaker() filters.Spec

NewDisableBreaker disables the circuit breaker for a route. It doesn't accept any arguments.

func NewRateBreaker Uses

func NewRateBreaker() filters.Spec

NewRateBreaker creates a filter specification to instantiate rateBreaker() filters.

These filters set a breaker for the current route that open if the backend failures for the route reach a value of N within a window of the last M requests, where N and M are mandatory arguments of the filter:

rateBreaker(30, 300)

The filter accepts the following optional arguments: timeout (milliseconds or duration string), half-open-requests (integer), idle-ttl (milliseconds or duration string).

Package circuit imports 3 packages (graph) and is imported by 10 packages. Updated 2017-07-18. Refresh now. Tools for package owners.