rewindex

CompaniesUpstashIncidents

Upstash: Performance degradation on QStash

MajorStatus: postmortemStarted Resolved (3.2 h)4 updatesstspg.io (opens in new tab)
Summary

QStash had a major incident affecting EU-CENTRAL-1, with extremely high event-processing latency for all users and duplicate deliveries for some customers. It ran from 2024-11-13 14:14 UTC to 2024-11-13 17:27 UTC, lasting 3 h 12 min. Upstash attributed the degradation to sudden, extreme server load and reported implementing a fix before resolution.

Machine-written from the archived incident (Sol). Check the timeline before relying on it.

Affected components: EU-CENTRAL-1QStash

Timeline of updates

  1. investigating

    We are currently investigating this issue.

  2. identified

    The issue has been identified and a fix is being implemented.

  3. resolved

    We will be sharing a postmortem about the incident soon.

  4. postmortem

    Product: QStash
    Impact: Degraded performance, delayed processing of events, and duplicate event deliveries for some customers

    Incident Summary

    QStash experienced an incident marked by a sudden and extreme load on our servers. This caused a degradation in performance, with extremely high latency for event processing for all users. We also noticed some of the events being delivered multiple times to some of the users. To mitigate the high load, we have increased the capacity as our initial response while investigation proceeds. Eventually, fixes for the issues are confirmed with an issue reproducer and deployed to production.

    Root Cause Analysis

    In a certain type of usage, failure handling of failureFunction (opens in new tab) can cause recursive calls which causes a leak in the queue of the tasks, causing a severe load on the QStash servers. This also triggered an edge case which caused some of the events to be delivered multiple times.

    Resolution

    Two hotfixes to the QStash processes are deployed

    1. Prevent recursive calls within the failure function.
    2. Eliminate duplicate deliveries while keeping "at least once delivery" guarantee.
    These are verified to successfully resolve the root cause, normalizing server load and restoring standard event processing operations.

    Impact on Customers

    High latency of event processing is observed for all users. Some users received duplicate event deliveries. No events were lost, and all were delivered as part of our "at least once delivery" guarantee. Customers do not need to take any corrective action, as workflows have returned to normal and preventive fixes are deployed.

Changes Rewindex caught on this incident

Archive proof

Rewindex commits each version of an incident it captures to a daily checkpoint, chains it to the day before, and has the checkpoint timestamped by FreeTSA and DigiCert. That proves this record existed by then and has not been changed since, by anyone, Rewindex included.

How the archive is checked, and what it cannot prove.

Impact, status and times are the vendor’s own, as last archived. View on stspg.io (opens in new tab).

Cite this

Status incident (vendor impact label: major) posted by Upstash, started 2024-11-13 14:14 UTC, resolved after 3.2 h, 4 update(s).

Title
Performance degradation on QStash
Vendor
Upstash
Date
URL
https://rewindex.com/company/upstash/incidents/x1cpxkl3lby2

Upstash profileRecent Upstash incidentsAll outages on November 13, 2024Upstash in November 2024MarkdownJSON