server

package
v0.5.17 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 36 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlock added in v0.3.0

func NewBlock(size uint64, blockID string) *cpuadvisor.Block

NewBlock constructs a Block structure; generate a new one if blockID is missed

func NewBlockSet added in v0.3.0

func NewBlockSet() blockSet

func NewCPUServer added in v0.3.0

func NewCPUServer(
	conf *config.Configuration,
	headroomResourceManager reporter.HeadroomResourceManager,
	metaCache metacache.MetaCache,
	metaServer *metaserver.MetaServer,
	advisor subResourceAdvisor,
	emitter metrics.MetricEmitter,
) (*cpuServer, error)

func NewInnerBlock added in v0.3.0

func NewInnerBlock(block *cpuadvisor.Block, numaID int64, poolName string, containerInfo *types.ContainerInfo,
	numaCalculationResult *cpuadvisor.NumaCalculationResult,
) *internalBlock

func NewMemoryServer added in v0.3.0

func NewMemoryServer(
	conf *config.Configuration,
	headroomResourceManager reporter.HeadroomResourceManager,
	metaCache metacache.MetaCache,
	metaServer *metaserver.MetaServer,
	advisor subResourceAdvisor,
	emitter metrics.MetricEmitter,
) (*memoryServer, error)

func NewPoolCalculationEntries added in v0.3.0

func NewPoolCalculationEntries(poolName string) *cpuadvisor.CalculationEntries

NewPoolCalculationEntries returns CalculationEntries, and it will only fill up with OwnerPoolName and leaves numa info empty.

Types

type QRMServer

type QRMServer interface {
	Run(ctx context.Context)
}

QRMServer is a wrapper of all qrm plugin servers, which synchronize and merge pod and container lifecycle information, resource allocation and provision result with QRM plugins

func NewQRMServer

func NewQRMServer(advisorWrapper resource.ResourceAdvisor, headroomResourceGetter reporter.HeadroomResourceGetter, conf *config.Configuration,
	metaCache metacache.MetaCache, metaServer *metaserver.MetaServer, emitter metrics.MetricEmitter,
) (QRMServer, error)

NewQRMServer returns a qrm server wrapper, which instantiates all required qrm plugin servers according to config

Jump to

Keyboard shortcuts

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