strategy

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cost

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

Cost based strategy

func NewCost

func NewCost() (*Cost, error)

NewCost init new Cost task selection strategy

func (*Cost) FindBest

func (c *Cost) FindBest(ws []*api.Worker, ts []*api.Task, workerIndex int) (*api.Task, error)

FindBest is the main selection method select task for worker ws[workerIndex]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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