Documentation ¶
Index ¶
- type DummyHeadroomResourceManager
- func (mgr *DummyHeadroomResourceManager) GetAllocatable() (apiresource.Quantity, error)
- func (mgr *DummyHeadroomResourceManager) GetCapacity() (apiresource.Quantity, error)
- func (mgr *DummyHeadroomResourceManager) GetNumaAllocatable() (map[int]apiresource.Quantity, error)
- func (mgr *DummyHeadroomResourceManager) GetNumaCapacity() (map[int]apiresource.Quantity, error)
- type HeadroomReporter
- type HeadroomResourceGetter
- type HeadroomResourceManager
- type PodResourceType
- type Reporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyHeadroomResourceManager ¶ added in v0.5.16
type DummyHeadroomResourceManager struct{}
func (*DummyHeadroomResourceManager) GetAllocatable ¶ added in v0.5.16
func (mgr *DummyHeadroomResourceManager) GetAllocatable() (apiresource.Quantity, error)
func (*DummyHeadroomResourceManager) GetCapacity ¶ added in v0.5.16
func (mgr *DummyHeadroomResourceManager) GetCapacity() (apiresource.Quantity, error)
func (*DummyHeadroomResourceManager) GetNumaAllocatable ¶ added in v0.5.16
func (mgr *DummyHeadroomResourceManager) GetNumaAllocatable() (map[int]apiresource.Quantity, error)
func (*DummyHeadroomResourceManager) GetNumaCapacity ¶ added in v0.5.16
func (mgr *DummyHeadroomResourceManager) GetNumaCapacity() (map[int]apiresource.Quantity, error)
type HeadroomReporter ¶
type HeadroomReporter struct { skeleton.GenericPlugin HeadroomResourceGetter }
func NewHeadroomReporter ¶
func NewHeadroomReporter(emitter metrics.MetricEmitter, metaServer *metaserver.MetaServer, conf *config.Configuration, headroomAdvisor hmadvisor.ResourceAdvisor, ) (*HeadroomReporter, error)
NewHeadroomReporter returns a wrapper of headroom reporter plugins as headroom reporter
func (*HeadroomReporter) Run ¶
func (r *HeadroomReporter) Run(ctx context.Context)
type HeadroomResourceGetter ¶ added in v0.5.16
type HeadroomResourceGetter interface {
GetHeadroomResource(name v1.ResourceName) (HeadroomResourceManager, error)
}
type HeadroomResourceManager ¶ added in v0.5.16
type HeadroomResourceManager interface { manager.ResourceManager manager.NumaResourceManager }
type PodResourceType ¶ added in v0.4.1
type PodResourceType string
const ( Guaranteed PodResourceType = "guaranteed" BestEffort PodResourceType = "best-effort" Unknown PodResourceType = "unknown" )
type Reporter ¶ added in v0.4.1
Reporter is used to report resource
func NewNodeMetricsReporter ¶ added in v0.4.1
func NewNodeMetricsReporter(emitter metrics.MetricEmitter, metaServer *metaserver.MetaServer, metaReader metacache.MetaReader, conf *config.Configuration, ) (Reporter, error)
NewNodeMetricsReporter returns a wrapper of node metrics reporter
Source Files ¶
Click to show internal directories.
Click to hide internal directories.