private boolean isMajorityOfReplicasDown() {
    boolean isMajorityReplicasDown = false;
    for (PartitionId partition : partitionLayout.getPartitions(null)) {
      List<? extends ReplicaId> replicas = partition.getReplicaIds();
      int replicaCount = replicas.size();
      int downReplicas = 0;
      for (ReplicaId replicaId : replicas) {
        if (replicaId.isDown()) {
          downReplicas++;
        }
      }
      if (downReplicas > replicaCount / 2) {
        isMajorityReplicasDown = true;
        break;
      }
    }
    return isMajorityReplicasDown;
  }
Metrics for the {@link StaticClusterManager}
@param hardwareLayout The {@link HardwareLayout} associated with the {@link StaticClusterManager}
@param partitionLayout The {@link PartitionLayout} associated with the {@link StaticClusterManager}
@param registry The {@link MetricRegistry} associated with the {@link StaticClusterManager}
ambry-clustermap/src/main/java/com/github/ambry/clustermap/ClusterMapMetrics.java