You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When thing slow down, it is possible that it takes a lot of time for the operations in the rpc queue to start getting handled.If they have waited too long, there is no real purpose in still trying to handle them. We might as well fail them, the way we do when we hit a back-pressure like scenario.
Adding a GFLAG to limit the amount of time an op waits in the queue. If we take longer than that to start handling the request. The request will be promptly failed, so that the resources can be used to work on more timely requests.
The text was updated successfully, but these errors were encountered:
Summary:
We do not expect calls to spend too long waiting
in the queue. If they spend way too long, it means that
the system is already in a bad state, and we may be applying
backpressure to prevent new requests from joining the queue.
To avoid spending time on calls that are too old, we will
abort calls, if they have just been waiting in the queue for too long
and move on to process more "timely" requests.
Test Plan:
Added a test.
+ Jenkins
Reviewers: kannan, bharat, hector, mikhail
Reviewed By: bharat, hector, mikhail
Subscribers: bharat, ybase
Differential Revision: https://phabricator.dev.yugabyte.com/D4251
When thing slow down, it is possible that it takes a lot of time for the operations in the rpc queue to start getting handled.If they have waited too long, there is no real purpose in still trying to handle them. We might as well fail them, the way we do when we hit a back-pressure like scenario.
Adding a GFLAG to limit the amount of time an op waits in the queue. If we take longer than that to start handling the request. The request will be promptly failed, so that the resources can be used to work on more timely requests.
The text was updated successfully, but these errors were encountered: