Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CapacityManager ¶
type CapacityManager struct {
// contains filtered or unexported fields
}
CapacityManager Data structure for keeping track of worker capacities
func NewCapacityManager ¶
func NewCapacityManager(group string, model *SchedulerModel) *CapacityManager
NewCapacityManager returns a new capacity manager
type Event ¶
type Event interface {
// contains filtered or unexported methods
}
Event for internal communication
type Incoming ¶
type Incoming interface {
// contains filtered or unexported methods
}
Incoming messages from workers to leader
type Metrics ¶
type Metrics struct { ID m.JobID Code uint32 BytesIn uint64 BytesOut uint64 Latency time.Duration Error string Timestamp time.Time }
Metrics message
type PodGroup ¶
type PodGroup struct {
// contains filtered or unexported fields
}
PodGroup indicates kind of pod
func NewPodGroup ¶
func NewPodGroup(group string, clientset *kubernetes.Clientset, model *SchedulerModel, cleanup chan struct{}, failNonExistentGroup bool) (pg *PodGroup, err error)
NewPodGroup Allocates a new podGroup
type PodMetrics ¶
type PodMetrics struct {
// contains filtered or unexported fields
}
PodMetrics maintains prometheus metric collectors.
func NewPodMetrics ¶
func NewPodMetrics(group string, instance InstanceID, totalCapacity uint64) *PodMetrics
NewPodMetrics creates and returns a new prometheus metric collection.
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler stores data belonging to a scheduler.
func NewScheduler ¶
func NewScheduler() *Scheduler
NewScheduler creates a new scheduler using in cluster config.
func (*Scheduler) Register ¶
func (s *Scheduler) Register(group string, instance InstanceID, frequency uint64) (chan Incoming, chan Outgoing, error)
Register registers a WorkerGroup as a PopGroup to the Scheduler.
type SchedulerModel ¶
type SchedulerModel struct {
// contains filtered or unexported fields
}
func NewSchedulerModel ¶
func NewSchedulerModel(config *rest.Config) (*SchedulerModel, error)
Creates a new SchedulerModel using the provided config.