Mail delivery halted

Incident Report for mailgun

Postmortem

At 07/14 ~01:40 AM UTC one of our beanstalkd servers which we’re currently using for asynchronous jobs started replying with OUTOFMEMORY error to any attempt to insert a new job. The logic our clients used to fallback to standby beanstalkd server was considering connection errors only and didn’t take erroneous responses from beanstalkd into account so the fallback didn’t happen.

At 07/14 ~05:00 AM UTC the malfunctioning beanstalkd server was restarted at which point the normal operation of asynchronous jobs resumed.

Unfortunately, due to this deficiency in the producers’ fallback mechanism, majority of incoming messages (routes), batches and mailing lists during that time period were lost. No other systems, including regular messages processing, were affected.

We’re very sorry about this incident and are working to resolve the outstanding issues as soon as possible:

  • We have tweaked our monitoring systems to alert us about such incidents as soon as they are detected which will let us to react faster.
  • We are working on improving the fallback algorithm in job producers.

Please do not hesitate to reach out to our support for any questions.

-Mailgunners

Posted Jul 14, 2015 - 11:24 PDT

Resolved

This incident has been resolved.
Posted Jul 14, 2015 - 01:12 PDT

Update

Correction: no events were lost; batched mail, queued mailing-lists, routes, and webhooks that didn't send from 9-10pm PDT were lost.
Posted Jul 13, 2015 - 23:45 PDT

Update

Batched mail, mailing lists, and events that did not send from 9:00pm-10:00pm were lost due to an issue with our queue. We are monitoring the situation closely to prevent this from happening again.
Posted Jul 13, 2015 - 23:37 PDT

Monitoring

Mail delivery and routes have been restored.
Posted Jul 13, 2015 - 23:36 PDT

Identified

New batches are sending, mail remaining in the queue is beginning to send.
Posted Jul 13, 2015 - 22:10 PDT

Update

Update: Batched message delivery halted, single message delivery operational.
Posted Jul 13, 2015 - 21:49 PDT

Investigating

Mail delivery is halted. We are investigating the cause of the outage.
Posted Jul 13, 2015 - 21:34 PDT