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]

Source Files

Directories

Path Synopsis
api