It takes about 10 seconds to complete triggering campaigns which has 1000 emails in default it is processing 100 per batch
mautic:campaigns:trigger
I want to make it faster because in production there will be lots of emails to be triggered so I tried using max-threads=5 and batch-limit=500
But this is not working and taking same amount of time as before
mautic:campaigns:trigger --max-threads=10 --batch-limit=1000
I was able to send 100 emails per second with 27 threads running concurrently however trigger campaign should match sends as that will put emails in queue. I tried using max thread option with trigger, but it’s not working
What do you mean by not working?
How fast you wanna send?
If you want to so fast I think you should look for another software. Its hurting you more then helping.
If you use the campaign action to send email rather then segment email - you will end up in blacklist since Mautic doesnt apply unsub header for campign emails
Thank you very much @joeyk. Very helpful videos to understand Mautic, really good work there.
I am also using queue as per your advice for huge emails and I have cron job for email sending which is working great as I have used multiple threads and email sending from queue is pretty fast.
Now I also need to speed cron job of campaign triggers. But problem is I dont know how to use multi-threading here. Can you give some examples how we can use maxthread argument for cron job of campaign trigger?
Example when I use two commands simultaneously for cron job campaign trigger, the second one gives error as below