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 TypeMethodDescriptiondouble
getRejectionRatio
(String instanceId) int
void
recordResponse
(String instanceId, int responseStatus) boolean
shouldRejectRequest
(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 theLoadController
to track the overload status. -
getTotalNumberOfOverLoadedInstances
public int getTotalNumberOfOverLoadedInstances() -
getRejectionRatio
-