Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultResourceGroupName = "default"
DefaultResourceGroupName is the default resource group name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunawayChecker ¶
type RunawayChecker interface { // BeforeExecutor checks whether query is in watch list before executing and after compiling. BeforeExecutor() (string, error) // BeforeCopRequest checks runaway and modifies the request if necessary before sending coprocessor request. BeforeCopRequest(req *tikvrpc.Request) error // CheckCopRespError checks TiKV error after receiving coprocessor response. CheckCopRespError(err error) error // CheckAction is used to check current action of the query. // It's safe to call this method concurrently. CheckAction() rmpb.RunawayAction // CheckRuleKillAction checks whether the query should be killed according to the group settings. CheckRuleKillAction() bool // Rule returns the rule of the runaway checker. Rule() string }
RunawayChecker is used to check runaway queries.
Click to show internal directories.
Click to hide internal directories.