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
Click to show internal directories.
Click to hide internal directories.