-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove optimization of not sending small batches (#50)
Conduit reported "high latency". It _might_ be due to this. We're currently not sending batches of <10 blocks (1/10th of the max batch size of 100), to optimize throughput. When the indexer is caught up, this leads to (imo) unnecessarily high latency, as BOB produces blocks every 300ms and we'll thus only send a request every 3 seconds. We should instead be sending as often as possible, or at least the default of every half a second. One option is to have some sort of "am I backfilling or not" flag. I suggest just removing this optimization for now, and rather revisit this if/when we see that the next time we're backfilling, we're unnecessarily sending many small batches. I'm fairly convinced that when backfilling, this optimization ~never triggers anyway, since the requests to the node should be filling up the buffer of blocks to send.
- Loading branch information
Showing
2 changed files
with
0 additions
and
74 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