celestiaorg / celestia-core

Celestia node software based on Tendermint.
https://celestia.org/
Apache License 2.0
470 stars 244 forks source link

Benchmark the consensus reactor #1369

Open evan-forbes opened 3 weeks ago

evan-forbes commented 3 weeks ago

Currently we see that the consensus reactor takes significant amounts of times to process messages. During network tests, we can see a 50 node network with each node having 10-15 active peers can often result in a 10000 msg pileup in a buffer for envelopes.

To help fix this, we can create a benchmark for the receive portion of the consensus reactor. By creating specific scenarios, we should be able to identify and isolate more specific instances to increase the msg processing rate of the consensus reactor.

Acceptance Criteria

Bonus

evan-forbes commented 2 weeks ago

Blocked on the results of the changes in https://github.com/cometbft/cometbft/pull/3211 make a large difference, if they do not and we still see large amounts of contention, then we continue with this issue. If not, then we move to unplanned.