hardcoded

package
v0.0.0-...-d250e93 Latest Latest
Warning

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

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

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.

Jump to

Keyboard shortcuts

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