From d7f8de5a51583b1f73c3d8f5f474df9003bde352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heath=20Dutton=20=E2=98=95?= Date: Fri, 4 Dec 2020 11:45:16 -0500 Subject: [PATCH 1/2] Reduce batch contact count to account for large integers --- .ebextensions/80_cron_start.config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ebextensions/80_cron_start.config b/.ebextensions/80_cron_start.config index 9c2f72b..ff18fcc 100644 --- a/.ebextensions/80_cron_start.config +++ b/.ebextensions/80_cron_start.config @@ -25,12 +25,12 @@ files: # SEGMENTS # To keep the segments current. # Run up to 3 batches of 300 contacts per segment, then move on to the next. - */10 * * * * root cronloop mautic:segments:update --max-contacts=10000 --batch-limit=10000 --quiet >/dev/null 2>&1 + */10 * * * * root cronloop mautic:segments:update --max-contacts=1000 --batch-limit=1000 --quiet >/dev/null 2>&1 # CAMPAIGNS # To keep campaigns updated with applicable contacts. # Run up to 3 batches of 300 contacts per campaign, then move on to the next. - */10 * * * * root cronloop mautic:campaigns:rebuild --max-contacts=5000 --batch-limit=1000 --quiet >/dev/null 2>&1 + */10 * * * * root cronloop mautic:campaigns:rebuild --max-contacts=1000 --batch-limit=1000 --quiet >/dev/null 2>&1 # To execute campaigns events. */10 * * * * root /bin/bash /var/app/current/scripts/mautic-worker.sh >/dev/null 2>&1 # If you don't want to use the worker script, use the following instead. From 5aff23c3cba624cc5992d64f281647bc162d2456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heath=20Dutton=20=E2=98=95?= Date: Fri, 4 Dec 2020 11:46:35 -0500 Subject: [PATCH 2/2] Reduce batch size for high volume segments --- scripts/mautic-segment-worker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mautic-segment-worker.sh b/scripts/mautic-segment-worker.sh index 61f0a2c..fb52041 100755 --- a/scripts/mautic-segment-worker.sh +++ b/scripts/mautic-segment-worker.sh @@ -33,6 +33,6 @@ then IFS=',' for segment in $MAUTIC_HV_SEGMENTS do - cronloop mautic:segments:update --list-id=$segment --batch-limit=10000 --max-contacts=10000 & + cronloop mautic:segments:update --list-id=$segment --batch-limit=500 --max-contacts=500 & done fi