store: synchronous=NORMAL (a newcomer's catch-up 2.4x faster); memory measured with a 50,000-listing database and 30 real nodes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
@@ -157,8 +157,13 @@ starting a design-heavy item; see "Working with the owner".
|
||||
- **Public node memory** was measured (`cmd/allmende-conns`): 1000 inbound
|
||||
connections cost about 130 MB, 156 MB at the peak with 100 listings flooded
|
||||
to all of them, against the 512 MiB pod limit; the manifest sets
|
||||
`GOMEMLIMIT=400MiB` as a safety net. Not measured: real peers (DHT queries,
|
||||
relayed streams) and a node with a large database.
|
||||
`GOMEMLIMIT=400MiB` as a safety net. With a 269 MB database (50,000
|
||||
listings) the same node idled at 53 MB, held 137 MB with 1000 connections and
|
||||
peaked at 174 MB with 1000 connections plus 30 real nodes catching up.
|
||||
Not measured: relayed streams (need a node behind a NAT). The run found that
|
||||
a newcomer stored only ~137 listings/s with SQLite's `synchronous=FULL` and
|
||||
its 2-minute sync cut-off left 18% of a 20k region for the next round; the
|
||||
store now uses `synchronous=NORMAL` (63 s for all 20,140).
|
||||
- **What the abuse limits do not cover** (`internal/p2p/guard.go`, `ipgate.go`,
|
||||
`internal/api/ratelimit.go`): attackers with many real addresses, valid but
|
||||
unwanted records under the limits, and bans are per node and not shared
|
||||
|
||||
Reference in New Issue
Block a user