Documentation ¶
Index ¶
- Constants
- func PriorityFunc(pod v1.Pod, nodes []v1.Node) (*schedulerapi.HostPriorityList, error)
- type Agent
- type Client
- func (client *Client) Destroy()
- func (client *Client) GetNumResources() int
- func (client *Client) GetPodRanks(pr *PodRequest) map[string]float64
- func (client *Client) StateUpdateNode(node *Node) (bool, error)
- func (client *Client) StateUpdatePod(podState *PodState) error
- func (client *Client) StateUpdatePrint()
- func (client *Client) StateUpdateStart() bool
- func (client *Client) StateUpdateStop()
- type Node
- type PodRequest
- type PodState
Constants ¶
View Source
const ( // RequestedCPUKey : key for the requested CPU RequestedCPUKey = "requested-cpu" // RequestedMemoryKey : key for the requested memory RequestedMemoryKey = "requested-memory" // RequestedPodKey : key for the requested pods RequestedPodKey = "requested-pods" // RequestedGPUKey : key for the requested GPU RequestedGPUKey = "requested-gpu" // RequestedStorageKey : key for the requested storage RequestedStorageKey = "requested-ephemeral-storage" )
*
- Key labels
View Source
const (
// DefaultNumResources :
DefaultNumResources = 2
)
*
- Environment variables and their default values
View Source
const (
// PriorityPigeonName : name of pigeon priority function
PriorityPigeonName = "pigeon-holing"
)
*
- Names of predicates and priority functions
Variables ¶
This section is empty.
Functions ¶
func PriorityFunc ¶
func PriorityFunc(pod v1.Pod, nodes []v1.Node) (*schedulerapi.HostPriorityList, error)
PriorityFunc : compute pigeon priority function
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent :
var ( // PigeonAgent : PigeonAgent *Agent )
func (*Agent) ComputeRank ¶
ComputeRank :
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client : client to pigeon
func (*Client) GetNumResources ¶
GetNumResources : get the number of resource types considered
func (*Client) GetPodRanks ¶
func (client *Client) GetPodRanks(pr *PodRequest) map[string]float64
GetPodRanks :
func (*Client) StateUpdateNode ¶
StateUpdateNode : Update the state of a node
func (*Client) StateUpdatePod ¶
StateUpdatePod : Update the state of a pod
func (*Client) StateUpdatePrint ¶
func (client *Client) StateUpdatePrint()
StateUpdatePrint : print the state updater
func (*Client) StateUpdateStart ¶
StateUpdateStart : start an update session for a given generation
func (*Client) StateUpdateStop ¶
func (client *Client) StateUpdateStop()
StateUpdateStop : stop the update session and print report
type Node ¶
type Node struct { /* unique ID */ ID string /* resources */ ResourceCapacity []int64 ResourceOverflow []bool ResourceUsage []int64 }
Node : node characteristics
type PodRequest ¶
PodRequest : attributes of a pod placement request
func CreatePodModel ¶
func CreatePodModel(pod *v1.Pod, numResources int) *PodRequest
CreatePodModel : create a pod request
Click to show internal directories.
Click to hide internal directories.