scheduler_prob

package
v0.0.0-...-d4c82a0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

SchedProbPlugin decides based on the scheduler conflict probability based on current cluster state.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factorial

func Factorial(n float64) (result float64)

Types

type SchedProbPlugin

type SchedProbPlugin struct {
	Name      string
	QueueName string
	// contains filtered or unexported fields
}

func NewSchedProbPlugin

func NewSchedProbPlugin(name, queueName string, threshold float64) *SchedProbPlugin

Creates a new SchedProbPlugin

func (*SchedProbPlugin) Compute

func (plugin *SchedProbPlugin) Compute(_, noOfNodes, noOfSched float64) interfaces.ComputeResult

Compute processes the data and return a ComputeResult

Jump to

Keyboard shortcuts

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