hardcoded

package
v0.0.0-...-6c93f71 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package hardcoded contains an implementation of greedyquad.InterferenceModel, where the slowdowns among all applications are known and hardcoded.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HardcodedSlowDowns

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

HardcodedSlowDowns is an implementation of greedyquad.InterferenceModel, where the slowdowns among all applications are known and hardcoded.

func New

func New(greedyquadLabelKey string) *HardcodedSlowDowns

New returns a new HardcodedSlowDowns with the given label key (the one that is used by GreedyQuadPlugin to track its applications).

func (*HardcodedSlowDowns) Attack

func (m *HardcodedSlowDowns) Attack(attacker, occupant *corev1.Pod) (float64, error)

Attack implements greedyquad.InterferenceModel; see the documentation there for more information.

func (*HardcodedSlowDowns) ToInt64Multiplier

func (_ *HardcodedSlowDowns) ToInt64Multiplier() float64

ToInt64Multiplier implements greedyquad.InterferenceModel; see the documentation there for more information.

Jump to

Keyboard shortcuts

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