p2p: a node asks its peers for its own listings after losing its database
Sync kind 'author': everything a peer holds from one author key, any region. A node asks the first 3 peers it syncs with per run. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
@@ -148,8 +148,12 @@ starting a design-heavy item; see "Working with the owner".
|
||||
- **Image storage.** Upload, re-encode, strip metadata, size caps, origin
|
||||
hosting, gateways that stream without storing, hash-list matching where
|
||||
access exists. Listings already have an `images` field of hashes.
|
||||
- **Recovering listings onto an empty database** (after losing the data
|
||||
directory but not the phrase).
|
||||
- **Recovering listings onto an empty database** is built
|
||||
(`internal/p2p/recover.go`, sync kind `author`): the node asks its first 3
|
||||
peers per run for everything signed by its own key. It finds only what
|
||||
connected peers hold, so listings in a region nobody connected follows stay
|
||||
lost. Messages are not recovered (a recovered device cannot read old ones
|
||||
anyway).
|
||||
- **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
|
||||
|
||||
Reference in New Issue
Block a user