From abf89438ea3e3b61dda68677761ba43772eac27d Mon Sep 17 00:00:00 2001 From: cloudhead Date: Tue, 30 Apr 2024 14:46:30 +0200 Subject: [PATCH] node: Increase default rate-limiter config With the increase in traffic on the network after launch, the old defaults don't make sense anymore. Longer term, we should look into throttling outgoing messages as well, prioritizing original messages over relayed messages. --- radicle-cli/examples/rad-config.md | 8 ++++---- radicle-httpd/src/api/v1/profile.rs | 8 ++++---- radicle/src/node/config.rs | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/radicle-cli/examples/rad-config.md b/radicle-cli/examples/rad-config.md index b6dc7356..29ae359b 100644 --- a/radicle-cli/examples/rad-config.md +++ b/radicle-cli/examples/rad-config.md @@ -38,12 +38,12 @@ $ rad config "maxOpenFiles": 4096, "rate": { "inbound": { - "fillRate": 0.2, - "capacity": 32 + "fillRate": 2.0, + "capacity": 128 }, "outbound": { - "fillRate": 1.0, - "capacity": 64 + "fillRate": 5.0, + "capacity": 256 } }, "connection": { diff --git a/radicle-httpd/src/api/v1/profile.rs b/radicle-httpd/src/api/v1/profile.rs index 2307a0b5..85a61800 100644 --- a/radicle-httpd/src/api/v1/profile.rs +++ b/radicle-httpd/src/api/v1/profile.rs @@ -101,12 +101,12 @@ mod routes { "maxOpenFiles": 4096, "rate": { "inbound": { - "fillRate": 0.2, - "capacity": 32 + "fillRate": 2.0, + "capacity": 128 }, "outbound": { - "fillRate": 1.0, - "capacity": 64 + "fillRate": 5.0, + "capacity": 256 } }, "connection": { diff --git a/radicle/src/node/config.rs b/radicle/src/node/config.rs index 821643cb..a6f9a32a 100644 --- a/radicle/src/node/config.rs +++ b/radicle/src/node/config.rs @@ -168,12 +168,12 @@ impl Default for RateLimits { fn default() -> Self { Self { inbound: RateLimit { - fill_rate: 0.2, - capacity: 32, + fill_rate: 2.0, + capacity: 128, }, outbound: RateLimit { - fill_rate: 1.0, - capacity: 64, + fill_rate: 5.0, + capacity: 256, }, } }