pg_backend_killer

package
v0.0.0-...-c924726 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PgBackendKiller

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

func ParseBackends

func ParseBackends(pids []int) *PgBackendKiller

func (*PgBackendKiller) GetStats

func (pk *PgBackendKiller) GetStats() []PidStat

func (*PgBackendKiller) IsExceedThreshold

func (pk *PgBackendKiller) IsExceedThreshold(threshold uint64) bool

func (*PgBackendKiller) KillIntTopPid

func (pk *PgBackendKiller) KillIntTopPid() error

func (*PgBackendKiller) KillTermTopPid

func (pk *PgBackendKiller) KillTermTopPid() error

type PidStat

type PidStat struct {
	Pid      int
	CmdLine  string
	Comm     string
	RssUsage int
}

Jump to

Keyboard shortcuts

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