Documentation ¶
Index ¶
- Variables
- func SchedulingConfigFromFilePath(filePath string) (configuration.SchedulingConfig, error)
- func SchedulingConfigsFromFilePaths(filePaths []string) ([]configuration.SchedulingConfig, error)
- func SchedulingConfigsFromPattern(pattern string) ([]configuration.SchedulingConfig, error)
- type Event
- type EventLog
- type Executor
- func (*Executor) Descriptor() ([]byte, []int)
- func (m *Executor) GetName() string
- func (m *Executor) GetNodeTemplates() []*NodeTemplate
- func (m *Executor) Marshal() (dAtA []byte, err error)
- func (m *Executor) MarshalTo(dAtA []byte) (int, error)
- func (m *Executor) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Executor) ProtoMessage()
- func (m *Executor) Reset()
- func (m *Executor) Size() (n int)
- func (m *Executor) String() string
- func (m *Executor) Unmarshal(dAtA []byte) error
- func (m *Executor) XXX_DiscardUnknown()
- func (m *Executor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Executor) XXX_Merge(src proto.Message)
- func (m *Executor) XXX_Size() int
- func (m *Executor) XXX_Unmarshal(b []byte) error
- type ExecutorGroup
- func (*ExecutorGroup) Descriptor() ([]byte, []int)
- func (m *ExecutorGroup) GetExecutors() []*Executor
- func (m *ExecutorGroup) Marshal() (dAtA []byte, err error)
- func (m *ExecutorGroup) MarshalTo(dAtA []byte) (int, error)
- func (m *ExecutorGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExecutorGroup) ProtoMessage()
- func (m *ExecutorGroup) Reset()
- func (m *ExecutorGroup) Size() (n int)
- func (m *ExecutorGroup) String() string
- func (m *ExecutorGroup) Unmarshal(dAtA []byte) error
- func (m *ExecutorGroup) XXX_DiscardUnknown()
- func (m *ExecutorGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExecutorGroup) XXX_Merge(src proto.Message)
- func (m *ExecutorGroup) XXX_Size() int
- func (m *ExecutorGroup) XXX_Unmarshal(b []byte) error
- type JobTemplate
- func (*JobTemplate) Descriptor() ([]byte, []int)
- func (m *JobTemplate) GetDependencies() []string
- func (m *JobTemplate) GetId() string
- func (m *JobTemplate) GetJobSet() string
- func (m *JobTemplate) GetMinSubmitTime() time.Time
- func (m *JobTemplate) GetNumber() int64
- func (m *JobTemplate) GetNumberSuccessful() int64
- func (m *JobTemplate) GetPriorityClassName() string
- func (m *JobTemplate) GetQueue() string
- func (m *JobTemplate) GetQueuePriority() uint32
- func (m *JobTemplate) GetRequirements() schedulerobjects.PodRequirements
- func (m *JobTemplate) GetRuntimeMean() int64
- func (m *JobTemplate) GetRuntimeVariance() int64
- func (m *JobTemplate) Marshal() (dAtA []byte, err error)
- func (m *JobTemplate) MarshalTo(dAtA []byte) (int, error)
- func (m *JobTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*JobTemplate) ProtoMessage()
- func (m *JobTemplate) Reset()
- func (m *JobTemplate) Size() (n int)
- func (m *JobTemplate) String() string
- func (m *JobTemplate) Unmarshal(dAtA []byte) error
- func (m *JobTemplate) XXX_DiscardUnknown()
- func (m *JobTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JobTemplate) XXX_Merge(src proto.Message)
- func (m *JobTemplate) XXX_Size() int
- func (m *JobTemplate) XXX_Unmarshal(b []byte) error
- type NodeTemplate
- func (*NodeTemplate) Descriptor() ([]byte, []int)
- func (m *NodeTemplate) GetLabels() map[string]string
- func (m *NodeTemplate) GetNumber() int64
- func (m *NodeTemplate) GetTaints() []v1.Taint
- func (m *NodeTemplate) GetTotalResources() schedulerobjects.ResourceList
- func (m *NodeTemplate) Marshal() (dAtA []byte, err error)
- func (m *NodeTemplate) MarshalTo(dAtA []byte) (int, error)
- func (m *NodeTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NodeTemplate) ProtoMessage()
- func (m *NodeTemplate) Reset()
- func (m *NodeTemplate) Size() (n int)
- func (m *NodeTemplate) String() string
- func (m *NodeTemplate) Unmarshal(dAtA []byte) error
- func (m *NodeTemplate) XXX_DiscardUnknown()
- func (m *NodeTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeTemplate) XXX_Merge(src proto.Message)
- func (m *NodeTemplate) XXX_Size() int
- func (m *NodeTemplate) XXX_Unmarshal(b []byte) error
- type Pool
- func (*Pool) Descriptor() ([]byte, []int)
- func (m *Pool) GetExecutorGroups() []*ExecutorGroup
- func (m *Pool) GetName() string
- func (m *Pool) Marshal() (dAtA []byte, err error)
- func (m *Pool) MarshalTo(dAtA []byte) (int, error)
- func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pool) ProtoMessage()
- func (m *Pool) Reset()
- func (m *Pool) Size() (n int)
- func (m *Pool) String() string
- func (m *Pool) Unmarshal(dAtA []byte) error
- func (m *Pool) XXX_DiscardUnknown()
- func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pool) XXX_Merge(src proto.Message)
- func (m *Pool) XXX_Size() int
- func (m *Pool) XXX_Unmarshal(b []byte) error
- type Queue
- func (*Queue) Descriptor() ([]byte, []int)
- func (m *Queue) GetJobTemplates() []*JobTemplate
- func (m *Queue) GetName() string
- func (m *Queue) GetWeight() float64
- func (m *Queue) Marshal() (dAtA []byte, err error)
- func (m *Queue) MarshalTo(dAtA []byte) (int, error)
- func (m *Queue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Queue) ProtoMessage()
- func (m *Queue) Reset()
- func (m *Queue) Size() (n int)
- func (m *Queue) String() string
- func (m *Queue) Unmarshal(dAtA []byte) error
- func (m *Queue) XXX_DiscardUnknown()
- func (m *Queue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Queue) XXX_Merge(src proto.Message)
- func (m *Queue) XXX_Size() int
- func (m *Queue) XXX_Unmarshal(b []byte) error
- type Simulator
- type TestCase
- func (*TestCase) Descriptor() ([]byte, []int)
- func (m *TestCase) GetName() string
- func (m *TestCase) GetPools() []*Pool
- func (m *TestCase) GetQueues() []Queue
- func (m *TestCase) GetRandomSeed() int64
- func (m *TestCase) Marshal() (dAtA []byte, err error)
- func (m *TestCase) MarshalTo(dAtA []byte) (int, error)
- func (m *TestCase) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TestCase) ProtoMessage()
- func (m *TestCase) Reset()
- func (m *TestCase) Size() (n int)
- func (m *TestCase) String() string
- func (m *TestCase) Unmarshal(dAtA []byte) error
- func (m *TestCase) XXX_DiscardUnknown()
- func (m *TestCase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TestCase) XXX_Merge(src proto.Message)
- func (m *TestCase) XXX_Size() int
- func (m *TestCase) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func SchedulingConfigFromFilePath ¶
func SchedulingConfigFromFilePath(filePath string) (configuration.SchedulingConfig, error)
func SchedulingConfigsFromFilePaths ¶
func SchedulingConfigsFromFilePaths(filePaths []string) ([]configuration.SchedulingConfig, error)
func SchedulingConfigsFromPattern ¶
func SchedulingConfigsFromPattern(pattern string) ([]configuration.SchedulingConfig, error)
Types ¶
type Executor ¶
type Executor struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` NodeTemplates []*NodeTemplate `protobuf:"bytes,2,rep,name=node_templates,json=nodeTemplates,proto3" json:"nodeTemplates,omitempty"` }
func (*Executor) Descriptor ¶
func (*Executor) GetNodeTemplates ¶
func (m *Executor) GetNodeTemplates() []*NodeTemplate
func (*Executor) MarshalToSizedBuffer ¶
func (*Executor) ProtoMessage ¶
func (*Executor) ProtoMessage()
func (*Executor) XXX_DiscardUnknown ¶
func (m *Executor) XXX_DiscardUnknown()
func (*Executor) XXX_Marshal ¶
func (*Executor) XXX_Unmarshal ¶
type ExecutorGroup ¶
type ExecutorGroup struct {
Executors []*Executor `protobuf:"bytes,1,rep,name=executors,proto3" json:"executors,omitempty"`
}
func (*ExecutorGroup) Descriptor ¶
func (*ExecutorGroup) Descriptor() ([]byte, []int)
func (*ExecutorGroup) GetExecutors ¶
func (m *ExecutorGroup) GetExecutors() []*Executor
func (*ExecutorGroup) Marshal ¶
func (m *ExecutorGroup) Marshal() (dAtA []byte, err error)
func (*ExecutorGroup) MarshalToSizedBuffer ¶
func (m *ExecutorGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExecutorGroup) ProtoMessage ¶
func (*ExecutorGroup) ProtoMessage()
func (*ExecutorGroup) Reset ¶
func (m *ExecutorGroup) Reset()
func (*ExecutorGroup) Size ¶
func (m *ExecutorGroup) Size() (n int)
func (*ExecutorGroup) String ¶
func (m *ExecutorGroup) String() string
func (*ExecutorGroup) Unmarshal ¶
func (m *ExecutorGroup) Unmarshal(dAtA []byte) error
func (*ExecutorGroup) XXX_DiscardUnknown ¶
func (m *ExecutorGroup) XXX_DiscardUnknown()
func (*ExecutorGroup) XXX_Marshal ¶
func (m *ExecutorGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExecutorGroup) XXX_Merge ¶
func (m *ExecutorGroup) XXX_Merge(src proto.Message)
func (*ExecutorGroup) XXX_Size ¶
func (m *ExecutorGroup) XXX_Size() int
func (*ExecutorGroup) XXX_Unmarshal ¶
func (m *ExecutorGroup) XXX_Unmarshal(b []byte) error
type JobTemplate ¶
type JobTemplate struct { // Number of jobs to create from this template. Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // Number of jobs created from this template that have succeeded. // Maintained by the simulator. NumberSuccessful int64 `protobuf:"varint,2,opt,name=numberSuccessful,proto3" json:"numberSuccessful,omitempty"` // Queue to which this template belongs. Populated automatically. Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` // Unique id for this template. An id is generated if empty. Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` JobSet string `protobuf:"bytes,5,opt,name=job_set,json=jobSet,proto3" json:"jobSet,omitempty"` QueuePriority uint32 `protobuf:"varint,6,opt,name=queue_priority,json=queuePriority,proto3" json:"queuePriority,omitempty"` PriorityClassName string `protobuf:"bytes,7,opt,name=priority_class_name,json=priorityClassName,proto3" json:"priorityClassName,omitempty"` Requirements schedulerobjects.PodRequirements `protobuf:"bytes,8,opt,name=requirements,proto3" json:"requirements"` // List of template ids that must be completed before this template is submitted. Dependencies []string `protobuf:"bytes,9,rep,name=dependencies,proto3" json:"dependencies,omitempty"` // Minimum time from which jobs are created from this template. MinSubmitTime time.Time `protobuf:"bytes,10,opt,name=min_submit_time,json=minSubmitTime,proto3,stdtime" json:"minSubmitTime"` // Job runtime mean in seconds. RuntimeMean int64 `protobuf:"varint,11,opt,name=runtime_mean,json=runtimeMean,proto3" json:"runtimeMean,omitempty"` // Job runtime variance in seconds squared. // If zero, runtime is deterministic. RuntimeVariance int64 `protobuf:"varint,12,opt,name=runtime_variance,json=runtimeVariance,proto3" json:"runtimeVariance,omitempty"` }
func (*JobTemplate) Descriptor ¶
func (*JobTemplate) Descriptor() ([]byte, []int)
func (*JobTemplate) GetDependencies ¶
func (m *JobTemplate) GetDependencies() []string
func (*JobTemplate) GetId ¶
func (m *JobTemplate) GetId() string
func (*JobTemplate) GetJobSet ¶
func (m *JobTemplate) GetJobSet() string
func (*JobTemplate) GetMinSubmitTime ¶
func (m *JobTemplate) GetMinSubmitTime() time.Time
func (*JobTemplate) GetNumber ¶
func (m *JobTemplate) GetNumber() int64
func (*JobTemplate) GetNumberSuccessful ¶
func (m *JobTemplate) GetNumberSuccessful() int64
func (*JobTemplate) GetPriorityClassName ¶
func (m *JobTemplate) GetPriorityClassName() string
func (*JobTemplate) GetQueue ¶
func (m *JobTemplate) GetQueue() string
func (*JobTemplate) GetQueuePriority ¶
func (m *JobTemplate) GetQueuePriority() uint32
func (*JobTemplate) GetRequirements ¶
func (m *JobTemplate) GetRequirements() schedulerobjects.PodRequirements
func (*JobTemplate) GetRuntimeMean ¶
func (m *JobTemplate) GetRuntimeMean() int64
func (*JobTemplate) GetRuntimeVariance ¶
func (m *JobTemplate) GetRuntimeVariance() int64
func (*JobTemplate) Marshal ¶
func (m *JobTemplate) Marshal() (dAtA []byte, err error)
func (*JobTemplate) MarshalToSizedBuffer ¶
func (m *JobTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*JobTemplate) ProtoMessage ¶
func (*JobTemplate) ProtoMessage()
func (*JobTemplate) Reset ¶
func (m *JobTemplate) Reset()
func (*JobTemplate) Size ¶
func (m *JobTemplate) Size() (n int)
func (*JobTemplate) String ¶
func (m *JobTemplate) String() string
func (*JobTemplate) Unmarshal ¶
func (m *JobTemplate) Unmarshal(dAtA []byte) error
func (*JobTemplate) XXX_DiscardUnknown ¶
func (m *JobTemplate) XXX_DiscardUnknown()
func (*JobTemplate) XXX_Marshal ¶
func (m *JobTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JobTemplate) XXX_Merge ¶
func (m *JobTemplate) XXX_Merge(src proto.Message)
func (*JobTemplate) XXX_Size ¶
func (m *JobTemplate) XXX_Size() int
func (*JobTemplate) XXX_Unmarshal ¶
func (m *JobTemplate) XXX_Unmarshal(b []byte) error
type NodeTemplate ¶
type NodeTemplate struct { Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` Taints []v1.Taint `protobuf:"bytes,2,rep,name=taints,proto3" json:"taints"` Labels map[string]string `` /* 153-byte string literal not displayed */ TotalResources schedulerobjects.ResourceList `protobuf:"bytes,4,opt,name=total_resources,json=totalResources,proto3" json:"totalResources"` }
func (*NodeTemplate) Descriptor ¶
func (*NodeTemplate) Descriptor() ([]byte, []int)
func (*NodeTemplate) GetLabels ¶
func (m *NodeTemplate) GetLabels() map[string]string
func (*NodeTemplate) GetNumber ¶
func (m *NodeTemplate) GetNumber() int64
func (*NodeTemplate) GetTaints ¶
func (m *NodeTemplate) GetTaints() []v1.Taint
func (*NodeTemplate) GetTotalResources ¶
func (m *NodeTemplate) GetTotalResources() schedulerobjects.ResourceList
func (*NodeTemplate) Marshal ¶
func (m *NodeTemplate) Marshal() (dAtA []byte, err error)
func (*NodeTemplate) MarshalToSizedBuffer ¶
func (m *NodeTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NodeTemplate) ProtoMessage ¶
func (*NodeTemplate) ProtoMessage()
func (*NodeTemplate) Reset ¶
func (m *NodeTemplate) Reset()
func (*NodeTemplate) Size ¶
func (m *NodeTemplate) Size() (n int)
func (*NodeTemplate) String ¶
func (m *NodeTemplate) String() string
func (*NodeTemplate) Unmarshal ¶
func (m *NodeTemplate) Unmarshal(dAtA []byte) error
func (*NodeTemplate) XXX_DiscardUnknown ¶
func (m *NodeTemplate) XXX_DiscardUnknown()
func (*NodeTemplate) XXX_Marshal ¶
func (m *NodeTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NodeTemplate) XXX_Merge ¶
func (m *NodeTemplate) XXX_Merge(src proto.Message)
func (*NodeTemplate) XXX_Size ¶
func (m *NodeTemplate) XXX_Size() int
func (*NodeTemplate) XXX_Unmarshal ¶
func (m *NodeTemplate) XXX_Unmarshal(b []byte) error
type Pool ¶
type Pool struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ExecutorGroups []*ExecutorGroup `protobuf:"bytes,2,rep,name=executor_groups,json=executorGroups,proto3" json:"executorGroups,omitempty"` }
func (*Pool) Descriptor ¶
func (*Pool) GetExecutorGroups ¶
func (m *Pool) GetExecutorGroups() []*ExecutorGroup
func (*Pool) ProtoMessage ¶
func (*Pool) ProtoMessage()
func (*Pool) XXX_DiscardUnknown ¶
func (m *Pool) XXX_DiscardUnknown()
func (*Pool) XXX_Unmarshal ¶
type Queue ¶
type Queue struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Weight float64 `protobuf:"fixed64,2,opt,name=weight,proto3" json:"weight,omitempty"` JobTemplates []*JobTemplate `protobuf:"bytes,3,rep,name=job_templates,json=jobTemplates,proto3" json:"jobTemplates,omitempty"` }
func (*Queue) Descriptor ¶
func (*Queue) GetJobTemplates ¶
func (m *Queue) GetJobTemplates() []*JobTemplate
func (*Queue) ProtoMessage ¶
func (*Queue) ProtoMessage()
func (*Queue) XXX_DiscardUnknown ¶
func (m *Queue) XXX_DiscardUnknown()
func (*Queue) XXX_Marshal ¶
func (*Queue) XXX_Unmarshal ¶
type Simulator ¶
type Simulator struct {
// contains filtered or unexported fields
}
Simulator captures the parameters and state of the Armada simulator.
func NewSimulator ¶
func NewSimulator(testCase *TestCase, schedulingConfig configuration.SchedulingConfig) (*Simulator, error)
func (*Simulator) C ¶
func (s *Simulator) C() <-chan *armadaevents.EventSequence
type TestCase ¶
type TestCase struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` RandomSeed int64 `protobuf:"varint,2,opt,name=random_seed,json=randomSeed,proto3" json:"randomSeed,omitempty"` Pools []*Pool `protobuf:"bytes,3,rep,name=pools,proto3" json:"pools,omitempty"` Queues []Queue `protobuf:"bytes,4,rep,name=queues,proto3" json:"queues"` }
TODO: Runtime family. Workflow manager delay. Job pending delay.
func TestCaseFromBytes ¶
TestCaseFromBytes unmarshalls bytes into a TestCase.
func TestCaseFromFilePath ¶
func TestCasesFromFilePaths ¶
func TestCasesFromPattern ¶
func (*TestCase) Descriptor ¶
func (*TestCase) GetRandomSeed ¶
func (*TestCase) MarshalToSizedBuffer ¶
func (*TestCase) ProtoMessage ¶
func (*TestCase) ProtoMessage()
func (*TestCase) XXX_DiscardUnknown ¶
func (m *TestCase) XXX_DiscardUnknown()
func (*TestCase) XXX_Marshal ¶
func (*TestCase) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.