extruntime

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 11 Imported by: 35

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustOOMScoreAdj added in v1.10.5

func AdjustOOMScoreAdj()

AdjustOOMScoreAdj lowers the process oom_score_adj to protect the extension from the Linux OOM-killer under node memory pressure. The target score is read from STEADYBIT_EXTENSION_OOM_SCORE_ADJ (default -998) and clamped to [-1000, 1000]. Lowering the score requires CAP_SYS_RESOURCE; without it the adjustment fails and a warning is logged. This is a no-op on non-Linux platforms.

func GetHostname added in v1.8.13

func GetHostname() (hostname, fqdn string, err error)

func GetUnameInformation added in v1.8.12

func GetUnameInformation() string

func LogRuntimeInformation

func LogRuntimeInformation(level zerolog.Level)

func UnameInformation added in v1.8.12

func UnameInformation() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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