Class HelixGroupStats

java.lang.Object
com.linkedin.venice.stats.AbstractVeniceStats
com.linkedin.venice.stats.routing.HelixGroupStats

public class HelixGroupStats extends AbstractVeniceStats
  • Constructor Details

    • HelixGroupStats

      public HelixGroupStats(io.tehuti.metrics.MetricsRepository metricsRepository)
    • HelixGroupStats

      public HelixGroupStats(io.tehuti.metrics.MetricsRepository metricsRepository, String prefix)
  • Method Details

    • recordGroupNum

      public void recordGroupNum(int groupNum)
    • recordGroupRequest

      public void recordGroupRequest(int groupId)
    • recordGroupPendingRequest

      public void recordGroupPendingRequest(int groupId, int value)
    • recordGroupResponseWaitingTime

      public void recordGroupResponseWaitingTime(int groupId, double responseWaitingTime)
    • getGroupResponseWaitingTimeAvg

      public double getGroupResponseWaitingTimeAvg(int groupId)
    • recordRoutingLatency

      public void recordRoutingLatency(int groupId, int keyCountBucket, double responseWaitingTime)
      Records a routing-latency sample for groupId into the key-count bucket it belongs to (the bucket's inclusive lower bound, from LatencyAdaptiveGroupSelector.bucketKeyForKeyCount(int)). Feeds only the latency-adaptive selector; the shared recordGroupResponseWaitingTime(int, double) signal is left untouched for least-loaded routing and existing dashboards.
    • getRoutingLatencyAvg

      public double getRoutingLatencyAvg(int groupId, int keyCountBucket)
      Average measured routing latency (ms) for groupId in the given key-count bucket, or -1 if the bucket has no sample yet. Matches LatencyAdaptiveGroupSelector.GroupBucketLatencyProvider.
    • getRoutingLatencySampleCount

      public long getRoutingLatencySampleCount(int groupId, int keyCountBucket)
      Number of routing-latency samples recorded for groupId in the given key-count bucket, or 0 if none. Matches LatencyAdaptiveGroupSelector.GroupBucketSampleCountProvider and drives the selector's minimum-sample floor below which a bucket is treated as not yet measured for that group.