isolatedcache

package
v0.0.0-...-6111fc0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IsolatedCache

type IsolatedCache interface {
	// cache node for pods based on owner
	// we will only cache node for a small period of time, so memory increasing won't be unacceptable
	CacheNodeForPodOwner(podOwner string, nodeName string, nodeGroup string) error

	// cache nodes for pods based on owner
	// we will only cache nodes for a small period of time, so memory increasing won't be unacceptable
	CacheAscendingOrderNodesForPodOwner(podOwner string, nodeGroup string, nodeNames []string) error

	// IsNodeInCachedMap checks if the node is still in cached nodes
	IsNodeInCachedMap(podOwner string, nodeName string) (bool, string)

	// GetOrderedNodesForPodOwner gets ordered nodes from cached nodes
	GetOrderedNodesForPodOwner(podOwner string) []string

	// DeleteNodeForPodOwner deletes node from cached nodes
	DeleteNodeForPodOwner(podOwner string, nodeName string) error

	// CleanupCachedNodesForPodOwner cleanup cached nodes.
	// It should be called inertly during scheduling to maintain infomations without lock.
	CleanupCachedNodesForPodOwner()

	GetPreemptionPolicy(deployName string) string
	CachePreemptionPolicy(deployName string, policyName string)
	CleanupPreemptionPolicyForPodOwner()
}

func NewIsolatedCache

func NewIsolatedCache() IsolatedCache

Jump to

Keyboard shortcuts

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