Account for allocated bytes in setEgressBufferBackpressureThreshold()
Summary: The intention of `setEgressBufferBackpressureThreshold()` is to bound memory usage, but it accounts for write size instead. The two can have very large discrepancy, because Thrift allocates large `IOBuf`s when serializing a message: the minimum allocation size is 16KiB, but in Thrift streaming the messages can be much smaller, which can lead to under-accounting by orders of magnitude. This diff changes the definition to account for allocated bytes. Differential Revision: D31927400 fbshipit-source-id: 1172f91648b3b21d7d4076d51ec9f569b0e0ba22
Showing
Please register or sign in to comment