this.terminationQueue, scaleDownConfig()
.getVictimSelectionPolicy(), scaleDownConfig()
.getInstanceHourMargin());
int netSize = resizePlanner.getEffectiveSize();
ResizePlan resizePlan = resizePlanner
.calculateResizePlan(desiredSize());
if (resizePlan.isScaleUp()) {
List<Machine> startedMachines = scaleUp(poolSize, resizePlan);
poolSize += startedMachines.size();
} else if (resizePlan.isScaleDown()) {
List<ScheduledTermination> terminations = resizePlan
.getToTerminate();
LOG.info("scheduling {} server(s) for termination",
terminations.size());
for (ScheduledTermination termination : terminations) {
this.terminationQueue.add(termination);