// Participant participant = excessHaltedContainers.get(participantId);
// containersToStart.add(participant);
// excessHaltedContainers.remove(participantId); // don't release this container
} else if (!existingContainersIdSet.contains(participantId)) {
// Unallocated containers must be allocated
ContainerSpec containerSpec = new ContainerSpec(participantId);
int mem = 4096;
if (_resourceConfig.getUserConfig() != null) {
mem = _resourceConfig.getUserConfig().getIntField("memory", mem);
}
containerSpec.setMemory(mem);
containersToAcquire.add(containerSpec);
}
}
// Add all the containers that should be stopped because they fall outside the target range