Documentation ¶
Index ¶
- Constants
- type Executer
- type RestartOptions
- func (o *RestartOptions) DefineFlags(fs *pflag.FlagSet)
- func (o *RestartOptions) GetAvailabilityMode() Ydb_Maintenance.AvailabilityMode
- func (o *RestartOptions) GetNodeFQDNs() ([]string, error)
- func (o *RestartOptions) GetNodeIds() ([]uint32, error)
- func (o *RestartOptions) GetRestartDuration() *durationpb.Duration
- func (o *RestartOptions) Validate() error
- type Rolling
Constants ¶
View Source
const ( DefaultRetryCount = 3 DefaultRestartDurationSeconds = 60 DefaultCMSQueryIntervalSeconds = 10 )
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 RestartOptions ¶ added in v0.0.3
type RestartOptions struct { AvailabilityMode string Hosts []string ExcludeHosts []string RestartDuration int RestartRetryNumber int Version string CMSQueryInterval int StartedTime *options.StartedTime VersionSpec options.VersionSpec Continue bool Storage bool Tenant bool TenantList []string SSHArgs []string CustomSystemdUnitName string KubeconfigPath string K8sNamespace string MaxStaticNodeId int }
func (*RestartOptions) DefineFlags ¶ added in v0.0.3
func (o *RestartOptions) DefineFlags(fs *pflag.FlagSet)
func (*RestartOptions) GetAvailabilityMode ¶ added in v0.0.3
func (o *RestartOptions) GetAvailabilityMode() Ydb_Maintenance.AvailabilityMode
func (*RestartOptions) GetNodeFQDNs ¶ added in v0.0.3
func (o *RestartOptions) GetNodeFQDNs() ([]string, error)
func (*RestartOptions) GetNodeIds ¶ added in v0.0.3
func (o *RestartOptions) GetNodeIds() ([]uint32, error)
func (*RestartOptions) GetRestartDuration ¶ added in v0.0.3
func (o *RestartOptions) GetRestartDuration() *durationpb.Duration
func (*RestartOptions) Validate ¶ added in v0.0.3
func (o *RestartOptions) Validate() error
Click to show internal directories.
Click to hide internal directories.