Closed aaronbee closed 1 year ago
Patch coverage: 100.00%
and project coverage change: -0.01%
:warning:
Comparison is base (
701886e
) 70.30% compared to head (a67f669
) 70.30%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Testing shows this didn't affect performance, so I think this is worth merging because it simplifies thinking about the cost of a SendBatch.
Instead of starting goroutines we can queue each region server's collection of RPCs and only after queueing them all wait for all responses. We get a similar amount of parallelism, the only potential slow down is that we can't queue one region server's RPCs until the previous is able to be queued.
By not starting goroutines, the resource usage of SendBatch is more predictable. And not starting goroutines is likely to be less expensive overall.
This change also adds a new metric for number of splits that occur in SendBatch.