pegasus

package module
v0.0.0-...-f73e696 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

README

pegasus-cluster-cli

中文文档

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNodes

func AddNodes(cluster string, deploy deployment.Deployment, nodeNames []string) error

AddNodes implements the add-node command.

func RemoveNode

func RemoveNode(cluster string, deploy deployment.Deployment, metaList string, node string) error

Types

type Downgrader

type Downgrader interface {
	Downgrade(node *util.PegasusNode) error
}

Downgrader safely and gracefully downgrades all replicas on this node.

NOTE: It adds a level of abstraction between rolling-update/remove_node and MetaServer, so that we can mock this step, without mocking Meta.

type Updater

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

func PrepareRollingUpdate

func PrepareRollingUpdate(cluster string, deploy deployment.Deployment) (*Updater, error)

func (*Updater) FindAndUpdateNode

func (u *Updater) FindAndUpdateNode(nodeName string, jobType deployment.JobType) error

func (*Updater) Finish

func (u *Updater) Finish() error

func (*Updater) UpdateNode

func (u *Updater) UpdateNode(node *deployment.Node) error

rolling-update a single node.

Directories

Path Synopsis
cmd
cluster-cli command
minos command

Jump to

Keyboard shortcuts

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