Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix OutputBuffer::isOverutilized (facebookincubator#7985)
Summary: OutputBuffer::isOverutilized() should return true if it is half-full. It used to return true only when full preventing effective scaling of consumers. The buffer maintains is-full state only for a short duration of time. Since producers are blocked, one fetch from one consumer resets the state to not-null. Thus the coordinator that's monitoring output buffers may never see buffer getting over-utilized and mitigate by scaling the number of consumers. This caused some queries to be very slow as they used only 4 threads for TableWrite. Pull Request resolved: facebookincubator#7985 Reviewed By: Yuhta Differential Revision: D52073744 Pulled By: mbasmanova fbshipit-source-id: 246e065d885ce52601acd4cdcba5e708c5628da5
- Loading branch information