Documentation ¶
Index ¶
- func NewBlock(size uint64, blockID string) *cpuadvisor.Block
- func NewBlockSet() blockSet
- func NewCPUServer(recvCh chan types.InternalCPUCalculationResult, sendCh chan types.TriggerInfo, ...) (*cpuServer, error)
- func NewInnerBlock(block *cpuadvisor.Block, numaID int64, poolName string, ...) *internalBlock
- func NewMemoryServer(recvCh chan types.InternalMemoryCalculationResult, ...) (*memoryServer, error)
- func NewPoolCalculationEntries(poolName string) *cpuadvisor.CalculationEntries
- type QRMServer
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 types.TriggerInfo, conf *config.Configuration, metaCache metacache.MetaCache, metaServer *metaserver.MetaServer, 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 types.TriggerInfo, conf *config.Configuration, metaCache metacache.MetaCache, metaServer *metaserver.MetaServer, 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 ¶
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, metaServer *metaserver.MetaServer, emitter metrics.MetricEmitter, ) (QRMServer, error)
NewQRMServer returns a qrm server wrapper, which instantiates all required qrm plugin servers according to config
Click to show internal directories.
Click to hide internal directories.