Skip to content

Commit

Permalink
bump iris-mpc startup probe
Browse files Browse the repository at this point in the history
  • Loading branch information
eaypek-tfh committed Oct 21, 2024
1 parent 06362af commit c713483
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/prod/common-values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ readinessProbe:

startupProbe:
enabled: true
initialDelaySeconds: 300
failureThreshold: 50
periodSeconds: 10
initialDelaySeconds: 900
failureThreshold: 100
periodSeconds: 15
httpGet:
path: /health
port: health
Expand Down
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 c713483

Please sign in to comment.