Package com.elastisys.scale.cloudadapters.commons.resizeplanner

Examples of com.elastisys.scale.cloudadapters.commons.resizeplanner.ResizePlan


        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);
View Full Code Here

TOP

Related Classes of com.elastisys.scale.cloudadapters.commons.resizeplanner.ResizePlan

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.