Documentation ¶
Index ¶
- func RegisterMetrics(r prometheus.Registerer) error
- type Scheduler
- func (s *Scheduler) Disconnected(mesossched.SchedulerDriver)
- func (s *Scheduler) Error(_ mesossched.SchedulerDriver, err string)
- func (s *Scheduler) ExecutorLost(_ mesossched.SchedulerDriver, executorID *mesosproto.ExecutorID, ...)
- func (s *Scheduler) FrameworkMessage(driver mesossched.SchedulerDriver, executorID *mesosproto.ExecutorID, ...)
- func (s *Scheduler) Kill(taskId string) error
- func (s *Scheduler) OfferRescinded(_ mesossched.SchedulerDriver, offerID *mesosproto.OfferID)
- func (s *Scheduler) Reconcile(driver mesossched.SchedulerDriver)
- func (s *Scheduler) Registered(driver mesossched.SchedulerDriver, frameworkID *mesosproto.FrameworkID, ...)
- func (s *Scheduler) Reregistered(driver mesossched.SchedulerDriver, masterInfo *mesosproto.MasterInfo)
- func (s *Scheduler) ResourceOffers(driver mesossched.SchedulerDriver, offers []*mesosproto.Offer)
- func (s *Scheduler) Run(settings *Settings)
- func (s *Scheduler) ScheduleTask(request eremetic.Request) (string, error)
- func (s *Scheduler) SlaveLost(_ mesossched.SchedulerDriver, slaveID *mesosproto.SlaveID)
- func (s *Scheduler) StatusUpdate(driver mesossched.SchedulerDriver, status *mesosproto.TaskStatus)
- func (s *Scheduler) Stop()
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMetrics ¶ added in v0.26.0
func RegisterMetrics(r prometheus.Registerer) error
RegisterMetrics registers mesos metrics to a prometheus Registerer.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler holds the structure of the Eremetic Scheduler
func NewScheduler ¶
NewScheduler returns a new instance of the default scheduler.
func (*Scheduler) Disconnected ¶
func (s *Scheduler) Disconnected(mesossched.SchedulerDriver)
Disconnected is called when the Scheduler is Disconnected
func (*Scheduler) Error ¶
func (s *Scheduler) Error(_ mesossched.SchedulerDriver, err string)
Error is invoked when there is an unrecoverable error in the scheduler or scheduler driver.
func (*Scheduler) ExecutorLost ¶
func (s *Scheduler) ExecutorLost(_ mesossched.SchedulerDriver, executorID *mesosproto.ExecutorID, slaveID *mesosproto.SlaveID, status int)
ExecutorLost is invoked when an executor has exited/terminated.
func (*Scheduler) FrameworkMessage ¶
func (s *Scheduler) FrameworkMessage( driver mesossched.SchedulerDriver, executorID *mesosproto.ExecutorID, slaveID *mesosproto.SlaveID, message string)
FrameworkMessage is invoked when an executor sends a message.
func (*Scheduler) OfferRescinded ¶
func (s *Scheduler) OfferRescinded(_ mesossched.SchedulerDriver, offerID *mesosproto.OfferID)
OfferRescinded is invoked when an offer is no longer valid.
func (*Scheduler) Reconcile ¶
func (s *Scheduler) Reconcile(driver mesossched.SchedulerDriver)
Reconcile reconciles the currently scheduled tasks.
func (*Scheduler) Registered ¶
func (s *Scheduler) Registered(driver mesossched.SchedulerDriver, frameworkID *mesosproto.FrameworkID, masterInfo *mesosproto.MasterInfo)
Registered is called when the Scheduler is Registered
func (*Scheduler) Reregistered ¶
func (s *Scheduler) Reregistered(driver mesossched.SchedulerDriver, masterInfo *mesosproto.MasterInfo)
Reregistered is called when the Scheduler is Reregistered
func (*Scheduler) ResourceOffers ¶
func (s *Scheduler) ResourceOffers(driver mesossched.SchedulerDriver, offers []*mesosproto.Offer)
ResourceOffers handles the Resource Offers
func (*Scheduler) ScheduleTask ¶
ScheduleTask tries to register a new task in the database to be scheduled. If the queue is full the task will be dropped.
func (*Scheduler) SlaveLost ¶
func (s *Scheduler) SlaveLost(_ mesossched.SchedulerDriver, slaveID *mesosproto.SlaveID)
SlaveLost is invoked when a slave has been determined unreachable.
func (*Scheduler) StatusUpdate ¶
func (s *Scheduler) StatusUpdate(driver mesossched.SchedulerDriver, status *mesosproto.TaskStatus)
StatusUpdate takes care of updating the status