Skip to content

feat: Add unspooling throttle - #6433

Open
elramen wants to merge 2 commits into
masterfrom
elramen-limit
Open

elramen wants to merge 2 commits into
masterfrom
elramen-limit

Conversation

@elramen

@elramen elramen commented Sep 25, 2026

Copy link
Copy Markdown
Member

Add unspooling throttle configured to 1k envelopes/second by default. The idea is to prevent unspooling rates so high that rate limits are hit when spool volume is high.

Fixes: https://linear.app/getsentry/issue/INGEST-1055

@elramen
elramen requested a review from a team as a code owner September 25, 2026 12:59
@linear-code

linear-code Bot commented Sep 25, 2026

Copy link
Copy Markdown

INGEST-1055

Comment thread relay-config/src/config.rs Outdated
Comment thread relay-server/src/services/buffer/unspool_throttle.rs Outdated
Comment thread relay-server/src/services/buffer/unspool_throttle.rs
Co-authored-by: Sebastian Zivota <loewenheim@users.noreply.github.com>
@loewenheim
loewenheim requested a review from jjbayer September 28, 2026 09:15
Comment thread relay-server/src/services/buffer/unspool_throttle.rs

impl SqliteEnvelopeStack {
/// Creates a new empty [`SqliteEnvelopeStack`].
#[allow(clippy::too_many_arguments)]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to make this a builder or a config struct.

Comment thread relay-server/src/services/buffer/envelope_buffer/mod.rs
Comment thread relay-server/src/services/buffer/unspool_throttle.rs
Comment thread relay-server/src/services/buffer/unspool_throttle.rs

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants