Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CPUAvailable ¶
func CPUAvailable() float64
CPUAvailable returns the available cpu of this node.
func GoMaxProcs ¶
func GoMaxProcs() int
GoMaxProcs returns the maximum number of CPUs that can be executing goroutine. co-operate with SetGoMaxProcs
func InContainer ¶
func InContainer() bool
InContainer returns if the process is running in a container.
func MemoryAvailable ¶
func MemoryAvailable() uint64
MemoryAvailable returns the available size of memory of this node.
func MemoryTotal ¶
func MemoryTotal() uint64
MemoryTotal returns the total size of memory of this node.
func MemoryUsed ¶
func MemoryUsed() uint64
func SetGoMaxProcs ¶
SetGoMaxProcs co-operate with pkg/cnservice/service.handleGoMaxProcs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.