Server tools to backfill, tail, mirror, and verify PLC logs

increase memtable size as test

ptr.pet 7c0e3f6e f2df0907

verified
+10 -3
+10 -3
src/plc_fjall.rs
··· 93 93 94 94 impl FjallDb { 95 95 pub fn open(path: impl AsRef<Path>) -> fjall::Result<Self> { 96 - let db = Database::builder(path).open()?; 97 - let ops = db.keyspace("ops", KeyspaceCreateOptions::default)?; 98 - let by_did = db.keyspace("by_did", KeyspaceCreateOptions::default)?; 96 + let db = Database::builder(path) 97 + .max_journaling_size(/* 1 GiB */ 1_024 * 1_024 * 1_024) 98 + .open()?; 99 + let opts = KeyspaceCreateOptions::default; 100 + let ops = db.keyspace("ops", || { 101 + opts().max_memtable_size(/* 256 MiB */ 256 * 1_024 * 1_024) 102 + })?; 103 + let by_did = db.keyspace("by_did", || { 104 + opts().max_memtable_size(/* 128 MiB */ 128 * 1_024 * 1_024) 105 + })?; 99 106 Ok(Self { 100 107 inner: Arc::new(FjallInner { db, ops, by_did }), 101 108 })