Your software
My Mautic version is: 5.0.4
My PHP version is: PHP 8.1.2-1ubuntu2.19
My Database type and version is: MariaDB 10.6.18-MariaDB-0ubuntu0.22.04.1
Please tell me how to increase sending speed! I currently send 180 emails per minute using doctrine spooling and this cronjob:
A single systemd worker with messenger:consume processes these emails.
With this setup, all emails that are spooled into the messenger:messages table in the database are processed within one minute, before the next cronjob starts. However, this is not fast enough, I will need to at least triple the speed.
I have tried using multiple systemd workers with some success, increasing the speed up to 400 emails per minute. But using multiple workers will cause a database lock contention at some point, which leads me to assume that this job cannot be run multiple times.
My VM has 4 vCpus and 16 GB RAM. These limits are not even reached by half.
@fisch I had a similar issue that I was chasing over at this thread
TLDR: I found moving to RabbitMQ instead of the default docrtrine queue and running multiple crons (I chose to do this through supervisor) increased our send rate very well.