allmende-conns -relay: the relay holds 128 reservations of 200 asked, 67 MB; measured and documented
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
@@ -160,7 +160,11 @@ starting a design-heavy item; see "Working with the owner".
|
||||
`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
|
||||
As a relay (`allmende-conns -relay`): 128 reservations held of 200 asked
|
||||
(libp2p's default cap; 8 per address), 67 MB with 128 open circuits; a
|
||||
relayed connection ends after 2 min or 128 KB, so it only brings nodes into
|
||||
contact. With one public node at most 128 NAT'd nodes can have a relay at
|
||||
once; not tested with a real NAT or hole punching. 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`, stores a sync page in one transaction
|
||||
|
||||
Reference in New Issue
Block a user