private void updateExpiryMetrics(SamzaResourceRequest request) {
    String preferredHost = request.getPreferredHost();
    if (ResourceRequestState.ANY_HOST.equals(preferredHost)) {
      state.expiredAnyHostRequests.incrementAndGet();
    } else {
      state.expiredPreferredHostRequests.incrementAndGet();
    }
    if (!request.getFaultDomains().isEmpty()) {
      state.expiredFaultDomainAwareContainerRequests.incrementAndGet();
    }
  }
Determines the request expiry timeout. Container placement actions like move, restarts can optionally override
request expiry timeout. Otherwise it defaults to { @code configuredRequestExpiryTimeout }
samza-core/src/main/java/org/apache/samza/clustermanager/ContainerAllocator.java