Skip to main content

Module bus

Module bus 

Source
Expand description

Bus leases (C5): one holder per resource across the machines of an organization, decided by the service clock.

The bus itself (wss://<host>/v1/bus) speaks bus v2; its frames are the C0 2.x fixtures under tests/fixtures/cloud-v2/bus/.

Plan updates (feature plan_updates, local-read contract §37.2), JSON documents the engine checks itself:

  • GET /v1/vaults/{vault_id}/plans?state=active → the active plans;
  • GET /v1/vaults/{vault_id}/plans/{plan_id}?version= → one signed plan version;
  • POST /v1/vaults/{vault_id}/plans/{plan_id}/ack → the agents’ answers.

Structs§

BusLeaseHolderV1
Current lease holder, when a lease was not granted.
BusLeaseRenewRequestV1
POST /v1/bus/leases/{lease_id}/renew.
BusLeaseRequestV1
POST /v1/bus/leases.
BusLeaseV1
Lease decision. Granted: lease_id, fencing_token (strictly increasing per resource) and expires_at. Refused: holder. 1.9 erratum: a renewal keeps lease_id and fencing_token and only moves expires_at; a new token comes only with a new grant.

Constants§

BUS_LEASE_RENEW_REQUEST_SCHEMA
BUS_LEASE_REQUEST_SCHEMA
BUS_LEASE_SCHEMA
MAX_BUS_LEASE_MS
Longest bus lease.