From c85c402d6a3f45c3828126cb74550a92c8f1e685 Mon Sep 17 00:00:00 2001 From: Ertugrul Aypek Date: Tue, 21 Jan 2025 12:45:39 +0100 Subject: [PATCH] revert commented out load to actor part --- .../stage/smpcv2-0-stage/values-iris-mpc.yaml | 4 +-- .../stage/smpcv2-1-stage/values-iris-mpc.yaml | 4 +-- .../stage/smpcv2-2-stage/values-iris-mpc.yaml | 4 +-- iris-mpc/src/bin/server.rs | 36 +++++++++---------- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/deploy/stage/smpcv2-0-stage/values-iris-mpc.yaml b/deploy/stage/smpcv2-0-stage/values-iris-mpc.yaml index 4b6d5c849..7202613c7 100644 --- a/deploy/stage/smpcv2-0-stage/values-iris-mpc.yaml +++ b/deploy/stage/smpcv2-0-stage/values-iris-mpc.yaml @@ -81,13 +81,13 @@ env: value: "64" - name: SMPC__LOAD_CHUNKS_DEFAULT_CLIENT - value: "true" + value: "false" - name: SMPC__LOAD_CHUNKS_BUFFER_SIZE value: "4096" - name: SMPC__LOAD_CHUNKS_STATIC_IPS - value: "4" + value: "16" - name: SMPC__CLEAR_DB_BEFORE_INIT value: "true" diff --git a/deploy/stage/smpcv2-1-stage/values-iris-mpc.yaml b/deploy/stage/smpcv2-1-stage/values-iris-mpc.yaml index 570712a2b..dacd461c3 100644 --- a/deploy/stage/smpcv2-1-stage/values-iris-mpc.yaml +++ b/deploy/stage/smpcv2-1-stage/values-iris-mpc.yaml @@ -81,13 +81,13 @@ env: value: "64" - name: SMPC__LOAD_CHUNKS_DEFAULT_CLIENT - value: "true" + value: "false" - name: SMPC__LOAD_CHUNKS_BUFFER_SIZE value: "4096" - name: SMPC__LOAD_CHUNKS_STATIC_IPS - value: "4" + value: "16" - name: SMPC__CLEAR_DB_BEFORE_INIT value: "true" diff --git a/deploy/stage/smpcv2-2-stage/values-iris-mpc.yaml b/deploy/stage/smpcv2-2-stage/values-iris-mpc.yaml index 34267e0b4..383ab4f9b 100644 --- a/deploy/stage/smpcv2-2-stage/values-iris-mpc.yaml +++ b/deploy/stage/smpcv2-2-stage/values-iris-mpc.yaml @@ -81,13 +81,13 @@ env: value: "64" - name: SMPC__LOAD_CHUNKS_DEFAULT_CLIENT - value: "true" + value: "false" - name: SMPC__LOAD_CHUNKS_BUFFER_SIZE value: "4096" - name: SMPC__LOAD_CHUNKS_STATIC_IPS - value: "4" + value: "16" - name: SMPC__CLEAR_DB_BEFORE_INIT value: "true" diff --git a/iris-mpc/src/bin/server.rs b/iris-mpc/src/bin/server.rs index 99c3b7eec..983183927 100644 --- a/iris-mpc/src/bin/server.rs +++ b/iris-mpc/src/bin/server.rs @@ -1262,13 +1262,13 @@ async fn server_main(config: Config) -> eyre::Result<()> { StoredIris::DB(iris) => { n_loaded_from_db += 1; serial_ids_from_db.insert(iris.id()); - // actor.load_single_record_from_db( - // iris.index() - 1, - // iris.left_code(), - // iris.left_mask(), - // iris.right_code(), - // iris.right_mask(), - // ); + actor.load_single_record_from_db( + iris.index() - 1, + iris.left_code(), + iris.left_mask(), + iris.right_code(), + iris.right_mask(), + ); } StoredIris::S3(iris) => { if serial_ids_from_db.contains(&iris.id()) { @@ -1280,17 +1280,17 @@ async fn server_main(config: Config) -> eyre::Result<()> { continue; } n_loaded_from_s3 += 1; - // actor.load_single_record_from_s3( - // iris.index() - 1, - // iris.left_code_odd(), - // iris.left_code_even(), - // iris.right_code_odd(), - // iris.right_code_even(), - // iris.left_mask_odd(), - // iris.left_mask_even(), - // iris.right_mask_odd(), - // iris.right_mask_even(), - // ); + actor.load_single_record_from_s3( + iris.index() - 1, + iris.left_code_odd(), + iris.left_code_even(), + iris.right_code_odd(), + iris.right_code_even(), + iris.left_mask_odd(), + iris.left_mask_even(), + iris.right_mask_odd(), + iris.right_mask_even(), + ); } };