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 ¶
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 }
Click to show internal directories.
Click to hide internal directories.