holmes

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnHolmesPluginParsed

func OnHolmesPluginParsed(data json.RawMessage) error

OnHolmesPluginParsed will be called when got the holmes extend config, and only start holmes when Enable = true in the config

func Register

func Register(_ *v2.MOSNConfig)

Init should register to stagemanager Init stage, since it must run before the preStart stage (HandleExtendConfig in it)

func SetOptions

func SetOptions(opts []holmes.Option) error

SetOptions change holmes options on fly

func Stop

func Stop(_ stagemanager.Application)

Stop should register to stagemanager afterStop stage

Types

type GoroutineProfileOptions

type GoroutineProfileOptions struct {
	*ProfileOptions
	GoroutineTriggerNumMax int // do not profile when goroutine number large than max (to avoid large STW)
}

type ProfileOptions

type ProfileOptions struct {
	Enable      bool
	TriggerMin  int                // not trigger profile when less than min, CPU,memory: percent
	TriggerAbs  int                // always trigger profile when larger than abs, CPU,memory: percent
	TriggerDiff int                // trigger profile when grow than diff, percent
	CoolDown    api.DurationConfig // skip for some time after finished a profile
}

type ShrinkThreadOptions

type ShrinkThreadOptions struct {
	Enable    bool
	Threshold int
	Delay     api.DurationConfig
}

Jump to

Keyboard shortcuts

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