Documentation ¶
Index ¶
- func Validate(topo *Topology) error
- type BESpec
- type BeConfig
- type BeInstance
- func (s BeInstance) ConfigDir() string
- func (s BeInstance) EnvironmentVars() map[string]string
- func (s BeInstance) PIDFile() string
- func (s BeInstance) StartupScript() string
- func (s BeInstance) StopScript() string
- func (s BeInstance) SystemdEnvironment() string
- func (s BeInstance) SystemdServiceContent() (string, error)
- func (s BeInstance) SystemdServiceName() string
- func (s BeInstance) SystemdServicePath() string
- type BeStatus
- type ClusterStatus
- type ComponentSpec
- type ComponentType
- type ExecOutput
- type FESpec
- type FeConfig
- type FeInstance
- func (s FeInstance) CheckClusterHealth(ctx context.Context) (bool, error)
- func (s FeInstance) CheckHealth(ctx context.Context) (bool, error)
- func (s FeInstance) ConfigDir() string
- func (s FeInstance) EnvironmentVars() map[string]string
- func (s FeInstance) GetCluserStatus(ctx context.Context) (ClusterStatus, error)
- func (s FeInstance) GetDB(_ context.Context) (*sqlx.DB, error)
- func (s FeInstance) MasterHelper() string
- func (s FeInstance) PIDFile() string
- func (s FeInstance) StartupScript() string
- func (s FeInstance) StopScript() string
- func (s FeInstance) SystemdEnvironment() string
- func (s FeInstance) SystemdServiceContent() (string, error)
- func (s FeInstance) SystemdServiceName() string
- func (s FeInstance) SystemdServicePath() string
- type FeStatus
- type GlobalSpec
- type Instance
- type ManualDeployInfo
- type Topology
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BESpec ¶
type BESpec struct { ComponentSpec `yaml:",inline"` BeConfig BeConfig `yaml:"-"` InstallJava bool `yaml:"install_java"` JavaPackageURL string `yaml:"java_package_url"` JavaDigest digest.Digest `yaml:"java_digest"` PackageURL string `yaml:"package_url"` Digest digest.Digest `yaml:"digest"` }
func (*BESpec) UnmarshalYAML ¶
type BeInstance ¶
func NewBeInstance ¶
func NewBeInstance(topo *Topology, beSpec BESpec) BeInstance
func (BeInstance) ConfigDir ¶
func (s BeInstance) ConfigDir() string
func (BeInstance) EnvironmentVars ¶
func (s BeInstance) EnvironmentVars() map[string]string
func (BeInstance) PIDFile ¶
func (s BeInstance) PIDFile() string
func (BeInstance) StartupScript ¶
func (s BeInstance) StartupScript() string
func (BeInstance) StopScript ¶
func (s BeInstance) StopScript() string
func (BeInstance) SystemdEnvironment ¶
func (s BeInstance) SystemdEnvironment() string
func (BeInstance) SystemdServiceContent ¶
func (s BeInstance) SystemdServiceContent() (string, error)
func (BeInstance) SystemdServiceName ¶
func (s BeInstance) SystemdServiceName() string
func (BeInstance) SystemdServicePath ¶
func (s BeInstance) SystemdServicePath() string
type BeStatus ¶
type BeStatus struct { Host string `db:"Host"` IP string `db:"IP"` // doris v1.x use IP, v2.x use Host Alive bool `db:"Alive"` AvailCapacity string `db:"AvailCapacity"` TotalCapacity string `db:"TotalCapacity"` // UsedUsedPct is the percentage of used capacity UsedPct string `db:"UsedPct"` Version string `db:"Version"` }
type ClusterStatus ¶
type ComponentSpec ¶
type ComponentType ¶
type ComponentType string
const ( FE ComponentType = "fe" BE ComponentType = "be" JDK ComponentType = "jdk" )
type ExecOutput ¶
type FESpec ¶
type FESpec struct { ComponentSpec `yaml:",inline"` FeConfig FeConfig `yaml:"-"` IsMaster bool `yaml:"is_master"` InstallJava bool `yaml:"install_java"` JavaPackageURL string `yaml:"java_package_url"` JavaDigest digest.Digest `yaml:"java_digest"` PackageURL string `yaml:"package_url"` Digest digest.Digest `yaml:"digest"` }
func (*FESpec) UnmarshalYAML ¶
type FeInstance ¶
func NewFeInstance ¶
func NewFeInstance(topo *Topology, feSpec FESpec) FeInstance
func (FeInstance) CheckClusterHealth ¶
func (s FeInstance) CheckClusterHealth(ctx context.Context) (bool, error)
func (FeInstance) CheckHealth ¶
func (s FeInstance) CheckHealth(ctx context.Context) (bool, error)
func (FeInstance) ConfigDir ¶
func (s FeInstance) ConfigDir() string
func (FeInstance) EnvironmentVars ¶
func (s FeInstance) EnvironmentVars() map[string]string
func (FeInstance) GetCluserStatus ¶
func (s FeInstance) GetCluserStatus(ctx context.Context) (ClusterStatus, error)
nolint: gocyclo
func (FeInstance) MasterHelper ¶
func (s FeInstance) MasterHelper() string
MasterHelper returns master_fe:master_editlog_port(bdbje helper), used by fe startup script See: https://doris.apache.org/docs/dev/admin-manual/maint-monitor/metadata-operation/
func (FeInstance) PIDFile ¶
func (s FeInstance) PIDFile() string
func (FeInstance) StartupScript ¶
func (s FeInstance) StartupScript() string
func (FeInstance) StopScript ¶
func (s FeInstance) StopScript() string
func (FeInstance) SystemdEnvironment ¶
func (s FeInstance) SystemdEnvironment() string
func (FeInstance) SystemdServiceContent ¶
func (s FeInstance) SystemdServiceContent() (string, error)
func (FeInstance) SystemdServiceName ¶
func (s FeInstance) SystemdServiceName() string
func (FeInstance) SystemdServicePath ¶
func (s FeInstance) SystemdServicePath() string
type GlobalSpec ¶
type ManualDeployInfo ¶
type Topology ¶
type Topology struct { Global GlobalSpec `yaml:"global"` // TODO: maybe some common config for all fe/bes, to shorten the topology yaml FEs []FESpec `yaml:"fes"` BEs []BESpec `yaml:"bes"` }
func BuildTopoFromManualDeploy ¶
func BuildTopoFromManualDeploy(deployInfo ManualDeployInfo) *Topology
BuildTopoFromManualDeploy transform deploy information into (incomplete) Topology struct It then be used to complete and generate a topology yaml file
func LoadFromFile ¶
func (*Topology) UseSystemd ¶
Click to show internal directories.
Click to hide internal directories.