-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sendout batches don't complete and plugin is very slow #39
Comments
I've never seen the sendouts page load that slowly. Yes, the batches are each assigned to a new job. A few questions:
|
I’ve seen it load somewhat slowly (noticeably more slow than other craft cp pages, but not this bad..) I thought maybe it could have something to do with using the craft async queue plugin, which runs jobs asynchronously, and can (I guess) be quite resource hungry.. |
Hey,
Edit |
What could be happening is that while sending, a sendout is locking the database in order to keep track of sending progress. The strange thing is that you said you are only sending in batches of 200 with a delay. Have you tried sending in the background? This is possible either by disabling |
I will try that, but I suspect the problem is elsewhere. Just did some more testing. The I/O jumps to 100% even just by clicking on |
I was able to setup the cron job as suggested, and trigger a sendout. It looks like only about 100 emails were sent though, so not sure what happened to the rest of the batch. Also, I/O jumped to 100%. Now the sending is over, and this is strange, going to The only difference between them is that the slow one is attached to a list of 8 200 subscribers. Shooting blindly in the dark here, but is there some (bug) somehow that fetches each subscriber in the list attached to the sendout, and that's what's stalling it so much? |
So Chrome devtools told me loading the sendout page (in this case Simply loading Ben: I'm sending you the log files on Discord. I'm not entirely sure if there is sensitive info in there I shouldn't just post anywhere. Hope that's cool. |
Thanks for the detailed report @stianmandarin. I believe the delay has to do with the calculation of pending recipients and I'm working on optimising this which should help to resolve the issue. There is quite a bit of refactoring involved bu I expect to have this ready by early next week. Thanks for your patience! |
Thanks for your excellent support @putyourlightson! |
@stianmandarin are you using any segments in the sendout that is being slow? |
Can you also check how many database queries are run when viewing the sendout page? Enabling the Craft debugging toolbar will show you cleary. |
@putyourlightson Not using any segments. db queries |
Even though the servers are identical, I will try putting the site up on one of the others to see if there's something wrong the the server itself. Will get back to you |
@putyourlightson Alright, put it up on a different server, but it didn't help. Also, I tried disabling |
Ok, I think it's time I had a look at the server. Can you please send credentials to a staging server that is experiencing the issue to info@putyourlightson.net with a description of the steps to take to reproduce it? An admin account in the CMS and ftp details if possible too. |
@putyourlightson Thanks! Will do! |
Also, how are you testing sending to such a large list without live email addresses? |
@putyourlightson With my first test of 1 000 I sent to stian+1@mandarindesign.no and stian+2@mandarindesign.no etc etc Will explain about the other list in the email, coming shortly |
Fixed in 1.5.2. |
Steps to reproduce.
Slow CP in general, even when not sending anything out
Campaign -> Sendouts
and everything slows to a crawl2.1) Server I/O usage (capped at 3mb) maxes out at 100%. but returns to a negligible level when the sendout finally opens
Sendouts are incomplete
'maxBatchSize' => 200,
and'batchJobDelay' => 7200,
so 200 emails every two hrs.See video for this in real time, server stats and I/O usage
https://drive.google.com/open?id=16-S6LhQOmrogneNn470qzTpNZJtqCfjm
Can I troubleshoot any of this somewhere? Is there an error log I can look at?
Thanks!
Edit
I've paused and resumed the sendout a few times during my testing of this problem, and looking at the db queue I see that a few jobs have bunched up (see attached image). Is that normal? The first job has a longer delay because I didn't change the campaign.php settings before starting the sendout.
![q](https://user-images.githubusercontent.com/23015690/49225341-11b57d80-f3e4-11e8-98a3-385fa1badb1b.png)
The text was updated successfully, but these errors were encountered: