Rename podUpdates updates param -> podUpdatesBypass

This commit is contained in:
Dr. Stefan Schimanski 2015-11-09 12:01:51 +01:00
parent 91c5c2d3b6
commit 12efba8ce8
3 changed files with 6 additions and 7 deletions

Binary file not shown.

View File

@ -63,8 +63,8 @@ func New(c *config.Config, fw framework.Framework, ps podschedulers.PodScheduler
} }
// Watch and queue pods that need scheduling. // Watch and queue pods that need scheduling.
updates := make(chan queue.Entry, c.UpdatesBacklog) podUpdatesBypass := make(chan queue.Entry, c.UpdatesBacklog)
podUpdates := &podStoreAdapter{queue.NewHistorical(updates)} podUpdates := &podStoreAdapter{queue.NewHistorical(podUpdatesBypass)}
reflector := cache.NewReflector(lw, &api.Pod{}, podUpdates, 0) reflector := cache.NewReflector(lw, &api.Pod{}, podUpdates, 0)
q := queuer.New(queue.NewDelayFIFO(), podUpdates) q := queuer.New(queue.NewDelayFIFO(), podUpdates)
@ -101,7 +101,7 @@ func New(c *config.Config, fw framework.Framework, ps podschedulers.PodScheduler
runtime.On(startLatch, func() { runtime.On(startLatch, func() {
reflector.Run() // TODO(jdef) should listen for termination reflector.Run() // TODO(jdef) should listen for termination
podDeleter.Run(updates, terminate) podDeleter.Run(podUpdatesBypass, terminate)
q.Run(terminate) q.Run(terminate)
q.InstallDebugHandlers(mux) q.InstallDebugHandlers(mux)

View File

@ -19,12 +19,11 @@ package scheduler
// Created from contrib/mesos/docs/scheduler.monopic: // Created from contrib/mesos/docs/scheduler.monopic:
// //
//
// ┌───────────────────────────────────────────────────────────────────────┐ // ┌───────────────────────────────────────────────────────────────────────┐
// │ ┌───────────────────────────────────────┐ ┌─┴──────────────────────┐ ┌───────────────┐ // │ ┌───────────────────────────────────────┐ ┌─┴──────────────────────┐ ┌───────────────┐
// ┌─────▼─────┐ │Queuer │ Await() │ podUpdates │ │ │ // ────────▼─────────┐ │Queuer │ Await() │ podUpdates │ │ │
// │ updates │ │- Yield() *api.Pod ├──pod CRUD ─▶ (queue.HistoricalFIFO) ◀──reflector──▶pods ListWatch ├──apiserver──▶ // │ podUpdatesBypass │ │- Yield() *api.Pod ├──pod CRUD ─▶ (queue.HistoricalFIFO) ◀──reflector──▶pods ListWatch ├──apiserver──▶
// └─────▲─────┘ │- Requeue(pod)/Dequeue(id)/Reoffer(pod)│ events │ │ │ │ // ────────▲─────────┘ │- Requeue(pod)/Dequeue(id)/Reoffer(pod)│ events │ │ │ │
// │ └───────────────────▲───────────────────┘ └───────────┬────────────┘ └───────────────┘ // │ └───────────────────▲───────────────────┘ └───────────┬────────────┘ └───────────────┘
// │ │ │ // │ │ │
// │ │ │ // │ │ │