Class SegmentReplicaCount

java.lang.Object
org.apache.druid.server.coordinator.loading.SegmentReplicaCount

public class SegmentReplicaCount extends Object
Counts the number of replicas of a segment in different states (loading, loaded, etc) in a tier or the whole cluster.
  • Constructor Details

    • SegmentReplicaCount

      public SegmentReplicaCount()
  • Method Details

    • required

      public int required()
      Required number of replicas of the segment as dictated by load rules. This includes replicas that may be in excess of the cluster capacity.
    • requiredAndLoadable

      public int requiredAndLoadable()
      Required number of replicas of the segment as dictated by load rules. This does not include replicas that are in excess of the cluster capacity.
    • totalLoaded

      public int totalLoaded()
      Number of replicas loaded on all servers. This includes replicas that are currently being dropped.