-bash-4.2$ time /opt/plesk/php/7.0/bin/php apps/console/console.php send-campaigns --verbose=1
[2016-06-09 09:57:13] - Loading 5 campaigns, starting with offset 0...
[2016-06-09 09:57:13] - Found 1 campaigns and now starting processing them...
[2016-06-09 09:57:13] - Campaign Worker #0 looking into the campaign with ID: 111
[2016-06-09 09:57:13] - This campaign belongs to Serban Cristian(uid: qt449zobz7696).
[2016-06-09 09:57:13] - Changing the campaign status into PROCESSING!
[2016-06-09 09:57:13] - Looking for subscribers for campaign with uid gs365glec672d...(This is subscribers worker #0)
[2016-06-09 09:57:13] - This subscribers worker(#0) will process 5 subscribers for this campaign...
[2016-06-09 09:57:13] - Running subscribers cleanup...
[2016-06-09 09:57:13] - Checking subscribers count after cleanup: 5
[2016-06-09 09:57:13] - Entering the foreach processing loop for all 5 subscribers...
[2016-06-09 09:57:13] - bbb@bbb.com - 1/5
[2016-06-09 09:57:13] - Checking if we can send to domain of bbb@bbb.com...
[2016-06-09 09:57:13] - Checking if bbb@bbb.com is blacklisted...
[2016-06-09 09:57:13] - Checking if the server is over quota...
[2016-06-09 09:57:13] - Checking if the customer is over quota...
[2016-06-09 09:57:13] - Preparing the entire email...
[2016-06-09 09:57:13] - Using delivery server: web-api.elasticemail.com (ID: 12).
[2016-06-09 09:57:13] - Sending the email message using the DIRECT method.
[2016-06-09 09:57:14] - Sending response is: OK
[2016-06-09 09:57:14] - Sending OK.
[2016-06-09 09:57:14] - Done for bbb@bbb.com, logging delivery...
[2016-06-09 09:57:14] - xxx@xxx.com - 2/5
[2016-06-09 09:57:14] - Checking if we can send to domain of xxx@xxx.com...
[2016-06-09 09:57:14] - Checking if xxx@xxx.com is blacklisted...
[2016-06-09 09:57:14] - Checking if the server is over quota...
[2016-06-09 09:57:14] - Checking if the customer is over quota...
[2016-06-09 09:57:14] - Preparing the entire email...
[2016-06-09 09:57:14] - Using delivery server: web-api.elasticemail.com (ID: 12).
[2016-06-09 09:57:14] - Sending the email message using the DIRECT method.
[2016-06-09 09:57:14] - Sending response is: OK
[2016-06-09 09:57:14] - Sending OK.
[2016-06-09 09:57:14] - Done for xxx@xxx.com, logging delivery...
[2016-06-09 09:57:14] - zzz@zzz.com - 3/5
[2016-06-09 09:57:14] - Checking if we can send to domain of zzz@zzz.com...
[2016-06-09 09:57:14] - Checking if zzz@zzz.com is blacklisted...
[2016-06-09 09:57:14] - Checking if the server is over quota...
[2016-06-09 09:57:14] - Checking if the customer is over quota...
[2016-06-09 09:57:14] - Preparing the entire email...
[2016-06-09 09:57:14] - Using delivery server: php-mail.local.host (ID: 9).
[2016-06-09 09:57:14] - Sending the email message using the DIRECT method.
[2016-06-09 09:57:14] - Sending response is: OK
[2016-06-09 09:57:14] - Sending OK.
[2016-06-09 09:57:14] - Done for zzz@zzz.com, logging delivery...
[2016-06-09 09:57:14] - aaa@bbb.com - 4/5
[2016-06-09 09:57:14] - Checking if we can send to domain of bbb@bbb.com...
[2016-06-09 09:57:14] - Checking if bbb@bbb.com is blacklisted...
[2016-06-09 09:57:14] - Checking if the server is over quota...
[2016-06-09 09:57:14] - Checking if the customer is over quota...
[2016-06-09 09:57:14] - Preparing the entire email...
[2016-06-09 09:57:14] - Using delivery server: php-mail.local.host (ID: 9).
[2016-06-09 09:57:14] - Sending the email message using the DIRECT method.
[2016-06-09 09:57:14] - Sending response is: OK
[2016-06-09 09:57:14] - Sending OK.
[2016-06-09 09:57:14] - Done for bbb@bbb.com, logging delivery...
[2016-06-09 09:57:14] - eee@eee.com - 5/5
[2016-06-09 09:57:14] - Checking if we can send to domain of eee@eee.com...
[2016-06-09 09:57:14] - Checking if eee@eee.com is blacklisted...
[2016-06-09 09:57:14] - Checking if the server is over quota...
[2016-06-09 09:57:14] - Checking if the customer is over quota...
[2016-06-09 09:57:14] - Preparing the entire email...
[2016-06-09 09:57:14] - Using delivery server: web-api.elasticemail.com (ID: 12).
[2016-06-09 09:57:14] - Sending the email message using the DIRECT method.
[2016-06-09 09:57:14] - Sending response is: OK
[2016-06-09 09:57:14] - Sending OK.
[2016-06-09 09:57:14] - Done for eee@eee.com, logging delivery...
[2016-06-09 09:57:14] - Done processing 5 subscribers!
[2016-06-09 09:57:14] - Campaign has been marked as sent!
real 0m0.775s
user 0m0.290s
sys 0m0.177s
-bash-4.2$
@bzctoons - your understanding is correct and the server should change after 10 sent emails. The way the next server is selected is based on availability, but in either case, the current server is not used anymore (the one that sent the first 10 emails).
I just did a test now with these settings:
https://www.dropbox.com/s/ntuyr72qc0dald6/Screenshot 2016-06-09 13.00.11.png?dl=0
and this is how the servers have been used:
Code:-bash-4.2$ time /opt/plesk/php/7.0/bin/php apps/console/console.php send-campaigns --verbose=1 [2016-06-09 09:57:13] - Loading 5 campaigns, starting with offset 0... [2016-06-09 09:57:13] - Found 1 campaigns and now starting processing them... [2016-06-09 09:57:13] - Campaign Worker #0 looking into the campaign with ID: 111 [2016-06-09 09:57:13] - This campaign belongs to Serban Cristian(uid: qt449zobz7696). [2016-06-09 09:57:13] - Changing the campaign status into PROCESSING! [2016-06-09 09:57:13] - Looking for subscribers for campaign with uid gs365glec672d...(This is subscribers worker #0) [2016-06-09 09:57:13] - This subscribers worker(#0) will process 5 subscribers for this campaign... [2016-06-09 09:57:13] - Running subscribers cleanup... [2016-06-09 09:57:13] - Checking subscribers count after cleanup: 5 [2016-06-09 09:57:13] - Entering the foreach processing loop for all 5 subscribers... [2016-06-09 09:57:13] - bbb@bbb.com - 1/5 [2016-06-09 09:57:13] - Checking if we can send to domain of bbb@bbb.com... [2016-06-09 09:57:13] - Checking if bbb@bbb.com is blacklisted... [2016-06-09 09:57:13] - Checking if the server is over quota... [2016-06-09 09:57:13] - Checking if the customer is over quota... [2016-06-09 09:57:13] - Preparing the entire email... [2016-06-09 09:57:13] - Using delivery server: web-api.elasticemail.com (ID: 12). [2016-06-09 09:57:13] - Sending the email message using the DIRECT method. [2016-06-09 09:57:14] - Sending response is: OK [2016-06-09 09:57:14] - Sending OK. [2016-06-09 09:57:14] - Done for bbb@bbb.com, logging delivery... [2016-06-09 09:57:14] - xxx@xxx.com - 2/5 [2016-06-09 09:57:14] - Checking if we can send to domain of xxx@xxx.com... [2016-06-09 09:57:14] - Checking if xxx@xxx.com is blacklisted... [2016-06-09 09:57:14] - Checking if the server is over quota... [2016-06-09 09:57:14] - Checking if the customer is over quota... [2016-06-09 09:57:14] - Preparing the entire email... [2016-06-09 09:57:14] - Using delivery server: web-api.elasticemail.com (ID: 12). [2016-06-09 09:57:14] - Sending the email message using the DIRECT method. [2016-06-09 09:57:14] - Sending response is: OK [2016-06-09 09:57:14] - Sending OK. [2016-06-09 09:57:14] - Done for xxx@xxx.com, logging delivery... [2016-06-09 09:57:14] - zzz@zzz.com - 3/5 [2016-06-09 09:57:14] - Checking if we can send to domain of zzz@zzz.com... [2016-06-09 09:57:14] - Checking if zzz@zzz.com is blacklisted... [2016-06-09 09:57:14] - Checking if the server is over quota... [2016-06-09 09:57:14] - Checking if the customer is over quota... [2016-06-09 09:57:14] - Preparing the entire email... [2016-06-09 09:57:14] - Using delivery server: php-mail.local.host (ID: 9). [2016-06-09 09:57:14] - Sending the email message using the DIRECT method. [2016-06-09 09:57:14] - Sending response is: OK [2016-06-09 09:57:14] - Sending OK. [2016-06-09 09:57:14] - Done for zzz@zzz.com, logging delivery... [2016-06-09 09:57:14] - aaa@bbb.com - 4/5 [2016-06-09 09:57:14] - Checking if we can send to domain of bbb@bbb.com... [2016-06-09 09:57:14] - Checking if bbb@bbb.com is blacklisted... [2016-06-09 09:57:14] - Checking if the server is over quota... [2016-06-09 09:57:14] - Checking if the customer is over quota... [2016-06-09 09:57:14] - Preparing the entire email... [2016-06-09 09:57:14] - Using delivery server: php-mail.local.host (ID: 9). [2016-06-09 09:57:14] - Sending the email message using the DIRECT method. [2016-06-09 09:57:14] - Sending response is: OK [2016-06-09 09:57:14] - Sending OK. [2016-06-09 09:57:14] - Done for bbb@bbb.com, logging delivery... [2016-06-09 09:57:14] - eee@eee.com - 5/5 [2016-06-09 09:57:14] - Checking if we can send to domain of eee@eee.com... [2016-06-09 09:57:14] - Checking if eee@eee.com is blacklisted... [2016-06-09 09:57:14] - Checking if the server is over quota... [2016-06-09 09:57:14] - Checking if the customer is over quota... [2016-06-09 09:57:14] - Preparing the entire email... [2016-06-09 09:57:14] - Using delivery server: web-api.elasticemail.com (ID: 12). [2016-06-09 09:57:14] - Sending the email message using the DIRECT method. [2016-06-09 09:57:14] - Sending response is: OK [2016-06-09 09:57:14] - Sending OK. [2016-06-09 09:57:14] - Done for eee@eee.com, logging delivery... [2016-06-09 09:57:14] - Done processing 5 subscribers! [2016-06-09 09:57:14] - Campaign has been marked as sent! real 0m0.775s user 0m0.290s sys 0m0.177s -bash-4.2$