Class InstanceLoadController

java.lang.Object
com.linkedin.venice.fastclient.meta.InstanceLoadController

public class InstanceLoadController extends Object
This class maintains per-instance LoadController to track the overload status of each instance.
  • Constructor Details

  • Method Details

    • recordResponse

      public void recordResponse(String instanceId, int responseStatus)
    • shouldRejectRequest

      public boolean shouldRejectRequest(String instanceId)
      This method will check whether the incoming request to the specified instance should be rejected or not. If it gets rejected, it will record the request in the LoadController to track the overload status.
    • getTotalNumberOfOverLoadedInstances

      public int getTotalNumberOfOverLoadedInstances()
    • getRejectionRatio

      public double getRejectionRatio(String instanceId)