package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Packages
Package mock is a generated GoMock package.
# Functions
ClearSchedulerCleanUpFactory is only used in test.
ClearSchedulerFactory is only used in test.
GetLiveExecIDs returns all live executor node IDs.
GetTestSchedulerExt return scheduler.Extension for testing.
IsCancelledErr checks if the error is a cancelled error.
NewBaseScheduler creates a new BaseScheduler.
NewManager creates a scheduler struct.
RegisterSchedulerCleanUpFactory is used to register the scheduler clean up factory.
RegisterSchedulerFactory is used to register the scheduler factory.
VerifyTaskStateTransform verifies whether the task state transform is valid.
# Variables
CheckTaskFinishedInterval is the interval for scheduler.
CheckTaskRunningInterval is the interval for loading tasks.
DefaultCleanUpInterval is the interval of cleanup routine.
MockServerInfo exported for scheduler_test.go.
RetrySQLInterval is the initial interval between two SQL retries.
RetrySQLMaxInterval is the max interval between two SQL retries.
RetrySQLTimes is the max retry times when executing SQL.
# Structs
BaseScheduler is the base struct for Scheduler.
Manager manage a bunch of schedulers.
NodeManager maintains live TiDB nodes in the cluster, and maintains the nodes managed by the framework.
Param is used to pass parameters when creating scheduler.
SlotManager is used to manage the resource slots and stripes.
# Interfaces
CleanUpRoutine is used for the framework to do some clean up work if the task is finished.
Extension is used to control the process operations for each task.
Scheduler manages the lifetime of a task including submitting subtasks and updating the status of a task.
TaskManager defines the interface to access task table.