Documentation
¶
Index ¶
- type Scheduler
- func NewBinPackScheduler(c cache.Cache) Scheduler
- func NewLeastAdapters(c cache.Cache) Scheduler
- func NewLeastLatencyScheduler(c cache.Cache) Scheduler
- func NewLeastThroughputScheduler(c cache.Cache) Scheduler
- func NewRandomScheduler(c cache.Cache) Scheduler
- func NewScheduler(policyName string, c cache.Cache) (Scheduler, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler interface {
// SelectPod selects a suitable Pod to schedule the model adapter based on the given model and available pods.
// The input pods is guaranteed to be non-empty and contain only routable pods.
SelectPod(ctx context.Context, model string, readyPods []v1.Pod) (*v1.Pod, error)
}
func NewBinPackScheduler ¶
func NewLeastAdapters ¶
func NewRandomScheduler ¶
Click to show internal directories.
Click to hide internal directories.