debugger

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheComparer

type CacheComparer struct {
	NodeLister corelisters.NodeLister
	PodLister  corelisters.PodLister
	Cache      schedulerinternalcache.Cache
	PodQueue   internalqueue.SchedulingQueue
}

CacheComparer is an implementation of the Scheduler's cache comparer.

func (*CacheComparer) Compare

func (c *CacheComparer) Compare() error

Compare compares the nodes and pods of NodeLister with Cache.Snapshot.

func (*CacheComparer) CompareNodes

func (c *CacheComparer) CompareNodes(nodes []*v1.Node, nodeinfos map[string]*schedulernodeinfo.NodeInfo) (missed, redundant []string)

CompareNodes compares actual nodes with cached nodes.

func (*CacheComparer) ComparePods

func (c *CacheComparer) ComparePods(pods, waitingPods []*v1.Pod, nodeinfos map[string]*schedulernodeinfo.NodeInfo) (missed, redundant []string)

ComparePods compares actual pods with cached pods.

type CacheDebugger

type CacheDebugger struct {
	Comparer CacheComparer
	Dumper   CacheDumper
}

CacheDebugger provides ways to check and write cache information for debugging.

func New

New creates a CacheDebugger.

func (*CacheDebugger) ListenForSignal added in v1.14.0

func (d *CacheDebugger) ListenForSignal(stopCh <-chan struct{})

ListenForSignal starts a goroutine that will trigger the CacheDebugger's behavior when the process receives SIGINT (Windows) or SIGUSER2 (non-Windows).

type CacheDumper

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

CacheDumper writes some information from the scheduler cache and the scheduling queue to the scheduler logs for debugging purposes.

func (*CacheDumper) DumpAll

func (d *CacheDumper) DumpAll()

DumpAll writes cached nodes and scheduling queue information to the scheduler logs.

Jump to

Keyboard shortcuts

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