mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 10:30:41 +08:00
node: Further increase the rate-limit defaults
The rate-limitter gets hit on connect, due to historical gossip messages being exchanged. This results in a high initial burst that needs to be accounted for.
This commit is contained in:
@@ -38,12 +38,12 @@ $ rad config
|
||||
"maxOpenFiles": 4096,
|
||||
"rate": {
|
||||
"inbound": {
|
||||
"fillRate": 2.0,
|
||||
"capacity": 128
|
||||
"fillRate": 5.0,
|
||||
"capacity": 1024
|
||||
},
|
||||
"outbound": {
|
||||
"fillRate": 5.0,
|
||||
"capacity": 256
|
||||
"fillRate": 10.0,
|
||||
"capacity": 2048
|
||||
}
|
||||
},
|
||||
"connection": {
|
||||
|
||||
@@ -101,12 +101,12 @@ mod routes {
|
||||
"maxOpenFiles": 4096,
|
||||
"rate": {
|
||||
"inbound": {
|
||||
"fillRate": 2.0,
|
||||
"capacity": 128
|
||||
"fillRate": 5.0,
|
||||
"capacity": 1024
|
||||
},
|
||||
"outbound": {
|
||||
"fillRate": 5.0,
|
||||
"capacity": 256
|
||||
"fillRate": 10.0,
|
||||
"capacity": 2048
|
||||
}
|
||||
},
|
||||
"connection": {
|
||||
|
||||
@@ -168,12 +168,12 @@ impl Default for RateLimits {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
inbound: RateLimit {
|
||||
fill_rate: 2.0,
|
||||
capacity: 128,
|
||||
fill_rate: 5.0,
|
||||
capacity: 1024,
|
||||
},
|
||||
outbound: RateLimit {
|
||||
fill_rate: 5.0,
|
||||
capacity: 256,
|
||||
fill_rate: 10.0,
|
||||
capacity: 2048,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user