Skip to content

Implement OOBGC and Async Fiber domain sweeps with OOM protection #5213

Description

@ayush6288

Background

This PR introduces:

  1. Out-of-Band GC middleware that defers GC to after the response, with mid-flight OOM protection via RSS monitoring.
  2. A Sequel extension for memory guard on DB queries.
  3. Async garbage collector bin using Ruby 3 Fibers and non-blocking HTTP for blobstore cleanup.

Design

See the PR description for full architectural details. All changes are opt-in via feature flags and configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions