From 926f57f675045ac8ebe310a02676239fe9046283 Mon Sep 17 00:00:00 2001 From: Mohsin Zaidi <2236875+smrz2001@users.noreply.github.com> Date: Mon, 24 Jun 2024 13:33:49 -0400 Subject: [PATCH] chore: reduce anchor batch size to 1 --- operator/src/network/cas.rs | 2 +- operator/src/network/controller.rs | 27 +++++++++++++++++++ .../testdata/default_stubs/cas_stateful_set | 2 +- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/operator/src/network/cas.rs b/operator/src/network/cas.rs index b84c5cc..c5e40cb 100644 --- a/operator/src/network/cas.rs +++ b/operator/src/network/cas.rs @@ -481,7 +481,7 @@ pub fn cas_stateful_set_spec( }, EnvVar { name: "ANCHOR_BATCH_SIZE".to_owned(), - value: Some("20".to_owned()), + value: Some("1".to_owned()), ..Default::default() }, EnvVar { diff --git a/operator/src/network/controller.rs b/operator/src/network/controller.rs index 84eda16..de053ec 100644 --- a/operator/src/network/controller.rs +++ b/operator/src/network/controller.rs @@ -2869,6 +2869,15 @@ mod tests { "name": "cas-worker", "resources": { "limits": { + @@ -342,7 +342,7 @@ + }, + { + "name": "ANCHOR_BATCH_SIZE", + - "value": "20" + + "value": "1" + }, + { + "name": "ANCHOR_BATCH_LINGER", @@ -442,8 +442,8 @@ "value": "dev" } @@ -2991,6 +3000,15 @@ mod tests { "ephemeral-storage": "1Gi", "memory": "1Gi" } + @@ -342,7 +342,7 @@ + }, + { + "name": "ANCHOR_BATCH_SIZE", + - "value": "20" + + "value": "1" + }, + { + "name": "ANCHOR_BATCH_LINGER", @@ -365,12 +365,12 @@ "name": "cas-scheduler", "resources": { @@ -4691,6 +4709,15 @@ mod tests { "name": "ETH_CONTRACT_ADDRESS", "value": "0x231055A0852D67C7107Ad0d0DFeab60278fE6AdC" }, + @@ -342,7 +350,7 @@ + }, + { + "name": "ANCHOR_BATCH_SIZE", + - "value": "20" + + "value": "1" + }, + { + "name": "ANCHOR_BATCH_LINGER", "#]]); let (testctx, api_handle) = Context::test(mock_rpc_client); let fakeserver = ApiServerVerifier::new(api_handle); diff --git a/operator/src/network/testdata/default_stubs/cas_stateful_set b/operator/src/network/testdata/default_stubs/cas_stateful_set index d3d3141..03553c5 100644 --- a/operator/src/network/testdata/default_stubs/cas_stateful_set +++ b/operator/src/network/testdata/default_stubs/cas_stateful_set @@ -342,7 +342,7 @@ Request { }, { "name": "ANCHOR_BATCH_SIZE", - "value": "20" + "value": "1" }, { "name": "ANCHOR_BATCH_LINGER",