public void stop() {
    isRunning = false;
  }
Stops the Allocator. Setting this flag to false exits the allocator loop.
samza-core/src/main/java/org/apache/samza/clustermanager/ContainerAllocator.java