Flagsmith outage, 5 September 2023

Core API is not responding

Started
Resolved
5 Sept 2023, 12:01 UTC
Impact
Critical
Affected
Admin API

Is this still happening?

No. Flagsmith marked this incident resolved on 5 Sept 2023, 12:01 UTC.

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

**Summary** On September 5th at 09:45 UTC, we initiated a release that included a database migration aimed at introducing a new constraint to the table containing information related to flags. According to our pre-live tests, this task should not have taken more than 50 milliseconds. Unfortunately, during the release to production, due to the high throughput on a particular table that it needed to acquire a temporary lock on, this caused a backlog of blocked connections waiting on the migration to complete. This caused a knock on effect that exhausted the connections on the database and a full restart was necessary. Once the restart was complete, the connections were restored and service was resumed. This happened at 10:20 UTC. **Next Steps** We have researched the cause of the issue and we do still have further research to understand certain aspects. Our current plan in the meantime is to implement certain safeguards as can be found in the following links to the Postgres documentation which should help reduce any impact in the future. [https://www.postgresql.org/docs/11/runtime-config-client.html](https://www.postgresql.org/docs/11/runtime-config-client.html) [https://www.postgresql.org/docs/11/runtime-config-logging.html](https://www.postgresql.org/docs/11/runtime-config-logging.html) \(`log_lock_waits`\)

Read the full postmortem from Flagsmith

Last update from Flagsmith

**Summary** On September 5th at 09:45 UTC, we initiated a release that included a database migration aimed at introducing a new constraint to the table containing information related to flags. According to our pre-live tests, this task should not have taken more than 50 milliseconds. Unfortunately, during the release to production, due to the high throughput on a particular table that it needed to acquire a temporary lock on, this caused a backlog of blocked connections waiting on the migration to complete. This caused a knock on effect that exhausted the connections on the database and a full restart was necessary. Once the restart was complete, the connections were restored and service w...

12 Sept 2023, 16:50 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 40 min

    Performance impacted to our Core API

  2. , resolved after 15 min

    Admin and SDK API outage

  3. , resolved after 3 h 9 min

    Increased API latency

  4. , resolved after 1 h 27 min

    Delays processing flag changes

  5. , resolved after 16 min

    Delayed asynchronous task processing

Other recent Flagsmith incidents

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

  2. Data parsing issues in Edge API

  3. Task processor down

  4. Flagsmith dashboard not loading

  5. Public Website DownPostmortem

  6. Small number of intermittent requests to Edge API failingPostmortem

  7. Issues persisting identities with empty trait values

  8. Core API outagePostmortem

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.