public void onResourceAllocated(SamzaResource resource) {
    LOG.info("Container ID: {} allocated from RM on host: {}", resource.getContainerId(), resource.getHost());
    containerAllocator.addResource(resource);
  }
A map that keeps track of how many times each processor failed. The key is the processor ID, and the
value is the {@link ProcessorFailure} object that has a count of failures.
samza-core/src/main/java/org/apache/samza/clustermanager/ContainerProcessManager.java