Skip to content

Commit

Permalink
chore: reduce anchor batch size to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Jun 24, 2024
1 parent f8d3e0d commit 926f57f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion operator/src/network/cas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
27 changes: 27 additions & 0 deletions operator/src/network/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ Request {
},
{
"name": "ANCHOR_BATCH_SIZE",
"value": "20"
"value": "1"
},
{
"name": "ANCHOR_BATCH_LINGER",
Expand Down

0 comments on commit 926f57f

Please sign in to comment.