Class InstanceLoadController
java.lang.Object
com.linkedin.venice.fastclient.meta.InstanceLoadController
This class maintains per-instance
LoadController to track the overload status of each instance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetRejectionRatio(String instanceId) intvoidrecordResponse(String instanceId, int responseStatus) booleanshouldRejectRequest(String instanceId) This method will check whether the incoming request to the specified instance should be rejected or not.
-
Constructor Details
-
InstanceLoadController
-
-
Method Details
-
recordResponse
-
shouldRejectRequest
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 theLoadControllerto track the overload status. -
getTotalNumberOfOverLoadedInstances
public int getTotalNumberOfOverLoadedInstances() -
getRejectionRatio
-