From a3685530852926d062208a087ce6c8afcfba18f5 Mon Sep 17 00:00:00 2001 From: James Wilson Date: Fri, 30 Jul 2021 15:39:30 +0100 Subject: [PATCH] Add note and reduce max data per second default as we expect much less traffic than existing avg --- backend/telemetry_shard/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/telemetry_shard/src/main.rs b/backend/telemetry_shard/src/main.rs index cc3aa90..d7e0a9c 100644 --- a/backend/telemetry_shard/src/main.rs +++ b/backend/telemetry_shard/src/main.rs @@ -71,7 +71,10 @@ struct Opts { /// node is allowed to send to a shard before it gets booted. This is averaged over a /// rolling window of 10 seconds, and so spikes beyond this limit are allowed as long as /// the average traffic in the last 10 seconds falls below this value. - #[structopt(long, default_value = "512k")] + /// + /// As a reference point, syncing a new Polkadot node leads to a maximum of about 25k of + /// traffic on average (at least initially). + #[structopt(long, default_value = "256k")] max_node_data_per_second: ByteSize, /// How many seconds is a "/feed" connection that violates the '--max-node-data-per-second' /// value prevented from reconnecting to this shard for, in seconds.