scheduler

package
v0.0.0-...-f1b23c0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

type Scheduler struct {
	Datastore datastore.Datastore
	// contains filtered or unexported fields
}

Scheduler is implementation used datastore.

func New

func New(ds datastore.Datastore) *Scheduler

New create a new scheduler

func (*Scheduler) PopCorePair

func (s *Scheduler) PopCorePair(ctx context.Context, hypervisorID int, numRequestCorePair int, pinningGroupID uuid.UUID) ([]ganymede.CorePair, error)

PopCorePair allocate pinning cpu core numRequestCorePair is number of requested CorePair. you can use 2 x numRequestCorePair of cpu cores. two is physical core and logical core.

func (*Scheduler) PushCorePair

func (s *Scheduler) PushCorePair(ctx context.Context, pinningGroupID uuid.UUID) error

PushCorePair free pinned cpu core

Jump to

Keyboard shortcuts

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