near / near-one-project-tracking

A repository for tracking work items that NEAR One is working on.
0 stars 0 forks source link

[ProjectTracking]: congestion control milestone 2 #11

Closed akhi3030 closed 7 months ago

akhi3030 commented 9 months ago

All information below was gathered by @akashin. I am filling it out on his behalf.

Goals

Current status

Right now we have fully implemented Local Congestion Control, meaning that shard validators and RPC nodes will not be overloaded by transactions coming into their local transaction pools and receipts generated from local transactions.

Technically, this is achieved by introducing two limits:

For the exact implemented features see https://github.com/near/nearcore/milestone/26?closed=1

Next steps

Local Congestion Control only limits local congestion sources but ignores global sources of congestion such as receipts incoming from the other shards. The Global Congestion Control milestone aims to address this by introducing a global limit on the number/size of delayed receipts that are present in the queues across all shards.

Technically, this can be achieved through:

The high-level outline of technical work can be found at https://github.com/near/nearcore/milestone/27

See the meeting notes for the relevant discussion.

As a nice to have, we can enforce this constraint at a protocol level, though this is arguably a low-priority attack vector.

Links to external documentations and discussions

Estimated effort

TODO. Nominally all the engineering effort should be in code owned by the core team. In the past engineers from the runtime team have also contributed and may contribute in future as well.

Assumptions

TODO

Pre-requisites

TODO

Out of scope

TODO. I believe that this project should just be for implementing global congestion control. The related project for transaction priority should be tracked in a different project.

jakmeier commented 7 months ago

I suggest we close this issue in favour of its successor https://github.com/near/near-one-project-tracking/issues/48