@@ -545,8 +545,8 @@ private[master] class Master(
545
545
* worker by default, in which case only one executor may be launched on each worker.
546
546
*/
547
547
548
- private [master] def scheduleExecutorsOnWorkers (app : ApplicationInfo , usableWorkers : Array [ WorkerInfo ],
549
- spreadOutApps : Boolean ): Array [Int ] = {
548
+ private [master] def scheduleExecutorsOnWorkers (app : ApplicationInfo ,
549
+ usableWorkers : Array [ WorkerInfo ], spreadOutApps : Boolean ): Array [Int ] = {
550
550
val coresPerExecutor = app.desc.coresPerExecutor.getOrElse(1 )
551
551
val memoryPerExecutor = app.desc.memoryPerExecutorMB
552
552
val numUsable = usableWorkers.length
@@ -580,9 +580,9 @@ private[master] class Master(
580
580
}
581
581
assignedCores
582
582
}
583
-
583
+
584
584
/**
585
- * Schedule and launch executors on workers
585
+ * Schedule and launch executors on workers
586
586
*/
587
587
private def startExecutorsOnWorkers (): Unit = {
588
588
// Right now this is a very simple FIFO scheduler. We keep trying to fit in the first app
@@ -598,7 +598,8 @@ private[master] class Master(
598
598
// Now that we've decided how many cores to allocate on each worker, let's allocate them
599
599
var pos = 0
600
600
for (pos <- 0 until usableWorkers.length if assignedCores(pos) > 0 ) {
601
- allocateWorkerResourceToExecutors(app, assignedCores(pos), coresPerExecutor, usableWorkers(pos))
601
+ allocateWorkerResourceToExecutors(app, assignedCores(pos), coresPerExecutor,
602
+ usableWorkers(pos))
602
603
}
603
604
}
604
605
}
0 commit comments