Documentation
¶
Index ¶
Constants ¶
View Source
const CPURequestEnvVar = "LIVEKIT_CPU_REQUEST"
Variables ¶
This section is empty.
Functions ¶
func EffectiveCPURequest ¶
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 ¶
func (*CPUStats) GetCPUIdle ¶
func (*CPUStats) GetCPULoad ¶
type GroupMemory ¶
type GroupMemory struct {
Total int
Procs map[int]ProcMemoryEntry
}
type MemoryStats ¶
type MemoryStats struct {
// contains filtered or unexported fields
}
func NewMemoryStats ¶
func NewMemoryStats() (*MemoryStats, error)
type ProcMemoryEntry ¶
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.