component

package
v0.1.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataNode = "datanode"
	Frontend = "frontend"
	MetaSrv  = "metasrv"
	Etcd     = "etcd"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BareMetalCluster

type BareMetalCluster struct {
	MetaSrv  BareMetalClusterComponent
	Datanode BareMetalClusterComponent
	Frontend BareMetalClusterComponent
	Etcd     BareMetalClusterComponent
}

BareMetalCluster describes all the components need to be deployed under bare-metal mode.

func NewBareMetalCluster

func NewBareMetalCluster(config *config.Cluster, workingDirs WorkingDirs,
	wg *sync.WaitGroup, logger logger.Logger) *BareMetalCluster

type BareMetalClusterComponent

type BareMetalClusterComponent interface {
	// Start starts cluster component by executing binary.
	Start(ctx context.Context, binary string) error

	// BuildArgs build up args for cluster component.
	BuildArgs(ctx context.Context, params ...interface{}) []string

	// IsRunning returns the status of current cluster component.
	IsRunning(ctx context.Context) bool

	// Delete deletes resources that allocated in the system for current component.
	Delete(ctx context.Context, option DeleteOptions) error

	// Name return the name of component.
	Name() string
}

BareMetalClusterComponent is the basic unit of running GreptimeDB Cluster in bare-metal mode.

type DeleteOptions

type DeleteOptions struct {
	RetainLogs bool
}

type RunOptions

type RunOptions struct {
	Binary string
	Name   string
	// contains filtered or unexported fields
}

type WorkingDirs

type WorkingDirs struct {
	DataDir string `yaml:"dataDir"`
	LogsDir string `yaml:"logsDir"`
	PidsDir string `yaml:"pidsDir"`
}

WorkingDirs include all the dirs used in bare-metal mode.

Jump to

Keyboard shortcuts

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