server

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 25 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(recvCh chan types.InternalCPUCalculationResult, sendCh chan struct{}, conf *config.Configuration,
	metaCache metacache.MetaCache, 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(recvCh chan types.InternalMemoryCalculationResult, sendCh chan struct{}, conf *config.Configuration,
	metaCache metacache.MetaCache, 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, conf *config.Configuration,
	metaCache metacache.MetaCache, 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