Documentation ¶
Index ¶
- func CreatePodWithLimitsAndReq(podinfo PodMemory, memRequestFactor float64) *v1.Pod
- func CreatePodWithoutResources(podinfo PodMemory) *v1.Pod
- func GetJobResourceLimit() v1.ResourceList
- func GetJobResourceRequest(size string) v1.ResourceList
- func GetJobResourceRequestWithFactor(size string, factor float64) v1.ResourceList
- func GetJobResources(size string) v1.ResourceRequirements
- func GetJobResourcesWithRequest(req v1.ResourceList) v1.ResourceRequirements
- func GetJobSizeFromName(name string) (string, error)
- func GetPodRequest(memSize string) v1.ResourceRequirements
- func SetStartTime(pod *PodMemory) error
- func ShiftTimestamps(records []Record, shift time.Duration)
- func SortPodMemoriesByTime(podMemory []PodMemory)
- func UpdateJobForMigration(podinfo *PodMemory, migrationStart, migrationFinish time.Time)
- func UpdateJobNameForMigration(podinfo *PodMemory)
- type Iterator
- type JobData
- type JobDeleter
- type JobSubmitter
- type PodFactory
- type PodMemory
- type Record
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJobResourceLimit ¶
func GetJobResourceLimit() v1.ResourceList
func GetJobResourceRequest ¶
func GetJobResourceRequest(size string) v1.ResourceList
func GetJobResourceRequestWithFactor ¶
func GetJobResourceRequestWithFactor(size string, factor float64) v1.ResourceList
func GetJobResources ¶
func GetJobResources(size string) v1.ResourceRequirements
func GetJobResourcesWithRequest ¶
func GetJobResourcesWithRequest(req v1.ResourceList) v1.ResourceRequirements
func GetJobSizeFromName ¶
func GetPodRequest ¶
func GetPodRequest(memSize string) v1.ResourceRequirements
func SetStartTime ¶
func ShiftTimestamps ¶
func SortPodMemoriesByTime ¶
func SortPodMemoriesByTime(podMemory []PodMemory)
func UpdateJobForMigration ¶
is called at starting time of migration. name is updated when migration finished
func UpdateJobNameForMigration ¶
func UpdateJobNameForMigration(podinfo *PodMemory)
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
func NewIterator ¶
func (*Iterator) RemainingValues ¶
type JobDeleter ¶
type JobDeleter struct {
// contains filtered or unexported fields
}
func NewJobDeleterWithEndtime ¶
func NewJobDeleterWithEndtime(jobs []PodMemory, endTime time.Time) *JobDeleter
type JobSubmitter ¶
type JobSubmitter struct {
// contains filtered or unexported fields
}
func NewJobSubmitter ¶
func NewJobSubmitter(jobs []PodMemory) *JobSubmitter
func NewJobSubmitterFromFile ¶
func NewJobSubmitterFromFile(podMemCsvFile io.Reader) *JobSubmitter
func NewJobSubmitterWithFactory ¶
func NewJobSubmitterWithFactory(jobs []PodMemory, podfactory PodFactory) *JobSubmitter
type PodFactory ¶
func NewPodFactory ¶
func NewPodFactory(requestFactor float64) PodFactory
func (PodFactory) NewMigratedPod ¶
func (f PodFactory) NewMigratedPod(podinfo PodMemory) *v1.Pod
func (PodFactory) NewMigratedPodToNode ¶
func (f PodFactory) NewMigratedPodToNode(podinfo PodMemory) *v1.Pod
func (PodFactory) NewWithResources ¶
func (f PodFactory) NewWithResources(podinfo PodMemory, memSize string) *v1.Pod
type PodMemory ¶
type PodMemory struct { Name string Records []Record StartAt time.Time EndAt time.Time IsMigratingToNode string // contains filtered or unexported fields }
func ParsePodMemories ¶
func (*PodMemory) FinishedMigration ¶
func (p *PodMemory) FinishedMigration()
func (PodMemory) IsMigrating ¶
func (*PodMemory) StartMigration ¶
func (p *PodMemory) StartMigration()
Click to show internal directories.
Click to hide internal directories.