formatted code.
This commit is contained in:
parent
acf9332a50
commit
5a28f8539a
2 changed files with 11 additions and 10 deletions
|
@ -6,11 +6,11 @@ import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/mesos/mesos-go/api/v0/scheduler"
|
"github.com/mesos/mesos-go/api/v0/scheduler"
|
||||||
|
"github.com/montanaflynn/stats"
|
||||||
"log"
|
"log"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
"github.com/montanaflynn/stats"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func Start(quit chan struct{}, logging *bool, logMType chan elecLogDef.LogMessageType, logMsg chan string, s scheduler.Scheduler) {
|
func Start(quit chan struct{}, logging *bool, logMType chan elecLogDef.LogMessageType, logMsg chan string, s scheduler.Scheduler) {
|
||||||
|
|
|
@ -21,15 +21,16 @@ type BaseScheduler struct {
|
||||||
// Current scheduling policy used for resource offer consumption.
|
// Current scheduling policy used for resource offer consumption.
|
||||||
curSchedPolicy SchedPolicyState
|
curSchedPolicy SchedPolicyState
|
||||||
|
|
||||||
tasksCreated int
|
tasksCreated int
|
||||||
tasksRunning int
|
tasksRunning int
|
||||||
tasks []def.Task
|
tasks []def.Task
|
||||||
metrics map[string]def.Metric
|
metrics map[string]def.Metric
|
||||||
Running map[string]map[string]bool
|
Running map[string]map[string]bool
|
||||||
wattsAsAResource bool
|
wattsAsAResource bool
|
||||||
classMapWatts bool
|
classMapWatts bool
|
||||||
TasksRunningMutex sync.Mutex
|
TasksRunningMutex sync.Mutex
|
||||||
HostNameToSlaveID map[string]string
|
HostNameToSlaveID map[string]string
|
||||||
|
totalResourceAvailabilityRecorded bool
|
||||||
|
|
||||||
// First set of PCP values are garbage values, signal to logger to start recording when we're
|
// First set of PCP values are garbage values, signal to logger to start recording when we're
|
||||||
// about to schedule a new task
|
// about to schedule a new task
|
||||||
|
|
Reference in a new issue