Commit 66e0885
Drop max(1, ...) floor in issueOutboundFanout (#730)
Summary:
Pull Request resolved: #730
issueOutboundFanout previously rounded the per-method call count via std::max(1, round(perSessionCounts[i] * scale)). At the default --rpc_fanout_scale=0.025, methods with perSessionCounts() < 20 (the long-tail outbound RPCs production hits about once per 200 sessions) ended up appearing once per session. That inflated the per-method ratio of slow-but-infrequent methods relative to their production frequency, and the inflated tail samples dominated the aggregate fanout latency distribution observed by issueOutboundFanout's collectAll.
Replace the floor with a clean drop: round to the nearest integer, then continue if the result is zero. Methods whose expected per-session count is below 0.5/scale (= 20 at default scale) are skipped entirely instead of being over-represented at one call per session.
Reviewed By: YifanYuan3
Differential Revision: D1051192251 parent 66fb4d3 commit 66e0885
1 file changed
Lines changed: 11 additions & 4 deletions
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
745 | 752 | | |
746 | 753 | | |
747 | 754 | | |
| |||
0 commit comments