heap

package
v4.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// MemCheckInterval denotes the frequency at which the memory consumption is checked
	MemCheckInterval = 1 * time.Second
)

Parameters for checking memory consumption of query

Variables

View Source
var (

	// ErrorMemoryBreach denotes that the provided / requested maximum memory usage has been exceeded
	ErrorMemoryBreach = errors.New("maximum memory breach")
)

Functions

func Watch

func Watch(ctx context.Context, maxAllowedMemPct int) (errors chan error)

Watch makes sure to alert on too high memory consumption

Types

This section is empty.

Jump to

Keyboard shortcuts

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