連続投稿でメールがすべて送信されない

This forum must approve all posts. As a result some posts are published in rapid succession: when a moderator logs in they approve the posts quickly after each other.

Most categories are set to “watching” for all users and almost no users log in, the forum is relying very heavily on email notifications.

The problem is that whenever posts are published in rapid succession (less than 1.5 minutes apart), not all emails are being sent. This query shows the count of all sent emails (entries in email_logs per topic). The amount of users that should be getting an email is around 2250. When people have logged in recently (about 1%) they don’t get an email, so the number varies a bit but should be between 2200 and 2250.

As you can see in the first three lines, posts published quickly after each other do not have the full amount of emails.

What could be going on here?

Oh, max_emails_per_day_per_user is set to something really high.


columns: topic, date/time, category, # emails sent

「いいね!」 2

ここ数ヶ月でいくつかの新しい知見が得られました。

  • 問題は実際のメールではなく、基盤となる通知の生成にあったこと
  • 短時間に多数の通知を生成すると、Sidekiq が Sidekiq is consuming too much memory というエラーで再起動してしまうこと
  • Sidekiq が再起動すると、投稿のために生成中の現在の通知バッチが中止され、通知が不完全になること

編集:UNICORN_SIDEKIQ_MAX_RSS を引き上げたことで、過去9日間この問題は再発していません。

「いいね!」 2

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.