Examples of releaseWorkerResource()


Examples of org.apache.tajo.master.rm.TajoWorkerResourceManager.releaseWorkerResource()

          eachResource.getAllocatedMemoryMB() >= minMemory &&  eachResource.getAllocatedMemoryMB() <= maxMemory);
      containerIds.add(eachResource.getContainerId());
    }

    for(YarnProtos.ContainerIdProto eachContainerId: containerIds) {
      tajoWorkerResourceManager.releaseWorkerResource(ebId, eachContainerId);
    }

    for(WorkerResource eachWorker: tajoWorkerResourceManager.getWorkers().values()) {
      assertEquals(workerMemoryMB, eachWorker.getAvailableMemoryMB());
      assertEquals(0, eachWorker.getUsedMemoryMB());
View Full Code Here

Examples of org.apache.tajo.master.rm.TajoWorkerResourceManager.releaseWorkerResource()

      //release resource
      for(WorkerAllocatedResource eachResource: TestTajoResourceManager.this.response.getWorkerAllocatedResourceList()) {
        assertTrue(
            eachResource.getAllocatedMemoryMB() >= minMemory &&  eachResource.getAllocatedMemoryMB() <= maxMemory);
        tajoWorkerResourceManager.releaseWorkerResource(ebId, eachResource.getContainerId());
      }

      for(WorkerResource eachWorker: tajoWorkerResourceManager.getWorkers().values()) {
        assertEquals(0, eachWorker.getUsedMemoryMB());
        assertEquals(workerMemoryMB, eachWorker.getAvailableMemoryMB());
View Full Code Here

Examples of org.apache.tajo.master.rm.TajoWorkerResourceManager.releaseWorkerResource()

    assertEquals(workerDiskSlots * numWorkers, totalUsedDisks, 0);

    assertEquals(numWorkers * 3, response.getWorkerAllocatedResourceList().size());

    for(YarnProtos.ContainerIdProto eachContainerId: containerIds) {
      tajoWorkerResourceManager.releaseWorkerResource(ebId, eachContainerId);
    }

    for(WorkerResource eachWorker: tajoWorkerResourceManager.getWorkers().values()) {
      assertEquals(workerMemoryMB, eachWorker.getAvailableMemoryMB());
      assertEquals(0, eachWorker.getUsedMemoryMB());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.