resourcegroup

package
v1.1.0-beta.0...-985609a Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 3 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
	// CheckThresholds checks TiKV error whether it exceeds the threshold.
	CheckThresholds(ruDetail *util.RUDetails, processKeys int64, err error) error
	// ResetTotalProcessedKeys resets the current total processed keys.
	ResetTotalProcessedKeys()
	// 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() (string, bool)
}

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