deploy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildNormalGrafanaDeployDir

func BuildNormalGrafanaDeployDir(topology *types.ClusterRequestTopology) string

BuildNormalGrafanaDeployDir builds $root/data/grafana-3000 format path

func BuildNormalPrometheusDataDir

func BuildNormalPrometheusDataDir(topology *types.ClusterRequestTopology) string

BuildNormalPrometheusDataDir builds $root/data/prometheus-8249 format path

func BuildNormalPrometheusDeployDir

func BuildNormalPrometheusDeployDir(topology *types.ClusterRequestTopology) string

BuildNormalPrometheusDeployDir builds $root/deploy/prometheus-8249 format path

func CleanClusterData

func CleanClusterData(name string) error

CleanClusterData ...

func DestroyCluster

func DestroyCluster(name string) error

DestroyCluster ...

func PDDataPath

func PDDataPath(volumePath string) string

PDDataPath builds tidb deploy path

func PDDeployPath

func PDDeployPath(volumePath string) string

PDDeployPath builds tidb deploy path

func StartCluster

func StartCluster(name string) error

StartCluster calls tiup cluster start xxx

func StopCluster

func StopCluster(name string) error

StopCluster calls tiup cluster stop xxx

func TiDBDeployPath

func TiDBDeployPath(volumePath string) string

TiDBDeployPath builds tidb deploy path

func TiKVDataPath

func TiKVDataPath(volumePath string) string

TiKVDataPath builds tidb deploy path

func TiKVDeployPath

func TiKVDeployPath(volumePath string) string

TiKVDeployPath builds tidb deploy path

func TryScaleIn

func TryScaleIn(name string, r *types.Resource, component string) error

TryScaleIn ...

func TryScaleOut

func TryScaleOut(name string, r *types.Resource, component string) error

TryScaleOut ...

Types

type Topology

type Topology struct {
	Config            string
	PDServers         map[string]*types.ClusterRequestTopology
	TiKVServers       map[string]*types.ClusterRequestTopology
	TiDBServers       map[string]*types.ClusterRequestTopology
	PrometheusServers map[string]*types.ClusterRequestTopology
	GrafanaServers    map[string]*types.ClusterRequestTopology
}

Topology ...

func TryDeployCluster

func TryDeployCluster(name string,
	resources []*types.Resource,
	rris []*types.ResourceRequestItem,
	cr *types.ClusterRequest,
	crts []*types.ClusterRequestTopology) (*Topology, error)

TryDeployCluster ...

Jump to

Keyboard shortcuts

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