expensivequery

package
v7.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle struct {
	// contains filtered or unexported fields
}

Handle is the handler for expensive query.

func NewExpensiveQueryHandle

func NewExpensiveQueryHandle(exitCh chan struct{}) *Handle

NewExpensiveQueryHandle builds a new expensive query handler.

func (*Handle) LogOnQueryExceedMemQuota

func (eqh *Handle) LogOnQueryExceedMemQuota(connID uint64)

LogOnQueryExceedMemQuota prints a log when memory usage of connID is out of memory quota.

func (*Handle) Run

func (eqh *Handle) Run()

Run starts a expensive query checker goroutine at the start time of the server.

func (*Handle) SetSessionManager

func (eqh *Handle) SetSessionManager(sm util.SessionManager) *Handle

SetSessionManager sets the SessionManager which is used to fetching the info of all active sessions.

Jump to

Keyboard shortcuts

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