diff --git a/deploy/stage/mpc1-stage/values-iris-mpc.yaml b/deploy/stage/mpc1-stage/values-iris-mpc.yaml index 6b5286c8f..27926072c 100644 --- a/deploy/stage/mpc1-stage/values-iris-mpc.yaml +++ b/deploy/stage/mpc1-stage/values-iris-mpc.yaml @@ -70,3 +70,6 @@ env: - name: SMPC__INIT_DB_SIZE value: "10000" + + - name: SMPC__MAX_BATCH_SIZE + value: "64" diff --git a/deploy/stage/mpc2-stage/values-iris-mpc.yaml b/deploy/stage/mpc2-stage/values-iris-mpc.yaml index 94aac2f26..bb4c64dd0 100644 --- a/deploy/stage/mpc2-stage/values-iris-mpc.yaml +++ b/deploy/stage/mpc2-stage/values-iris-mpc.yaml @@ -70,3 +70,6 @@ env: - name: SMPC__INIT_DB_SIZE value: "10000" + + - name: SMPC__MAX_BATCH_SIZE + value: "64" diff --git a/deploy/stage/mpc3-stage/values-iris-mpc.yaml b/deploy/stage/mpc3-stage/values-iris-mpc.yaml index 28bb175d5..f38e50a39 100644 --- a/deploy/stage/mpc3-stage/values-iris-mpc.yaml +++ b/deploy/stage/mpc3-stage/values-iris-mpc.yaml @@ -70,3 +70,6 @@ env: - name: SMPC__INIT_DB_SIZE value: "10000" + + - name: SMPC__MAX_BATCH_SIZE + value: "64" diff --git a/deploy/stage/smpc0-stage-eu-north-1/values-iris-mpc.yaml b/deploy/stage/smpc0-stage-eu-north-1/values-iris-mpc.yaml index e0ab3ac11..1e5327ca3 100644 --- a/deploy/stage/smpc0-stage-eu-north-1/values-iris-mpc.yaml +++ b/deploy/stage/smpc0-stage-eu-north-1/values-iris-mpc.yaml @@ -72,4 +72,7 @@ env: value: "true" - name: SMPC__INIT_DB_SIZE - value: "10000" \ No newline at end of file + value: "10000" + + - name: SMPC__MAX_BATCH_SIZE + value: "64" diff --git a/deploy/stage/smpc1-stage-eu-north-1/values-iris-mpc.yaml b/deploy/stage/smpc1-stage-eu-north-1/values-iris-mpc.yaml index 3fed89f1c..6d1f97892 100644 --- a/deploy/stage/smpc1-stage-eu-north-1/values-iris-mpc.yaml +++ b/deploy/stage/smpc1-stage-eu-north-1/values-iris-mpc.yaml @@ -73,3 +73,6 @@ env: - name: SMPC__INIT_DB_SIZE value: "10000" + + - name: SMPC__MAX_BATCH_SIZE + value: "64" diff --git a/deploy/stage/smpc2-stage-eu-north-1/values-iris-mpc.yaml b/deploy/stage/smpc2-stage-eu-north-1/values-iris-mpc.yaml index e1cefdff7..44801e743 100644 --- a/deploy/stage/smpc2-stage-eu-north-1/values-iris-mpc.yaml +++ b/deploy/stage/smpc2-stage-eu-north-1/values-iris-mpc.yaml @@ -72,4 +72,7 @@ env: value: "true" - name: SMPC__INIT_DB_SIZE - value: "10000" \ No newline at end of file + value: "10000" + + - name: SMPC__MAX_BATCH_SIZE + value: "64" diff --git a/iris-mpc-common/src/config/mod.rs b/iris-mpc-common/src/config/mod.rs index f0c1b5d06..a05d6becd 100644 --- a/iris-mpc-common/src/config/mod.rs +++ b/iris-mpc-common/src/config/mod.rs @@ -55,7 +55,7 @@ pub struct Config { #[serde(default)] pub init_db_size: usize, - #[serde(default)] + #[serde(default = "default_max_batch_size")] pub max_batch_size: usize, } @@ -63,6 +63,10 @@ fn default_processing_timeout_secs() -> u64 { 60 } +fn default_max_batch_size() -> usize { + 64 +} + impl Config { pub fn load_config(prefix: &str) -> eyre::Result { let settings = config::Config::builder();