Flagsmith outage, 19 July 2023

We are currently encountering difficulties with our task processing system.

Started
Resolved
19 Jul 2023, 10:19 UTC (after 7 h 20 min)
Impact
Minor
Affected
Edge API

Is this still happening?

No. Flagsmith marked this incident resolved on 19 Jul 2023, 10:19 UTC, 7 h 20 min after it began.

Right now: Flagsmith reports all systems operational. (as of 1 Dec, 21:50 UTC) Live Flagsmith status

At a glance

Our summary from the Flagsmith incidents we have recorded since 27 Feb 2023 - how we count.

What caused it: Flagsmith's root cause analysis

## Timeline We were alerted at 23:39 UTC on 18/07/2023 that the queue for our asynchronous task processor was above the acceptable threshold. Once our team was online in India at 2:59am UTC, the status page was updated. By this time the task processor queue had backed up and the application was not able to write flag change events to the datastore which powers the Edge API. We investigated multiple avenues to determine the cause of the issues but there were multiple ‘symptoms’ that made determining the root cause very difficult. One specific issue, which turned out to be a red herring, related to the functionality to forward core API requests to the Edge API. This process seemed to be taking much longer than expected. Much of the investigation was spent restricting the usage of this functionality. At around 9:30am UTC, the cause was attributed to a particular set of tasks in the queue which were causing the processor units to run out of memory. Once it was determined to be safe to do so, these tasks were removed from the queue. At 10:19 UTC the issue had been resolved and the queue had returned to normal, meaning that flag change events were being written to the Edge API datastore again. Any changes that were not processed at the time were also re-run to ensure that the state was consistent with the expected changes that had been made in the database. ## Issue Details The issue was caused by an environment in the Flagsmith platform that included 400 segments and nearly 5000 segment overrides. This meant that the environment document which is generated to power the Edge API was larger than it was possible for the task processor instances to load into memory, and subsequently write to the Edge API datastore. To compound the issue, these changes were made via the Flagsmith API which resulted in 1000s of tasks being generated to update the document in the Edge API datastore in a short space of time. Each of these needed to load the offending environment, causing the task processor instances to fall into a cycle of running out of memory. These tasks were slowly being blocked from being picked up again by the processors but the quantity meant that there were always new versions of the same \(or very similar\) tasks to pick up. ## Next Steps * Implement limits on the size of the environment document * This will primarily consist of implementing limits on the number of segments and features in a given projects, as well as limiting the total number...

Read the full postmortem from Flagsmith

Last update from Flagsmith

## Timeline We were alerted at 23:39 UTC on 18/07/2023 that the queue for our asynchronous task processor was above the acceptable threshold. Once our team was online in India at 2:59am UTC, the status page was updated. By this time the task processor queue had backed up and the application was not able to write flag change events to the datastore which powers the Edge API. We investigated multiple avenues to determine the cause of the issues but there were multiple ‘symptoms’ that made determining the root cause very difficult. One specific issue, which turned out to be a red herring, related to the functionality to forward core API requests to the Edge API. This process seemed to be tak...

19 Jul 2023, 16:24 UTC

Read the full incident on the official Flagsmith status page

Similar Flagsmith incidents

Earlier incidents with the same affected part or wording - useful to see how long this kind of problem usually takes.

  1. , resolved after 16 min

    Delayed asynchronous task processing

  2. , resolved after 1 h 44 min

    Data parsing issues in Edge API

  3. , resolved after 2 days

    Small number of intermittent requests to Edge API failingPostmortem

  4. , resolved after 1 h 9 min

    Increased error rates on the Edge APIPostmortem

  5. , resolved after 18 min

    Service Outage

Other recent Flagsmith incidents

  1. Admin and SDK API outage

  2. Delays processing flag changes

  3. Numeric values incorrectly being converted to numbers in environment documentsPostmortem

  4. Task processor down

  5. Flagsmith dashboard not loading

  6. Public Website DownPostmortem

  7. Issues persisting identities with empty trait values

  8. Increased API latency

All recorded Flagsmith incidents

Something wrong on this page?

A person reads every report. We fix our own mistakes - wording, mapping, a moved status page; the status itself always comes from Flagsmith's official page. How we handle corrections.

Thanks - your report is on its way to us. We read every one.