Documentation
¶
Index ¶
Constants ¶
View Source
const CPURequestEnvVar = "LIVEKIT_CPU_REQUEST"
Variables ¶
This section is empty.
Functions ¶
func EffectiveCPURequest ¶ added in v1.45.4
func EffectiveCPURequest() float64
EffectiveCPURequest returns the value of LIVEKIT_CPU_REQUEST when set and valid. The result is parsed at most once; use for stats normalization and optional GOMAXPROCS tuning (see utils/hwstats/maxprocs).
Types ¶
type CPUStats ¶
type CPUStats struct {
// contains filtered or unexported fields
}
func NewCPUStats ¶
func NewProcMonitor ¶ added in v1.30.0
func (*CPUStats) GetCPUIdle ¶
func (*CPUStats) GetCPULoad ¶ added in v1.37.0
type GroupMemory ¶ added in v1.45.1
type GroupMemory struct {
Total int
Procs map[int]ProcMemoryEntry
}
type MemoryStats ¶ added in v1.37.0
type MemoryStats struct {
// contains filtered or unexported fields
}
func NewMemoryStats ¶ added in v1.37.0
func NewMemoryStats() (*MemoryStats, error)
type ProcMemoryEntry ¶ added in v1.45.1
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package maxprocs caps GOMAXPROCS to the Kubernetes CPU request so the Go scheduler doesn't create more OS threads than the pod is guaranteed.
|
Package maxprocs caps GOMAXPROCS to the Kubernetes CPU request so the Go scheduler doesn't create more OS threads than the pod is guaranteed. |
Click to show internal directories.
Click to hide internal directories.