Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
262 changes: 226 additions & 36 deletions README.md

Large diffs are not rendered by default.

299 changes: 286 additions & 13 deletions crates/fake-fxserver/src/main.rs

Large diffs are not rendered by default.

370 changes: 369 additions & 1 deletion crates/fake-fxserver/tests/supervisor.rs

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions crates/observer-app/src/changes/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ use super::plan::{self, Chain, ListingInput, ListingPass, Planned, Read, Slot};
use super::{SERVER, Shared};
use crate::Error;

/// Hashing waits for the server to be online, or this long after the spawn.
const ONLINE_WAIT: Duration = Duration::from_mins(3);
/// Hashing waits for the server to be online, or this long after the spawn: a start reads the same
/// files, and a big server's first one takes minutes that hashing beside it only adds to.
const ONLINE_WAIT: Duration = Duration::from_mins(30);
/// Below this much free space on the data folder's volume, digests only are kept.
const DISK_FLOOR: u64 = 2_000_000_000;
/// Files read in one go of the hashing pass, between which progress is written.
Expand Down Expand Up @@ -60,7 +61,7 @@ pub(crate) enum Ended {
}

/// Takes the snapshot of a start: the listing at once, the hashing once `status` says the run is
/// online, or three minutes later.
/// online, or half an hour later.
pub(crate) async fn start(
shared: Arc<Shared>,
settings: ChangesSettings,
Expand Down Expand Up @@ -517,7 +518,7 @@ impl Work {
Ok(())
}

/// Waits for the run to be online, for three minutes at most. A run that ended frees the disk,
/// Waits for the run to be online, for half an hour at most. A run that ended frees the disk,
/// so hashing starts at once.
async fn wait_online(
&self,
Expand Down
Loading
Loading