Documentation ¶
Overview ¶
Package hardcoded contains an implementation of socketquad.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 socketquad.InterferenceModel, where the slowdowns among all applications are known and hardcoded.
func New ¶
func New(socketquadLabelKey string) *HardcodedSlowDowns
New returns a new HardcodedSlowDowns with the given label key (the one that is used by SocketQuadPlugin to track its applications).
func (*HardcodedSlowDowns) Attack ¶
func (m *HardcodedSlowDowns) Attack(attacker, occupant *corev1.Pod) (float64, error)
Attack implements socketquad.InterferenceModel; see the documentation there for more information.
func (*HardcodedSlowDowns) ToInt64Multiplier ¶
func (_ *HardcodedSlowDowns) ToInt64Multiplier() float64
ToInt64Multiplier implements socketquad.InterferenceModel; see the documentation there for more information.
Click to show internal directories.
Click to hide internal directories.