Add note and reduce max data per second default as we expect much less traffic than existing avg

This commit is contained in:
James Wilson
2021-07-30 15:39:30 +01:00
parent 0b1a6f45fa
commit a368553085
+4 -1
View File
@@ -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.