Skip to content

Commit

Permalink
fix load summary
Browse files Browse the repository at this point in the history
  • Loading branch information
eaypek-tfh committed Jan 24, 2025
1 parent afc96f2 commit c813c1d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deploy/stage/common-values-iris-mpc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: "ghcr.io/worldcoin/iris-mpc:dc77f753b0b19d9c672ebe70440158f58e213467"
image: "ghcr.io/worldcoin/iris-mpc:4065a7f06f7c3482417f387542bf76fbd7bae1f5"

environment: stage
replicaCount: 1
Expand Down
2 changes: 1 addition & 1 deletion deploy/stage/smpcv2-0-stage/values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ env:
value: "true"

- name: SMPC__DATABASE__LOAD_PARALLELISM
value: "1"
value: "8"

- name: SMPC__AWS__REGION
value: "eu-north-1"
Expand Down
2 changes: 1 addition & 1 deletion deploy/stage/smpcv2-1-stage/values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ env:
value: "true"

- name: SMPC__DATABASE__LOAD_PARALLELISM
value: "1"
value: "8"

- name: SMPC__AWS__REGION
value: "eu-north-1"
Expand Down
2 changes: 1 addition & 1 deletion deploy/stage/smpcv2-2-stage/values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ env:
value: "true"

- name: SMPC__DATABASE__LOAD_PARALLELISM
value: "1"
value: "8"

- name: SMPC__AWS__REGION
value: "eu-north-1"
Expand Down
2 changes: 2 additions & 0 deletions iris-mpc/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,7 @@ async fn server_main(config: Config) -> eyre::Result<()> {
elapsed,
load_chunks_parallelism
);
load_summary_ts = Instant::now();
}

let min_last_modified_at = last_snapshot_details.timestamp
Expand Down Expand Up @@ -1285,6 +1286,7 @@ async fn server_main(config: Config) -> eyre::Result<()> {

time_waiting_for_stream = Duration::from_secs(0);
time_loading_into_memory = Duration::from_secs(0);
load_summary_ts = Instant::now();
while let Some(iris) = rx.recv().await {
time_waiting_for_stream += load_summary_ts.elapsed();
load_summary_ts = Instant::now();
Expand Down

0 comments on commit c813c1d

Please sign in to comment.