Skip to content

Commit

Permalink
log db load into memory progress (#565)
Browse files Browse the repository at this point in the history
bump iris-mpc startup probe
  • Loading branch information
eaypek-tfh authored Oct 21, 2024
1 parent 718074c commit a9f61af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions iris-mpc/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,12 @@ async fn server_main(config: Config) -> eyre::Result<()> {
let mut stream = store.stream_irises_par(parallelism).await;
let mut record_counter = 0;
while let Some(iris) = stream.try_next().await? {
if record_counter % 100_000 == 0 {
tracing::info!(
"Loaded {} records from db into memory",
record_counter
);
}
if iris.index() > store_len {
tracing::error!("Inconsistent iris index {}", iris.index());
return Err(eyre!("Inconsistent iris index {}", iris.index()));
Expand Down

0 comments on commit a9f61af

Please sign in to comment.