mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-30 16:30:47 +08:00
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.
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user