resourcegroup

package
v1.1.0-beta.0...-a70cc19 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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