Add batch size CLI flags

This commit is contained in:
Paul Hauner
2023-07-07 14:39:45 +10:00
parent 596df1850d
commit 15ed85d6f9
4 changed files with 44 additions and 5 deletions

View File

@@ -2289,6 +2289,8 @@ fn beacon_processor() {
.flag("beacon-processor-max-workers", Some("1"))
.flag("beacon-processor-work-queue", Some("2"))
.flag("beacon-processor-reprocess-queue", Some("3"))
.flag("beacon-processor-attestation-batch-size", Some("4"))
.flag("beacon-processor-aggregate-batch-size", Some("5"))
.flag("disable-backfill-rate-limiting", None)
.run_with_zero_port()
.with_config(|config| {
@@ -2298,6 +2300,8 @@ fn beacon_processor() {
max_workers: 1,
max_work_event_queue_len: 2,
max_scheduled_work_queue_len: 3,
max_gossip_attestation_batch_size: 4,
max_gossip_aggregate_batch_size: 5,
enable_backfill_rate_limiting: false
}
)