v2

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderPDSchedulingStartScript added in v1.6.0

func RenderPDSchedulingStartScript(tc *v1alpha1.TidbCluster) (string, error)

func RenderPDStartScript

func RenderPDStartScript(tc *v1alpha1.TidbCluster) (string, error)

RenderPDStartScript renders PD start script from TidbCluster

func RenderPDTSOStartScript added in v1.6.0

func RenderPDTSOStartScript(tc *v1alpha1.TidbCluster) (string, error)

func RenderPumpStartScript

func RenderPumpStartScript(tc *v1alpha1.TidbCluster) (string, error)

RenderPumpStartScript renders Pump start script from TidbCluster

func RenderTiCDCStartScript

func RenderTiCDCStartScript(tc *v1alpha1.TidbCluster) (string, error)

func RenderTiDBStartScript

func RenderTiDBStartScript(tc *v1alpha1.TidbCluster) (string, error)

RenderTiDBStartScript renders TiDB start script from TidbCluster

func RenderTiFlashInitScript

func RenderTiFlashInitScript(tc *v1alpha1.TidbCluster) (string, error)

RenderTiFlashInitScript renders TiFlash Init script from TidbCluster

func RenderTiFlashStartScript

func RenderTiFlashStartScript(tc *v1alpha1.TidbCluster) (string, error)

RenderTiFlashStartScript renders TiFlash start script from TidbCluster

func RenderTiFlashStartScriptWithStartArgs added in v1.6.0

func RenderTiFlashStartScriptWithStartArgs(tc *v1alpha1.TidbCluster) (string, error)

func RenderTiKVStartScript

func RenderTiKVStartScript(tc *v1alpha1.TidbCluster) (string, error)

RenderTiKVStartScript renders TiKV start script from TidbCluster

func RenderTiProxyStartScript

func RenderTiProxyStartScript(tc *v1alpha1.TidbCluster) (string, error)

RenderTiProxyStartScript renders tiproxy start script for TidbCluster

Types

type AcrossK8sScriptModel

type AcrossK8sScriptModel struct {
	// DiscoveryAddr is the address of the discovery service.
	//
	// When cluster is deployed across k8s, all components except pd will get the pd addr from discovery.
	DiscoveryAddr string

	// PDAddr is the address used by discovery to get the actual pd addr.
	PDAddr string
}

AcrossK8sScriptModel contain fields for rendering subscript

type PDMSStartScriptModel added in v1.6.0

type PDMSStartScriptModel struct {
	PDStartTimeout int
	PDAddresses    string

	PDMSDomain          string
	ListenAddr          string
	AdvertiseListenAddr string

	AcrossK8s *AcrossK8sScriptModel
}

PDMSStartScriptModel contain fields for rendering PD Micro Service start script

type PDStartScriptModel

type PDStartScriptModel struct {
	PDDomain           string
	PDName             string
	DataDir            string
	PeerURL            string
	AdvertisePeerURL   string
	ClientURL          string
	AdvertiseClientURL string
	DiscoveryAddr      string
	ExtraArgs          string
	PDAddresses        string
	PDStartTimeout     int
}

PDStartScriptModel contain fields for rendering PD start script

type PumpStartScriptModel

type PumpStartScriptModel struct {
	PDAddr        string
	LogLevel      string
	AdvertiseAddr string
	ExtraArgs     string

	AcrossK8s *AcrossK8sScriptModel
}

PumpStartScriptModel contain fields for rendering Pump start script

type TiCDCStartScriptModel

type TiCDCStartScriptModel struct {
	AdvertiseAddr string
	GCTTL         int32
	LogFile       string
	LogLevel      string
	PDAddresses   string
	ExtraArgs     string

	AcrossK8s *AcrossK8sScriptModel
}

TiCDCStartScriptModel contain fields for rendering TiCDC start script

type TiDBStartScriptModel

type TiDBStartScriptModel struct {
	AdvertiseAddr string
	ExtraArgs     string
	PDAddresses   string

	AcrossK8s *AcrossK8sScriptModel
}

TiDBStartScriptModel contain some fields for rendering TiDB start script

type TiFlashInitScriptModel

type TiFlashInitScriptModel struct {
	AcrossK8s *AcrossK8sScriptModel
}

TiFlashInitScriptModel contain fields for rendering TiFlash Init script

type TiFlashStartScriptModel

type TiFlashStartScriptModel struct {
	ExtraArgs string
}

TiFlashStartScriptModel contain fields for rendering TiFlash start script

type TiFlashStartScriptWithStartArgsModel added in v1.6.0

type TiFlashStartScriptWithStartArgsModel struct {
	AdvertiseAddr       string
	AdvertiseStatusAddr string
	Addr                string
	PDAddresses         string
	ExtraArgs           string

	AcrossK8s *AcrossK8sScriptModel
}

TiFlashStartScriptWithStartArgsModel is an alternative of TiFlashStartScriptModel that enable tiflash pod run without initContainer

type TiKVStartScriptModel

type TiKVStartScriptModel struct {
	PDAddresses    string
	Addr           string
	StatusAddr     string
	AdvertiseHost  string
	AdvertiseAddr  string
	DataDir        string
	Capacity       string
	ExtraArgs      string
	KVStartTimeout int

	AcrossK8s *AcrossK8sScriptModel
}

TiKVStartScriptModel contain fields for rendering TiKV start script

type TiProxyStartScriptModel

type TiProxyStartScriptModel struct {
	AdvertiseAddr string
}

TiProxyStartScriptModel contain fields for rendering TiProxy start script

Jump to

Keyboard shortcuts

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