package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

ExecRCRestrictedSQL is used to execute a restricted SQL which related to resource control.
NewChecker creates a new RunawayChecker.
NewRunawayManager creates a new Manager.

# Constants

ManualSource shows the item added manually.
MaxWaitDuration is the max duration to wait for acquiring token buckets.

# Variables

NullTime is a zero time.Time.

# Structs

Checker is used to check if the query is runaway.
Manager is used to detect and record runaway queries.
QuarantineRecord is used to save records which will be inserted into mysql.tidb_runaway_watch.
Record is used to save records which will be inserted into mysql.tidb_runaway_queries.