rolling

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRetryCount              = 3
	DefaultCMSQueryIntervalSeconds = 10
	DefaultRestartDurationSeconds  = 60
	DefaultNodesInflight           = 1
	DefaultDelayBetweenRestarts    = time.Second
)
View Source
const (
	RestartTaskPrefix = "rolling-restart-"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Executer added in v0.0.3

type Executer interface {
	Execute() error
}

func NewExecuter added in v0.0.3

func NewExecuter(
	opts *RestartOptions,
	logger *zap.SugaredLogger,
	cmsClient cms.Client,
	discoveryClient discovery.Client,
	rst restarters.Restarter,
) Executer

type MajorToMinors added in v0.0.8

type MajorToMinors map[int]map[int]bool

type RestartOptions added in v0.0.3

type RestartOptions struct {
	options.TargetingOptions

	RestartRetryNumber         int
	CMSQueryInterval           int
	NodesInflight              int
	DelayBetweenRestarts       time.Duration
	SuppressCompatibilityCheck bool
	CleanupOnExit              bool

	RestartDuration int

	SSHArgs []string

	CustomSystemdUnitName string
}

func (*RestartOptions) DefineFlags added in v0.0.3

func (o *RestartOptions) DefineFlags(fs *pflag.FlagSet)

func (*RestartOptions) GetRestartDuration added in v0.0.3

func (o *RestartOptions) GetRestartDuration(nNodes int) *durationpb.Duration

func (*RestartOptions) Validate added in v0.0.3

func (o *RestartOptions) Validate() error

type Rolling

type Rolling struct {
	// contains filtered or unexported fields
}

func (*Rolling) DoRestart

func (r *Rolling) DoRestart(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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