Discover Packages
github.com/CloudComputingCourse/kube-batch
pkg
scheduler
actions
allocate
package
Version:
v0.0.0-...-fb4d9db
Opens a new window with list of versions in this module.
Published: Mar 19, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func New() *allocateAction
type InputT struct {
RackCap []int `json:"rack_cap"`
NumLargeMachineRacks int `json:"numLargeMachineRacks"`
Queue []JobT `json:"queue"`
Machines []int `json:"machines"`
}
type JobT struct {
JobID int `json:"jobID"`
JobType string `json:"jobType"`
K int `json:"k"`
Duration int `json:"duration"`
SlowDuration int `json:"slowDuration"`
}
type Message struct {
Input InputT `json:"input"`
Output interface{} `json:"output"`
}
type OutputT struct {
JobID int `json:"jobID"`
Machines []int `json:"machines"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.