Documentation
¶
Index ¶
- func BuildNormalGrafanaDeployDir(topology *types.ClusterRequestTopology) string
- func BuildNormalPrometheusDataDir(topology *types.ClusterRequestTopology) string
- func BuildNormalPrometheusDeployDir(topology *types.ClusterRequestTopology) string
- func CleanClusterData(name string) error
- func DestroyCluster(name string) error
- func PDDataPath(volumePath string) string
- func PDDeployPath(volumePath string) string
- func StartCluster(name string) error
- func StopCluster(name string) error
- func TiDBDeployPath(volumePath string) string
- func TiKVDataPath(volumePath string) string
- func TiKVDeployPath(volumePath string) string
- func TryScaleIn(name string, r *types.Resource, component string) error
- func TryScaleOut(name string, r *types.Resource, component string) error
- type Topology
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 PDDeployPath ¶
PDDeployPath builds tidb deploy path
func TiDBDeployPath ¶
TiDBDeployPath builds tidb deploy path
func TiKVDataPath ¶
TiKVDataPath builds tidb deploy path
func TiKVDeployPath ¶
TiKVDeployPath builds tidb deploy path
func TryScaleIn ¶
TryScaleIn ...
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 ...
Click to show internal directories.
Click to hide internal directories.