Flexible resource accounting and pod resource containment:

- new: introduce AllocationStrategy, Predicate, and Procurement to scheduler pkg
- new: --contain-pod-resources flag (workaround for docker+systemd+mesos problems)
- new: --account-for-pod-resources flag (for testing overcommitment)
- bugfix: forward -v flag from minion controller to executor
This commit is contained in:
James DeFelice
2015-08-31 23:06:59 +00:00
parent c28b68d254
commit a1cea8dd87
14 changed files with 517 additions and 233 deletions

View File

@@ -42,11 +42,11 @@ func (m *MockScheduler) slaveFor(id string) (slave *Slave, ok bool) {
ok = args.Bool(1)
return
}
func (m *MockScheduler) algorithm() (f PodScheduleFunc) {
func (m *MockScheduler) algorithm() (f PodScheduler) {
args := m.Called()
x := args.Get(0)
if x != nil {
f = x.(PodScheduleFunc)
f = x.(PodScheduler)
}
return
}