aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/peers.rs
Commit message (Collapse)AuthorAgeFilesLines
* swarm: members read of where the node's document keeps themtv18 hours1-1/+5
| | | | | | | | | | | The swarm reads its members, their addresses, aliases, parties, tiers and links, at _continuum/members of the document the node holds. Where the node's document keeps them apart and hands them over as a tree (AppState::entries: a set of events, Holding::entries), they are read of that (view::members_of): by the topology, the node's registration, stability, working links, the state file's seeds, reach, and the API's aliases, dashboards and tier. No node's document does so yet but one whose store a set carries, which none starts as.
* state: plain writes take a view to write, Automerge's are asked for as suchtv2 days1-1/+1
| | | | | | | | | | | AppState::mutate_doc, mutate_doc_registering and mutate_doc_by hand what they are given a document::view::Write: the member registry, the users, sessions, forgetting and bootstrap write through them, and take whatever kind of document gives it. AppState::mutate_doc_for is for what asks more of an Automerge document than values at paths (the store's API, a remake's host, a store's events), and gives the heads after the write. What reads a view takes one of any size (dyn Write among them).
* document: values read and written through a view any kind of document givestv2 days1-2/+2
| | | | | | | | | | | | | document::view: Read (the value at a path, plain, typed, a map's keys) and Write (a value written, one deleted), which Automerge's documents, writes in progress and documents as they were all are. The member registry, the users, access control's reads and rules, the topology, forgetting and bootstrap read and write through them, and name neither Automerge's ReadDoc and Transactable nor document::store, which is what an Automerge document can do beyond. How a swarm holding a store judges what a change writes is handed to the rules (rules::judge_seen), being its kind of document's to say.
* document: screening what is received is the document's, the rules access ↵tv2 days1-1/+1
| | | | | | | | | control's access::screen becomes document::screen: reading received bytes as changes, putting them in order, keeping those that wait or are refused, vouching by signatures and applying is all Automerge's shape, and has each change judged by the rules (access::rules) before it applies it.
* peers: what each peer said it speaks and knows, in GET /peerstv12 days1-0/+14
| | | | | | | | | | | | | | | | GET /peers shows, of each peer, what it said with its handshakes (SPEAKS): its `knows`, the wire versions it speaks, the oldest and the newest, and the newest revision of the federation it knows; null where it said nothing, a build from before SPEAKS or no handshake from it since the node started. `localKnows` is the node's own. So every swarm, federated or not, shows which builds its nodes run, as far as each heard. `swarm::speaking::shown` shapes it, for GET /events/counts too, whose `knows` is the same; docs/openapi.yaml has it once, as `Knows`. Without the federation feature, a revision reads as one this continuum doesn't know. `Speaking::of` is now used in every build, not only federated ones, which warned of it as dead code.
* access: members refused as a wholetv2026-11-071-0/+25
| | | | | | | | | With signatures required, a member whose own change broke a rule is refused as a whole: sent nothing, shown in /peers (refused), in stats (sync.refusedPeers) and on the dashboard, until a change of its is taken again or the epoch changes. Auth plan M6 (diverged standing).
* remake: forgetting and releasing name their usertv2026-11-071-4/+11
| | | | | | | Forget records and released quarantines name the user who made them, so they are judged by its capabilities. Auth plan M6.
* hop delaystv2026-11-041-0/+42
|
* reach set for the sessiontv2026-11-031-2/+2
|
* measure 2-hop neighbourhoodtv2026-11-031-0/+17
|
* add per-node traffic countstv2026-11-021-1/+3
|
* calculate peer clock drifttv2026-10-311-0/+6
|
* replace EpochInfo by EpochRecordtv2026-10-311-21/+4
|
* api: unify error responsestv2026-10-311-1/+1
|
* prometheus: build per-peer series from /peerstv2026-10-311-28/+28
|
* add lastSyncSecsAgo and description to /peerstv2026-10-311-0/+11
|
* build stats and peers as valuestv2026-10-301-2/+8
| | | | | | Both /admin/stats and /peers can now be built as plain values (stats::collect, peers::peer_list), so the upcoming dashboard can reuse them.
* peers from member list start as unknowntv2026-10-281-0/+3
|
* drop peer.rttMs from /peers APItv2026-10-281-8/+0
|
* get swarm RTT from pathstv2026-10-281-2/+2
|
* don't sample lost PONGstv2026-10-281-1/+1
|
* add transport statstv2026-10-271-0/+6
|
* admit nodeId and addresses in the APItv2026-10-271-8/+15
|
* peers in /peers is an attrsettv2026-10-261-24/+28
|
* make clippy happy againtv2026-10-261-6/+5
|
* replace utoipa by static openapi.yamltv2026-10-261-33/+7
|
* fix race between alive check and forgettingtv2026-10-261-1/+8
|
* wrap unix timestamps in newtypetv2026-10-261-1/+2
|
* unify peers snapshot logictv2026-10-261-11/+2
|
* unify lock logictv2026-10-261-2/+2
|
* add clock moduletv2026-10-251-2/+2
| | | | | The Clock module is the system clock that every unix timestamp new goes through. It comes with an offset that only tests can set.
* add force module usable by API and CLItv2026-10-251-5/+7
|
* cache headstv2026-10-241-1/+1
| | | | To reduce the number of write locks, heads are now cached.
* add node aliasestv2026-10-241-0/+7
|
* add throughput statstv2026-10-241-0/+23
|
* add per peer incident statstv2026-10-241-1/+3
|
* add traffic countertv2026-10-241-0/+6
| | | | | | | | | | This introduces a new wrapper that counts messages and payload bytes per peer, split by kind (hello, helloReply, sync, ping, pong), each sent, received and refused. The traffic counter goes around the firewall, which means messages dropped outbound are still counted as sent, and messages dropped inbound don't count as received.
* record RTT sampling instanttv2026-10-241-3/+3
|
* record RTT from keepalive messagestv2026-10-241-0/+8
|
* sync with neighbourstv2026-10-241-0/+4
|
* add member registrytv2026-10-241-1/+4
|
* retry using fresh messagestv2026-10-241-1/+1
| | | | | Don't store encoded messages but retry using a newly generated one. That way any accumulated changes can be delivered at once.
* bump number of heads in keepalive messagestv2026-10-231-0/+9
| | | | | Instead of arbitrarily limiting the number to 16, allow filling keepalive messages as long as they don't cause mycelium to chunk it.
* introduce sync sessiontv2026-10-231-1/+1
| | | | SyncSession holds all fields that get reset by reset_sync()
* merge membership and authenticate into standingtv2026-10-231-5/+2
|
* rename cluster to swarm everywhere!tv2026-10-211-5/+5
|
* reorganize all the modulestv2026-10-211-3/+3
|
* add epoch switchtv2026-10-201-1/+1
|
* add epochstv2026-10-191-1/+30
|
* initial committv2026-10-191-0/+161