Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xds: reduce the size of ring for testing pick distributions (#8079)
In the ring hash LB policy, building the ring is computationally heavy. Although using a larger ring can make the RPC distribution closer to the actual weights of hosts, it takes long time to finish the test. Internally, each test class is expected to finish within 1 minute, while each of the test cases for testing pick distribution takes about 30 sec. By reducing the ring size by a factor of 10, the time spent for those test cases reduce to 1-2 seconds. Now we need larger tolerance for the distribution (three hosts with weights 1:10:100): - With a ring size of 100000, the 10000 RPCs distribution is close to 91 : 866 : 9043 - With a ring size of 10000, the 10000 RPCs distribution is close to 104 : 808 : 9088 Roughly, this is still acceptable.
- Loading branch information