Class AdaptiveThrottlerSignalService

java.lang.Object
com.linkedin.venice.service.AbstractVeniceService
com.linkedin.davinci.kafka.consumer.AdaptiveThrottlerSignalService
All Implemented Interfaces:
Closeable, AutoCloseable

public class AdaptiveThrottlerSignalService extends AbstractVeniceService
This class contains service to periodically refresh all the signals for throttlers and update all registered throttler based on new signal values.
  • Field Details

    • HEARTBEAT_LAG_LIMIT

      public static final long HEARTBEAT_LAG_LIMIT
    • SINGLE_GET_LATENCY_P99_METRIC_NAME

      public static final String SINGLE_GET_LATENCY_P99_METRIC_NAME
      See Also:
  • Constructor Details

    • AdaptiveThrottlerSignalService

      public AdaptiveThrottlerSignalService(VeniceServerConfig veniceServerConfig, io.tehuti.metrics.MetricsRepository metricsRepository, HeartbeatMonitoringService heartbeatMonitoringService)
  • Method Details

    • registerThrottler

      public void registerThrottler(VeniceAdaptiveIngestionThrottler adaptiveIngestionThrottler)
    • refreshSignalAndThrottler

      public void refreshSignalAndThrottler()
    • isSingleGetLatencySignalActive

      public boolean isSingleGetLatencySignalActive()
    • isCurrentLeaderMaxHeartbeatLagSignalActive

      public boolean isCurrentLeaderMaxHeartbeatLagSignalActive()
    • isCurrentFollowerMaxHeartbeatLagSignalActive

      public boolean isCurrentFollowerMaxHeartbeatLagSignalActive()
    • isNonCurrentLeaderMaxHeartbeatLagSignalActive

      public boolean isNonCurrentLeaderMaxHeartbeatLagSignalActive()
    • isNonCurrentFollowerMaxHeartbeatLagSignalActive

      public boolean isNonCurrentFollowerMaxHeartbeatLagSignalActive()
    • startInner

      public boolean startInner() throws Exception
      Specified by:
      startInner in class AbstractVeniceService
      Returns:
      true if the service is completely started, false if it is still starting asynchronously (in this case, it is the implementer's responsibility to set AbstractVeniceService.serviceState to AbstractVeniceService.ServiceState.STARTED upon completion of the async work).
      Throws:
      Exception
    • stopInner

      public void stopInner() throws Exception
      Specified by:
      stopInner in class AbstractVeniceService
      Throws:
      Exception