From 2712b8d8c317a643a7ae5bd041f3af7b3fc085fb Mon Sep 17 00:00:00 2001 From: Mohsin Zaidi <2236875+smrz2001@users.noreply.github.com> Date: Mon, 20 May 2024 19:42:23 -0400 Subject: [PATCH] chore: use 8k batches in dev/tnet/prod --- env/.env.dev | 2 +- env/.env.prod | 2 +- env/.env.tnet | 2 +- models/constants.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/env/.env.dev b/env/.env.dev index 59adbd9..a9b0717 100644 --- a/env/.env.dev +++ b/env/.env.dev @@ -1,6 +1,6 @@ ANCHOR_AUDIT_ENABLED=true ANCHOR_BATCH_LINGER=1h -ANCHOR_BATCH_SIZE=16383 +ANCHOR_BATCH_SIZE=8192 ANCHOR_BATCH_MONITOR_TICK=10s MAX_ANCHOR_WORKERS=5 LONG_QUEUE_VISIBILITY_TIMEOUT=2h diff --git a/env/.env.prod b/env/.env.prod index bde55a8..2a19394 100644 --- a/env/.env.prod +++ b/env/.env.prod @@ -1,6 +1,6 @@ ANCHOR_AUDIT_ENABLED=true ANCHOR_BATCH_LINGER=1h -ANCHOR_BATCH_SIZE=16383 +ANCHOR_BATCH_SIZE=8192 ANCHOR_BATCH_MONITOR_TICK=10s MAX_ANCHOR_WORKERS=5 LONG_QUEUE_VISIBILITY_TIMEOUT=2h diff --git a/env/.env.tnet b/env/.env.tnet index 315d695..eb83ba5 100644 --- a/env/.env.tnet +++ b/env/.env.tnet @@ -1,6 +1,6 @@ ANCHOR_AUDIT_ENABLED=true ANCHOR_BATCH_LINGER=1h -ANCHOR_BATCH_SIZE=16383 +ANCHOR_BATCH_SIZE=8192 ANCHOR_BATCH_MONITOR_TICK=10s MAX_ANCHOR_WORKERS=5 LONG_QUEUE_VISIBILITY_TIMEOUT=2h diff --git a/models/constants.go b/models/constants.go index f8748c4..a86657b 100644 --- a/models/constants.go +++ b/models/constants.go @@ -2,7 +2,7 @@ package models import "time" -const DefaultAnchorBatchSize = 16383 +const DefaultAnchorBatchSize = 8192 const DefaultAnchorBatchLinger = 1 * time.Hour const (