Expand description
Durable Streams state machine for Ursula.
Module map:
- [
command]: replicated command variants applied to the state machine. - [
response]: result variants and error codes returned per command. - [
model]: persistent data types (metadata, segments, producer state, plans). - [
record_index]: exact retained record-ordinal to offset boundaries. - [
snapshot]: snapshot wire format and restoration errors. - [
state_machine]: the deterministicStreamStateMachinethat drives a Raft group. - [
validate]: bucket/stream id validation used by HTTP and Raft entry points.
Structs§
- Append
Stream Input - Bucket
Quota - Per-bucket data-plane quota stored in replicated state.
Nonemeans unlimited. Every Raft group stores the same record and enforces it against its own localBucketUsage, so the cluster-wide bound islimit × group_count: an abuse backstop, not exact tenant accounting. Exact tenant-level enforcement happens at the gateway from aggregated usage. - Bucket
Quota Snapshot - One bucket’s quota as stored in a group or persisted in a snapshot.
- Bucket
Usage - Per-bucket committed usage inside one Raft group’s replicated state.
- Bucket
Usage Snapshot - One bucket’s usage as reported by a group or persisted in a snapshot.
- Cold
Flush Candidate - Cold
GcEntry - One unit of deferred cold-storage reclamation. Enqueued deterministically in the state machine when a stream’s cold objects become unreferenced, drained asynchronously by the leader’s background GC worker.
- HotPayload
Segment - Object
Payload Ref - Producer
Append Record - Producer
Receipt - Producer
Snapshot - Shared
Cold Object Owners Snapshot - Stream
Attrs - Stream
Batch Append - Stream
Batch Append Item - Stream
Bootstrap Plan - Stream
Integrity Snapshot - Stream
Message Record - Stream
Metadata - Stream
Read - Stream
Read Cold Index Segment - Stream
Read Cold Segment - Stream
Read Object Segment - Stream
Read Plan - Stream
Record Index - Stream
Record Range - Stream
Snapshot - Stream
Snapshot Entry - Stream
State Machine - Stream
Visible Snapshot
Enums§
- Cold
GcTarget - Record
Index Error - Stream
Command - Stream
Error Code - Stream
Error Context - Stream
Read Segment - Stream
Response - Stream
Snapshot Error - Stream
Status
Constants§
- COLD_
INDEX_ PAGE_ SPAN_ BYTES - COMMITTED_
WRITE_ UNIT_ BYTES - Size of the self-described derived write unit exported by Ursula.