Class HelixLeastLoadedGroupRoutingStrategy
java.lang.Object
com.linkedin.venice.fastclient.meta.AbstractClientRoutingStrategy
com.linkedin.venice.fastclient.meta.HelixGroupRoutingStrategy
com.linkedin.venice.fastclient.meta.HelixLeastLoadedGroupRoutingStrategy
This class is used to route requests to the least loaded group based on the response time collected in the past.
 So far, it only tracks the response time of multi-key requests.
- 
Field SummaryFields inherited from class com.linkedin.venice.fastclient.meta.HelixGroupRoutingStrategyhelixGroupInfoAtomicReference, helixGroupStats, instanceHealthMonitor
- 
Constructor SummaryConstructorsConstructorDescriptionHelixLeastLoadedGroupRoutingStrategy(InstanceHealthMonitor instanceHealthMonitor, io.tehuti.metrics.MetricsRepository metricsRepository, String storeName) 
- 
Method SummaryModifier and TypeMethodDescriptionintgetHelixGroupId(long requestId, int groupIdForOriginalRequest) Get the least loaded group based on the response time collected in the past.Methods inherited from class com.linkedin.venice.fastclient.meta.HelixGroupRoutingStrategygetGroupCount, getReplicas, trackRequest, updateHelixGroupInfo
- 
Constructor Details- 
HelixLeastLoadedGroupRoutingStrategypublic HelixLeastLoadedGroupRoutingStrategy(InstanceHealthMonitor instanceHealthMonitor, io.tehuti.metrics.MetricsRepository metricsRepository, String storeName) 
 
- 
- 
Method Details- 
getHelixGroupIdpublic int getHelixGroupId(long requestId, int groupIdForOriginalRequest) Get the least loaded group based on the response time collected in the past.- Overrides:
- getHelixGroupIdin class- HelixGroupRoutingStrategy
 
 
-