config

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CircuitBreakerConfig

type CircuitBreakerConfig struct {
	MaxConnections     uint32
	MaxRequests        uint32
	MaxPendingRequests uint32
	MaxRetries         uint32
}

type EnvoyClusterConfig

type EnvoyClusterConfig struct {
	ConnectTimeoutMs int
	CircuitBreaker   CircuitBreakerConfig
	OutlierDetection OutlierDetectionConfig
}

type EnvoyConfig

type EnvoyConfig struct {
	EnvoyVHostConfig
	EnvoyClusterConfig
}

func LoadDefaultEnvoyConfig

func LoadDefaultEnvoyConfig() (EnvoyConfig, error)

func LoadEnvoyConfig

func LoadEnvoyConfig(configName, configPath string) (EnvoyConfig, error)

type EnvoyVHostConfig

type EnvoyVHostConfig struct {
	RetryConfig RetryConfig
}

type OutlierDetectionConfig

type OutlierDetectionConfig struct {
	BaseEjectionTimeInSeconds          int64
	EjectionSweepIntervalInSeconds     int64
	Consecutive5xx                     uint32
	ConsecutiveGatewayFailure          uint32
	EnforcingConsecutive5xx            uint32
	EnforcingConsecutiveGatewayFailure uint32
	MaxEjectionPercent                 uint32
}

type RetryConfig

type RetryConfig struct {
	RetryOn                       string
	RetryPredicate                string
	NumRetries                    uint32
	HostSelectionMaxRetryAttempts int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL