SPECS: the capacity test is dropped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
@@ -119,7 +119,7 @@ in the middle.
|
||||
| Abuse limits: per-peer gossip rate and ban (`internal/p2p/guard.go`), sync stream limits, 100 listings per author, 16 inbound connections per public IP, 600 API requests a minute per client, trusted proxies for `X-Forwarded-For` | done, tested, simulated |
|
||||
| Packaging: Dockerfile, Nix flake and module, `make image` | done |
|
||||
| Kubernetes bootstrap node (`k8s/`, kustomize, Traefik IngressRoute; `DIFFICULTY`, `REGION`, `TRUSTED_PROXY` in `config.env`) | written and **deployed by the owner**. The manifest now pins image `f784553` (digest in `kustomization.yaml`, pushed 2026-11-19), which has everything above; whether it is applied is the owner's to say, and the previously running image is older than digest sync, anti-entropy and reports |
|
||||
| Load tool `cmd/allmende-load` (signed invented listings into a data directory, mining-time measurement) and `scripts/fake-listings.mjs` | done; the 100,000-listing capacity test was started and **not finished** |
|
||||
| Load tool `cmd/allmende-load` (signed invented listings into a data directory, mining-time measurement) and `scripts/fake-listings.mjs` | done. A 100,000-listing capacity test was started and **dropped on purpose** (owner: not a goal now); the limits noticed on the way are `maxSyncPages` 200 × page 500, `syncTimeout` 2 minutes, a `ListingDigest` that scans a whole region, one SQLite connection |
|
||||
| Network simulator `cmd/allmende-sim`: 100-300 real nodes, latency, connection loss, attackers, seeds down, repair (results in docs/PROTOCOL.md) | done |
|
||||
| Tests: Go (`-race`), web (`node:test` + jsdom), end-to-end with real binaries (`make e2e`) | all passing |
|
||||
|
||||
@@ -153,13 +153,6 @@ starting a design-heavy item; see "Working with the owner".
|
||||
- **Check a public node's memory under load.** `--public` nodes now accept
|
||||
1000 inbound connections (`--max-conns`); nobody has measured a node holding
|
||||
that many against the 512 MiB pod limit.
|
||||
- **Finish the capacity test.** Fill a node with 100,000 listings
|
||||
(`allmende-load -count`, difficulty 8 locally) and see how a bootstrap node
|
||||
syncs and serves them. Known limits to fix first: `maxSyncPages` 200 × page
|
||||
500 caps one sync at 100,000, `syncTimeout` is 2 minutes, `ListingDigest`
|
||||
scans every row of a region per call, SQLite uses one connection, about
|
||||
4.6 KB a listing. The 100-per-author quota also means 100,000 listings need
|
||||
1,000 authors.
|
||||
- **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