disttaskutil

package
v0.0.0-...-6e93ed8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindServerInfo

func FindServerInfo(serverInfos []*infosync.ServerInfo, schedulerID string) int

FindServerInfo will find the schedulerID in all serverInfos.

func GenerateExecID

func GenerateExecID(info *infosync.ServerInfo) string

GenerateExecID used to generate IP:port as exec_id value This function is used by distributed task execution to generate serverID string to correlated one subtask to on TiDB node to be executed.

func GenerateSubtaskExecID

func GenerateSubtaskExecID(ctx context.Context, id string) string

GenerateSubtaskExecID generates the subTask execID.

func GenerateSubtaskExecID4Test

func GenerateSubtaskExecID4Test(id string) string

GenerateSubtaskExecID4Test generates the subTask execID, only used in unit tests.

func MatchServerInfo

func MatchServerInfo(serverInfos []*infosync.ServerInfo, schedulerID string) bool

MatchServerInfo will check if the schedulerID matched in all serverInfos.

Types

This section is empty.

Jump to

Keyboard shortcuts

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