Class ReadRequestThrottler

java.lang.Object
com.linkedin.venice.router.throttle.ReadRequestThrottler
All Implemented Interfaces:
RoutersClusterManager.RouterCountChangedListener, StoreDataChangedListener, RouterThrottler

This class define the throttler on reads request. Basically it will calculate the store quota per router based on the total store quota and the number of living routers. Then a StoreReadThrottler will be created to maintain the throttler for this store and all storage nodes which get the ONLINE replica for the current version of this store. For each read request throttler will ask the related StoreReadThrottler to check both store level quota and storage level quota then accept or reject it.