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

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


    MachinePool machinePool = getMachinePool();
    int poolSize = machinePool.getAllocatedMachines().size();

    // clean out obsolete machines from termination queue
    this.terminationQueue.filter(machinePool.getAllocatedMachines());
    ResizePlanner resizePlanner = new ResizePlanner(machinePool,
        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()) {
View Full Code Here

TOP

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

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.