cobraproclimits

package
v2.0.0-...-f7fe739 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetMemLimitRunE

func SetMemLimitRunE(options ...memlimit.Option) cobrautil.CobraRunFunc

SetLimitsRunE wraps the RunFunc with setup logic for memory limits for the go process. It requests 90% of the memory available and respects kubernetes cgroup limits.

func SetProcLimitRunE

func SetProcLimitRunE() cobrautil.CobraRunFunc

SetProcLimitRunE wraps the RunFunc with setup logic for maxproc limits for the go process. It requests all of the available CPU quota.

Types

This section is empty.

Jump to

Keyboard shortcuts

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