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
- Flagsmith rated this a minor incident.
- It was resolved after 7 h 20 min. That is longer than a typical Flagsmith incident: the median of the 18 other resolved ones we recorded is 1 h 9 min.
- Flagsmith had 3 other incidents in the 30 days before it.
- 5 earlier incidents look like the same kind of problem (same affected part or wording); the most recent was on 22 Jan 2026.
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...
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...
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.
-
, resolved after 16 min
-
, resolved after 1 h 44 min
-
, resolved after 2 days
Small number of intermittent requests to Edge API failingPostmortem
-
, resolved after 1 h 9 min
Increased error rates on the Edge APIPostmortem
-
, resolved after 18 min
Other recent Flagsmith incidents
Something wrong on this page?
Thanks - your report is on its way to us. We read every one.