-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
network: remove tier3_request_queue (#12353)
Incoming state part requests are [throttled by the view client actor](https://github.com/near/nearcore/blob/8e30ccdd425ecbbeeec8d96bfc9a7e02bc35c2d3/chain/client/src/view_client_actor.rs#L1346-L1349), which drops excess requests to avoid overloading the resources of the node. This PR removes the additional layer of queueing on the network side of things. There is little benefit from queueing: - State part requests are made at a regular rate over a long period of time and distributed well across nodes; there is no need for serving nodes to modulate spikes in demand - If the steady flow of incoming requests is too high for the view client's throttling rate, queueing will change _which_ requests are served but does not increase _how many_ requests are served; there is no benefit in that and a major downside: - Queueing makes response time less predictable, forcing the requesting node to wait longer before deciding that a request was dropped/failed/lost The queue served a secondary purpose, which is that it allowed PeerActors receiving state part requests to hand them off to the PeerManagerActor. Instead we set up an adapter so that the requests can be passed as actix messages.
- Loading branch information
1 parent
22259d0
commit 6ccbd62
Showing
15 changed files
with
138 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.