cpuscaling

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUScaler

type CPUScaler struct {
	// contains filtered or unexported fields
}

func NewCPUScaler

func NewCPUScaler() *CPUScaler

func (*CPUScaler) ActiveCPUsCount

func (c *CPUScaler) ActiveCPUsCount() (int, error)

ActiveCPUsCount() returns the count of online CPUs.

func (*CPUScaler) ReconcileOnlineCPU

func (c *CPUScaler) ReconcileOnlineCPU(targetCount int) error

type CPUStater

type CPUStater interface {
	OnlineCPUs() ([]int, error)
	OfflineCPUs() ([]int, error)
	SetState(cpuID int, cpuState cpuState) error
}

Jump to

Keyboard shortcuts

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