~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

Writes share one sync through a journal; the firehose after a kill

Merged chadtmiller.com asked to merge into main from chadtmiller.com/monolith:store/ahead
bench/store/src/firehose.rs+6−6
@@ -90,7 +90,7 @@ fn build(dir: &Path, commits: u64, accounts: u64, every: u64) {
log.write_all(&frame).expect("an append");
offset += frame.len() as u64;
logs[a as usize]
.write_all(&Encoding::Json.frame(&c, gone))
.write_all(&Encoding::Holes.frame(&c, gone))
.expect("an append");
db.prepare_cached("INSERT INTO event(seq, account, time, frame) VALUES (?1, ?2, ?3, ?4)")
.expect("a statement")
@@ -242,9 +242,9 @@ fn from_fjall(store: &fj::Store, cursor: u64, limit: u64, sink: &mut Sink) {
}
/// Every account's log read as the server reads one (each frame's check
/// computed, its JSON parsed), its events' frames taken out of their hex,
/// and all of them put in order of seq: the events, and how long until the
/// first could be given.
/// computed, its holes filled, its JSON parsed), its events' frames taken
/// out of their hex, and all of them put in order of seq: the events, and
/// how long until the first could be given.
fn from_logs(dir: &Path, accounts: u64, sink: &mut Sink) -> Duration {
let started = Instant::now();
let mut events: Vec<(u64, Vec<u8>)> = Vec::new();
@@ -354,7 +354,7 @@ pub fn firehose(commits: u64, accounts: u64, every: u64) {
};
log_row(
&format!(
"one log for all, binary frames, an index entry each {every} frames, each frame's check SHA-256 (the server's)"
"one log for all, binary frames, an index entry each {every} frames, each frame's check SHA-256"
),
&log,
Some(Check::Sha256),
@@ -419,7 +419,7 @@ pub fn firehose(commits: u64, accounts: u64, every: u64) {
first = first.min(from_logs(&dir, accounts, sink))
});
row(
"a log for each account, JSON frames (the server's), put in order",
"a log for each account, JSON frames with holes (the server's), put in order",
dir_bytes(&dir.join("logs")),
took,
&[first],
bench/store/src/frame.rs+61−7
@@ -1,6 +1,7 @@
//! A commit's frame, two ways: the server's, a JSON array with every byte
//! string in hex, and a binary one of the same content; and a reader of a
//! log of the binary ones.
//! A commit's frame, three ways: the server's, JSON with holes, its bytes
//! as they are after the JSON text; a JSON array with every byte string in
//! hex; and a binary one of the same content; and a reader of a log of the
//! binary ones.
//!
//! A binary frame's payload is its fields in the order the JSON has them,
//! every length and number a varint, every string and byte string its
@@ -21,11 +22,14 @@ use crate::check::Check;
use crate::data::Commit;
use pds_store::HEADER;
use serde_json::{Value as Json, json};
use std::io::{self, Read};
use std::io::{self, Read, Write};
/// How a commit's frame is written.
#[derive(Clone, Copy, PartialEq)]
pub enum Encoding {
/// The server's: JSON with holes (`holes`).
Holes,
/// JSON, bytes as hex (`entries`).
Json,
Binary,
}
@@ -35,6 +39,7 @@ impl Encoding {
/// before made the nodes `gone`.
pub fn frame(self, c: &Commit, gone: &[Vec<u8>]) -> Vec<u8> {
match self {
Encoding::Holes => holes(c, gone),
Encoding::Json => pds_store::frame(&entries(c, gone)),
Encoding::Binary => binary(c, gone),
}
@@ -42,12 +47,12 @@ impl Encoding {
}
/// When a commit's event was made, as its entry says.
fn time(c: &Commit) -> u64 {
pub fn time(c: &Commit) -> u64 {
1_700_000_000_000 + c.op
}
/// The frame the server writes of a commit (`pds-server`'s `log`): its
/// commit entry and its event's, bytes as hex.
/// A commit's entry and its event's, as JSON, bytes as hex: a frame of
/// `pds_store`'s first kind, its payload a JSON array.
pub fn entries(c: &Commit, gone: &[Vec<u8>]) -> Vec<Json> {
vec![
json!({
@@ -62,6 +67,55 @@ pub fn entries(c: &Commit, gone: &[Vec<u8>]) -> Vec<Json> {
]
}
/// The frame the server writes of a commit (`pds-server`'s `log`,
/// `commit_frame`): the same entries, its fields in the order the server
/// writes them, as JSON with holes (`pds_store::frame_with_holes`): the
/// commit's block, the tree's nodes and the event's frame are holes, their
/// bytes as they are after the text; CIDs are hex, and so is the record,
/// which the server writes as its JSON.
pub fn holes(c: &Commit, gone: &[Vec<u8>]) -> Vec<u8> {
let text = 2 * (c.blocks[1].0.len() + c.blocks[1].1.len())
+ (c.blocks.len() + gone.len()) * 80
+ c.path.len()
+ 256;
pds_store::frame_with_holes(text, |w| {
let put = |text: &[u8]| {
let mut out = w;
out.write_all(text).expect("a frame")
};
let json = |v: Json| put(&serde_json::to_vec(&v).expect("a frame"));
put(br#"[{"t":"commit","rev":"#);
json(json!(c.rev));
put(br#","head":"""#);
w.hole(&c.blocks[0].1);
put(br#","puts":"#);
json(json!([[
c.path,
hex::encode(&c.blocks[1].1),
hex::encode(&c.blocks[1].0)
]]));
put(br#","dels":[],"tree":["#);
for (i, (cid, b)) in c.blocks[2..].iter().enumerate() {
put(if i == 0 { b"[" } else { b",[" });
json(json!(hex::encode(cid)));
put(br#","""#);
w.hole(b);
put(b"]");
}
put(br#"],"gone":"#);
json(json!(gone.iter().map(hex::encode).collect::<Vec<_>>()));
put(br#","refs":[],"counts":"#);
json(json!([c.op, c.op * 2]));
put(br#"},{"t":"event","seq":"#);
json(json!(c.op));
put(br#","time":"#);
json(json!(time(c)));
put(br#","frame":"""#);
w.hole(&c.event);
put(b"}]");
})
}
const COMMIT: u8 = 1;
fn varint(out: &mut Vec<u8>, mut n: u64) {
bench/store/src/scan.rs+5−4
@@ -25,7 +25,7 @@ fn best(mut f: impl FnMut()) -> Duration {
}
/// Replay the log at `path` as the server does (`pds_store::scan_file`):
/// each frame's check computed and its JSON parsed.
/// each frame's check computed, its holes filled and its JSON parsed.
fn json(path: &Path, frames: u64) {
let mut found = 0u64;
pds_store::scan_file(path, |_, _, _| {
@@ -48,7 +48,8 @@ fn random(size: u64) {
while wal.len() < size << 20 {
op += 1;
let c = data::random(op);
wal.append(&frame::entries(&c, &gone)).expect("an append");
wal.append_frame_at(&Encoding::Holes.frame(&c, &gone))
.expect("an append");
gone = data::nodes(&c);
}
wal.wait(wal.written()).expect("a sync");
@@ -78,7 +79,7 @@ fn real(size: u64) {
while written < size << 20 {
commits += 1;
let c = data::real(SEED, commits, 0);
let frame = Encoding::Json.frame(&c, &gone);
let frame = Encoding::Holes.frame(&c, &gone);
written += frame.len() as u64;
logs[0].write_all(&frame).expect("an append");
logs[1]
@@ -104,7 +105,7 @@ fn real(size: u64) {
);
};
row(
"JSON frames (the server's)",
"JSON frames with holes (the server's)",
&paths[0],
best(|| json(&paths[0], commits)),
);
bench/store/src/size.rs+2−2
@@ -99,7 +99,7 @@ fn logs(dir: &Path, accounts: usize, records: usize) -> (u64, u64) {
let mut gone: Vec<Vec<u8>> = Vec::new();
for i in 0..records {
let c = data::real(SEED, (i * accounts + a + 1) as u64, a as u64);
json.write_all(&Encoding::Json.frame(&c, &gone))
json.write_all(&Encoding::Holes.frame(&c, &gone))
.expect("an append");
binary
.write_all(&Encoding::Binary.frame(&c, &gone))
@@ -400,7 +400,7 @@ pub fn size(accounts: usize, records: usize) {
);
};
row(
"a log for each account before compaction, JSON frames (the server's)",
"a log for each account before compaction, JSON frames with holes (the server's)",
json,
);
row(
bench/store/src/write.rs+401−28
429 lines changed: not loaded until asked for.
bench/store/README.md+60−28
@@ -62,7 +62,7 @@ first. The layouts:
| layout | is |
|---|---|
| a log for each account | the server's: each commit one frame of JSON, bytes as hex, written where the last ended in its account's log (`pds_store::Wal`), commits to one account that wait at once sharing a sync. A `Wal` gives its file room as it is written to: a frame that grows the file grows it by itself and by as many zeros as there are bytes of frames written to the log since it was opened, that frame's among them, 256 KiB at most, and the frames after are written over the zeros |
| a log for each account | the server's: each commit one frame of JSON with holes, written where the last ended in its account's log (`pds_store::Wal`), commits to one account that wait at once sharing a sync. The frame's payload is the commit's entry and its event's as JSON text, with the commit's block, the tree's nodes and the event's frame each an empty string, a hole, and those bytes as they are after the text, its check XXH3-64 (`pds_store::frame_with_holes`; `holes` in `src/frame.rs`, which writes the server's fields in its order). A `Wal` gives its file room as it is written to: a frame that grows the file grows it by itself and by as many zeros as there are bytes of frames written to the log since it was opened, that frame's among them, 256 KiB at most, and the frames after are written over the zeros |
| one log for all | the same frames in one log, so that commits to any accounts share a sync |
| SQLite for each account | a database for each account in WAL mode, `synchronous=FULL`: a commit is a transaction of its blocks into a table by CID, the nodes taken out deleted, its record's path and its event into tables of their own |
| one SQLite for all | the same tables in one database, on one connection |
@@ -107,12 +107,14 @@ each account and one for all:
| log | is |
|---|---|
| JSON frames | the server's, as above, in a `Wal`, with the room it makes |
| binary frames | the same content with every length a varint and bytes as bytes (`src/frame.rs`), made with `pds_store::frame_of` and written with `Wal::append_frame_at`, so with a `Wal`'s room too: half the bytes |
| JSON frames with holes | the server's, as above, in a `Wal`, with the room it makes. For each account, as `pds serve` keeps them with `PDS_SYNC` `together` (the default): every log of one `pds_store::Files` pool, of the share of file descriptors the server takes, written to its journal too (`pds_store::Journal`, in the directory's `journal/`), a commit waiting for the journal's sync, which the commits waiting at once share whichever accounts they are to, and the journal's own thread making each log durable in its own file 2 seconds after the last commit or once the journal holds 16 MiB, as the server's does. Beside it, "the same, no pool and no journal, each log synced by itself (PDS_SYNC each)": the same logs with no pool and no journal, each synced by itself, commits to one account that wait at once sharing that sync |
| JSON frames, bytes as hex | the same content as one JSON array, every byte string in hex (`entries` in `src/frame.rs`), a frame of `pds_store`'s first kind, its check SHA-256, in a `Wal` with no pool, each synced by itself: what writing the commit's bytes in hex costs, for each account alone |
| binary frames | the same content with every length a varint and bytes as bytes (`src/frame.rs`), made with `pds_store::frame_of` and written with `Wal::append_frame_at`, so with a `Wal`'s room too: half the bytes of JSON frames, bytes as hex |
| binary frames, each written at its offset | a log of this benchmark's own (`Placed` in `src/write.rs`): the same frames written with `write_at` where the last ended, in a file that grows as they are, and synced with `sync_data`, commits that wait at once sharing a sync as a `Wal`'s do. It is there to compare the next with: it differs from a `Wal` in what it leaves out (room, generations, a pool of files, mending a torn append) |
| the same, allocated ahead | that log in a file allocated ahead a chunk at a time, so that a sync has no new size of the file to make durable: 16 MiB for one log for all; 64 KiB and 16 KiB, a row each, for an account's, since a server with many accounts, most of which write little, pays for each chunk begun. Where its frames end is found at a replay by the first that fails its check, and after each row every commit is replayed from it to see that they are there |
| the same, its waiting commits answered in turn | that log, growing, for one log for all alone, sharing a sync as a `Wal` did before it woke its waiters together: the lock on what is durable held through each sync, and a commit learning that a sync covered it when it gets that lock in its turn, behind any commit that began the next sync first. The syncs are the same; how many commits each answers is the "log syncs" column against the commits |
| the same, a sync first letting the commits begun be written | that log, growing, for one log for all alone: a commit says when it has begun, and a sync waits, for at most a millisecond, until every commit begun has written its frame, and so covers them. With writers that each begin their next commit as the last is answered, all of them are in every sync, where without it a commit that begins during a sync waits for the one after and each sync has half of them. RocksDB and fjall have a row with the same wait, so that the three are set beside each other under one way of sharing a sync |
| a log for each account written and not synced, each commit made durable by one journal for all | a log for each account and beside them one journal (`Journaled` in `src/write.rs`), with the server's frames, JSON with holes, and with binary ones, a row each. A commit, under its account's lock, writes its frame with `write_at` where the last ended in its account's log, a plain file that grows, and then appends a record to the journal: a frame whose payload is the account's number (4 bytes), the frame's offset in the account's log (8) and the frame itself, its check XXH3-64. Outside the lock it waits for the journal's sync, and is answered then; no commit syncs an account's log. The journal is the log of "one log for all, the same, allocated ahead by 16 MiB of zeros", the same code: written at its offset, its room zeros, its waiting commits woken together by one sync. Since a record is written after its frame and under the same lock, the journal never holds a record of a frame further on in a log without those of the frames before it |
The room of the logs allocated ahead is got two ways: as zeros written
once, which leaves nothing but the frame's bytes to write, and with
@@ -125,8 +127,8 @@ that is timed. macOS has no `fallocate`, and its `F_FULLFSYNC` flushes
the drive whatever the file's size did: Linux is where allocating ahead
is expected to matter.
The rows of JSON frames and of binary frames with no more said are a
`Wal`'s, and have the room a `Wal` makes, which is none until it is
The rows of JSON frames and of binary frames not of this benchmark's
own logs are a `Wal`'s, and have the room a `Wal` makes, which is none until it is
written to: its file is made empty, the first commit to it grows the
file by its frame and as much again, and a later one that the room left
does not hold by its frame and as much as was written to the log so far.
@@ -134,11 +136,37 @@ All of that is inside commits, warming or timed. So over 2000 accounts,
where a log gets a commit or two, a `Wal`'s rows time the giving of room
together with what it is worth, a file that has not grown under the
second commit's sync; and the rows allocated ahead, every commit of
which lands in room made before, time what it is worth alone. The last
column is the bytes of zeros this benchmark's own logs wrote for each
commit, the room a log began with and each chunk after: of a `Wal`'s
rows it is empty, and what a `Wal` writes of zeros is never more than
twice the bytes of its frames.
which lands in room made before, time what it is worth alone. The
"zeros written a commit" column is the bytes of zeros this benchmark's
own logs wrote for each commit, the room a log began with and each chunk
after: of a `Wal`'s rows it is empty, and what a `Wal` writes of zeros is
never more than twice the bytes of its frames.
The journal's rows have a thread that makes checkpoints. Whenever the
journal has grown by 16 MiB since the last (`JOURNAL_CHECKPOINT`; the
bytes `BENCH_JOURNAL_CHECKPOINT` names instead, which `run.sh` sets to
16 KiB for a small run), it makes every account's log durable as it then
is: on Linux by one `syncfs` of the directory's file system, as the
server's `sync_found` does; elsewhere by a plain `fsync` of each log
written to since the last checkpoint and then one full sync of the
journal. The records the journal held when a checkpoint began are after
it not needed to recover the logs. A checkpoint takes no lock, only a
flag of each log that says it was written to, and commits go on through
it. The last three columns are the checkpoints made during the timed
commits, how long one took and the longest; they are empty of every
other row. One more is made after the commits, and under the table is
how long it took. The journal's syncs, the "log syncs" column, leave the
checkpoints' out. The bound on these rows is "one log for all, the same,
allocated ahead by 16 MiB of zeros": the journal alone, of binary
frames, its records 12 bytes shorter and no account's log written. There
is no such row of the server's frames; what the encoding costs one log is
the two rows of a `Wal` for all.
After each of the journal's rows the journal is read, each record's
check computed, and seen to hold a record for every commit, each at the
offset where the one before it for its account ended; and each
account's log is seen to be, byte for byte, the frames of its records
and nothing else.
SQLite has three rows. Two are as in the first part: one connection a
database, a transaction a commit, so commits to one database wait in
@@ -200,9 +228,11 @@ make.
**Writes with no sync** (`store-bench unsynced <commits> <writers>
<accounts>`). The same layouts with no sync at all, the logs never
calling one, RocksDB writing its log with `set_sync(false)`, fjall its
journal with `PersistMode::Buffer`, and SQLite
with `synchronous=OFF`, from 16 writers over 40
calling one (in the row of the server's journal, a commit's frame is
written to the journal too, and its own thread makes its checkpoints as
ever, which no commit waits for), RocksDB writing its log with
`set_sync(false)`, fjall its journal with `PersistMode::Buffer`, and
SQLite with `synchronous=OFF`, from 16 writers over 40
accounts and 256 over 2000: **nothing here is durable**. It is what the
processor allows each layout, which a drive whose syncs cost well under
a millisecond would approach and none would pass. The commits are made
@@ -216,16 +246,17 @@ row wrote.
**A log replayed** (`store-bench scan <MiB>...`). A log of the first part's
frames of the size given is written, then read as a start or a cold
account's load reads it (`pds_store::scan_file`): each frame's check
computed and its JSON parsed. The best of three, so the file is in the
system's cache: what the replay itself costs, a floor under what loading an
account with that much log takes. A second table has one account's
realistic commits, as many as make that size of the server's frames, in a
log of those and in a log of binary frames, with the bytes a commit takes
in each. The binary log is read by a reader of its own over the same frame
header: each frame's check computed, and every field walked, each string
checked to be UTF-8. It makes no values of them, where the JSON reader
makes a tree of values with every byte string still in hex: a replay that
kept what it read would allocate for it in either.
computed, its holes filled and its JSON parsed. The best of three, so the
file is in the system's cache: what the replay itself costs, a floor under
what loading an account with that much log takes. A second table has one
account's realistic commits, as many as make that size of the server's
frames, in a log of those and in a log of binary frames, with the bytes a
commit takes in each. The binary log is read by a reader of its own over
the same frame header: each frame's check computed, and every field
walked, each string checked to be UTF-8. It makes no values of them,
where the JSON reader makes a tree of values with every byte string in
hex, its holes filled: a replay that kept what it read would allocate for
it in either.
**The firehose replayed** (`store-bench firehose <commits> <accounts>
[every]`). The events of 200,000 realistic commits over 2000 accounts,
@@ -286,11 +317,12 @@ own compactions leave them, which for keys that come in order is as they
were first written.
**The check.** A frame and a table's block each carry 8 bytes of check,
computed whenever one is read: in `pds-store` a frame's is the first 8 of
SHA-256, and a table's block's, like its index's, its bloom filter's and
its footer's, is XXH3-64 (the first 8 of SHA-256 in a table of the
version before, which is still read, and whose footer has none). The
firehose and read parts measure each of four in that place
computed whenever one is read: in `pds-store` a JSON frame's is the first
8 of SHA-256, a frame with holes' (a commit's) XXH3-64, and a table's
block's, like its index's, its bloom filter's and its footer's, is
XXH3-64 (the first 8 of SHA-256 in a table of the version before, which
is still read, and whose footer has none). The firehose and read parts
measure each of four in that place
(`src/check.rs`): those two; CRC32C, with the processor's own instruction
for it, 4 bytes of the 8; and the first 8 bytes of BLAKE3. Each finds a
frame torn or a block rotted, CRC32C missing one in four thousand million
bench/store/run.sh+2−0
@@ -32,6 +32,8 @@ if [ -n "${BENCH_SMALL:-}" ]; then
writes="100:16" spreads="100:16:40" unsynced="2000:16:40"
logs="8 16" events=5000 accounts=200 records=100 sized=20
[ $# -gt 0 ] || set -- 1000
# A journal's checkpoints, 16 MiB of it apart, would never come round.
export BENCH_JOURNAL_CHECKPOINT=16384
else
writes="1500:16 1500:4"
spreads="1500:4:40 1500:16:40 2048:64:2000 4096:256:2000"
crates/pds-server/src/events/index.rs+901−196
1097 lines changed: not loaded until asked for.
crates/pds-server/src/lifecycle/tests.rs+8−1
@@ -1501,7 +1501,7 @@ async fn deleting_an_account() {
);
}
let events_before: Vec<Json> = e.events();
let n = e.s.events.len(&e.s);
let n = e.s.events.len();
// An Authorization header is ignored; the token in lower case is taken.
assert_eq!(
call_raw(
@@ -1726,6 +1726,13 @@ async fn the_firehose_across_a_deletion() {
/// directories of no account are swept.
#[tokio::test]
async fn a_deletion_cut_short() {
for sync in SYNCS {
syncing(sync);
a_deletion_cut_short_once().await;
}
}
async fn a_deletion_cut_short_once() {
let e = Env::new("life-cut").await;
let (did, token) = create(&e.s, "alice").await;
create(&e.s, "bob").await;
crates/pds-server/src/migration/tests.rs+33−0
@@ -1418,3 +1418,36 @@ async fn an_account_deleted_moves_here_again() {
assert_eq!(found, Some(m.did.clone()), "compacted: {compacted}");
}
}
/// A creation undone once its first commit is durable, the journal holding
/// its frames: the journal forgets the account's directory before it goes.
/// The same DID made again, and the server killed, a start writes nothing
/// of the first making into the second's files, and serves the second.
#[tokio::test]
async fn an_undone_creation_leaves_nothing_in_the_next() {
let m = Move::start("migration-undone", |_| {}).await;
crate::server::UNDO_NEXT.with(|u| u.set(true));
assert!(
post(&m.new, CREATE, Some(&m.token()), m.body())
.await
.is_err()
);
m.moved().await;
let key = store_of(&m.new, &m.did, |st| st.repo.signing_key().to_bytes());
let copy = crate::log::copied(&m.dirs[1]);
let redone = pds_store::journal::redo(&copy, pds_store::journal::Redo::Eager).unwrap();
assert_eq!(
redone.written, 0,
"the first making written into the second's files"
);
let s = open_with(&copy, &m.plc.url, |c| {
c.hostname = "new.test".into();
c.public_url = "http://new.test".into();
c.rotation_key = SigningKey::from_slice(&[7u8; 32]).unwrap();
});
assert_eq!(
store_of(&s, &m.did, |st| st.repo.signing_key().to_bytes()),
key
);
let _ = std::fs::remove_dir_all(&copy);
}
crates/pds-server/src/oauth/tests.rs+1−0
@@ -3552,6 +3552,7 @@ async fn a_password_reset_ends_what_oauth_kept_of_the_account() {
let frames = pds_store::scan(
&std::fs::read(dir.join(crate::log::ACCOUNTS_LOG_FILE)).unwrap()[log_len as usize..],
)
.unwrap()
.0;
assert_eq!(frames.len(), 1, "one frame");
let kinds: Vec<&str> = frames[0].iter().filter_map(|e| e["t"].as_str()).collect();
crates/pds-server/src/ops/metrics.rs+3−2
@@ -310,9 +310,10 @@ impl Gauges {
};
// Every generation's log not yet folded away, and the checkpoints:
// of an account or a store not loaded, as its files' sizes are,
// which loads none.
// which loads none; and the journal's records, as a log's frames.
let log_bytes = svc.log.log_bytes()
+ svc.log.checkpoint_bytes()
+ svc.ctx.files.journal().map_or(0, |j| j.bytes())
+ dids
.iter()
.map(|did| {
@@ -326,7 +327,7 @@ impl Gauges {
Gauges {
accounts,
log_bytes,
seq: svc.events.published(),
seq: svc.events.last_event(),
subscribers: svc.events.subscribers() as u64,
}
}
crates/pds-server/src/blobs.rs+50−3
crates/pds-server/src/cache.rs+47−20
crates/pds-server/src/checkpoint.rs+149−22
crates/pds-server/src/directory.rs+14−4
crates/pds-server/src/events.rs+1380−617
A large diff, not shown.
crates/pds-server/src/identity.rs+30−17
crates/pds-server/src/lib.rs+85−12
crates/pds-server/src/lifecycle.rs+102−59
crates/pds-server/src/log.rs+864−137
1001 lines changed: not loaded until asked for.
crates/pds-server/src/migration.rs+2−5
crates/pds-server/src/ops.rs+31−20
crates/pds-server/src/server.rs+43−6
crates/pds-server/src/sessions.rs+3−1
crates/pds-server/src/space_repo.rs+3−1
crates/pds-server/src/store.rs+27−26
crates/pds-store/src/frame_tests.rsnew+526−0
526 lines changed: not loaded until asked for.
crates/pds-store/src/generations.rs+195−15
crates/pds-store/src/journal.rsnew+3082−0
A large diff, not shown.
crates/pds-store/src/lib.rs+821−136
957 lines changed: not loaded until asked for.
docs/guide/comparing.md+3−3
docs/guide/operating.md+37−4
harness/checks/limits.mjs+68−3
harness/checks/logging.mjs+1−0
harness/checks/scale.mjs+13−10
spec/DURABILITY.md+63−7
spec/OPERATIONS.md+5−2
spec/STORE.md+30−21
AGENTS.md+7−1