Documentation ¶
Index ¶
Constants ¶
View Source
const ( ShutdownEndpoint string = "/shutdown" DrainEndpoint string = "/drain" HealthEndpoint string = "/healthz" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { // HTTPServePort defines what port the shutdown-manager listens on HTTPServePort int // ShutdownReadyFile is the default file path used in the /shutdown endpoint ShutdownReadyFile string // ShutdownReadyCheckInterval is the polling interval for the file used in the /shutdown endpoint ShutdownReadyCheckInterval time.Duration // CheckDrainInterval defines time delay between polling Envoy for open connections CheckDrainInterval time.Duration // CheckDrainDelay defines time to wait before polling Envoy for open connections CheckDrainDelay time.Duration // StartDrainDelay defines time to wait before draining Envoy connections StartDrainDelay time.Duration // EnvoyAdminAddress specifies envoy's admin url EnvoyAdminAddress string // MinOpenConnections is the number of open connections allowed before performing envoy shutdown MinOpenConnections int }
Manager holds configuration to run the shutdown manager
Click to show internal directories.
Click to hide internal directories.