Performance and cron setting

nemesis82

Active Member
Dear all,
i have a question for you on how to speed up multiple campaign / customer sending .
My scenario :
1 MW server with 16cpu ; 40GB ram; 300GB hd.
MW version 1.6.9
PHP 7.3.0-1+ubuntu18.04.1
4 different customer ( all customer with same settings as cron job, not real customer but different login with different subscribers )
Cron job ( I write only parameters with value / different from standard ):
Code:
Memory limit : 5GB
Adjust Campaign : Yes
Campaign at once : 10
Subscribers at once : 500
Send at once : 0
Pause : 0
Emails per minute : 0
Change server at : 15
Retry ... : No
Parallel sending via PCNTL : Yes
Campaign in parallel : 6
Subscriber batch in parallel : 30
Below send campaign logs :
Code:
[2019-01-28 05:22:57] - This cycle completed in 1195.24 seconds and used 46 MB of memory!
[2019-01-28 05:38:46] - This cycle completed in 945.27 seconds and used 2 MB of memory!
[2019-01-28 05:54:47] - This cycle completed in 946.28 seconds and used 2 MB of memory!
[2019-01-28 06:11:26] - This cycle completed in 984.28 seconds and used 2 MB of memory!
[2019-01-28 06:26:24] - This cycle completed in 863.35 seconds and used 31 MB of memory!
[2019-01-28 06:40:19] - This cycle completed in 797.26 seconds and used 2 MB of memory!
[2019-01-28 06:57:30] - This cycle completed in 989.74 seconds and used 20.5 MB of memory!
[2019-01-28 07:15:43] - This cycle completed in 1062.3 seconds and used 2 MB of memory!
[2019-01-28 07:32:18] - This cycle completed in 977.28 seconds and used 2 MB of memory!
[2019-01-28 07:50:24] - This cycle completed in 1042.29 seconds and used 2 MB of memory!
[2019-01-28 08:03:17] - This cycle completed in 736.23 seconds and used 2 MB of memory!
[2019-01-28 08:21:23] - This cycle completed in 1042.28 seconds and used 2 MB of memory!
My question :
There is a way to have each customer its own cycle to raise my speed sending ?
Actually, my MW server is very relaxed but if I raise cron settings all campaign slow down until hang due to a lot of campaign in sending / processing .
Also, another question, PCNTL not start cause the process is locked from previous campaign.

Probably this is the correct behavior but I ask you for major details :)

Thanks for your support
 
@nemesis82 - since each cycle sends to 500 subs but you also have cycles taking 1062.3 settings, we can see that the average per email is 2 second in that case. This is huge, and implies a super slow smtp server accepting connections.
Your lowest number, 736.23 also means more than one second per email, so again, slow smtp server.

When you have slow smtp servers, instead of sending a high number of subscribers at once, you better send less subscribers at once but increase the number of pcntl subscriber batches.

Also, there's no magic solution to slow smtp servers. They will drag down the entire application.
 
Back
Top