Skip to content

chore: unify adaptive and static throttling configuration - #6327

Merged
atzoum merged 2 commits into
masterfrom
chore.throttlingConfig
Sep 11, 2025
Merged

atzoum merged 2 commits into
masterfrom
chore.throttlingConfig

Conversation

@atzoum

@atzoum atzoum commented Sep 9, 2025 •

Copy link
Copy Markdown
Contributor

Description

Unifying throttling configuration, because as it stands now, adjusting it is really painful and error-prone.
We are also planning to remove the old deprecated keys in a future release after we have switched all of our configurations to the new keys.

Before

# Adaptive enabled by default for all destinations and destination types
# WEBHOOK destId1 - 100/10s non-adaptive
# WEBHOOK destId2 - 100/10s adaptive
throttling:
    adaptive:
        enabled: true
        WEBHOOK:
            destId1:
                enabled: false
            destId2:
                maxlimit: 100
    WEBHOOK:
        destId1:
            limit: 100
            timeWindow: 10s
        destId2:
            timeWindow: 10s

After

# Adaptive enabled by default for all destinations and destination types
# WEBHOOK destId1 - 100/10s non-adaptive
# WEBHOOK destId2 - 100/10s adaptive
throttling:
    adaptiveEnabled: true
    WEBHOOK:
        destId1:
            adaptiveEnabled: false
            limit: 100
            timeWindow: 10s
        destId2:
            maxLimit: 100
            timeWindow: 10s

Linear Ticket

resolves PIPE-2376

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@atzoum
atzoum marked this pull request as ready for review September 9, 2025 10:35
@atzoum
atzoum force-pushed the chore.throttlingConfig branch 3 times, most recently from db4435a to 69d805e Compare September 10, 2025 16:48
@codecov

codecov Bot commented Sep 10, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.61%. Comparing base (c1b84c1) to head (8cd36a1).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6327      +/-   ##
==========================================
+ Coverage   77.53%   77.61%   +0.07%     
==========================================
  Files         523      523              
  Lines       70185    70252      +67     
==========================================
+ Hits        54417    54523     +106     
+ Misses      12931    12889      -42     
- Partials     2837     2840       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ktgowtham ktgowtham left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the pR. it's easier to understand the configurations now. added a minor comment

@atzoum
atzoum force-pushed the chore.throttlingConfig branch 2 times, most recently from 4f5a995 to 3ba8795 Compare September 11, 2025 09:40
@atzoum
atzoum force-pushed the chore.throttlingConfig branch from 3ba8795 to 8cd36a1 Compare September 11, 2025 12:58
@fracasula

fracasula commented Sep 11, 2025 •

Copy link
Copy Markdown
Collaborator

@atzoum there seems to be an issue:

 === RUN   TestUTMirroring
=== RUN   TestUTMirroring/mirror_returns_the_same_events
    ut_mirroring_test.go:251: Processor setup and init done
fatal error: concurrent map read and map write

https://github.com/rudderlabs/rudder-server/actions/runs/17645295090/job/50141680001?pr=6327

It might be unrelated to your changes, not sure. Let me know if you want I can take a look.

@atzoum
atzoum enabled auto-merge (squash) September 11, 2025 15:53
@atzoum

atzoum commented Sep 11, 2025

Copy link
Copy Markdown
Contributor Author

@atzoum there seems to be an issue:

 === RUN   TestUTMirroring
=== RUN   TestUTMirroring/mirror_returns_the_same_events
    ut_mirroring_test.go:251: Processor setup and init done
fatal error: concurrent map read and map write

https://github.com/rudderlabs/rudder-server/actions/runs/17645295090/job/50141680001?pr=6327

It might be unrelated to your changes, not sure. Let me know if you want I can take a look.

This pr only deals with throttling in router, no changes in processor whatsoever. Could you please track this in a separate issue?

@atzoum
atzoum merged commit 077b0fb into master Sep 11, 2025
@atzoum
atzoum deleted the chore.throttlingConfig branch September 11, 2025 16:06
@fracasula

Copy link
Copy Markdown
Collaborator

This pr only deals with throttling in router, no changes in processor whatsoever. Could you please track this in a separate issue?

@atzoum yeah that's what I thought, will do 👍

This was referenced Sep 15, 2025
satishrudderstack pushed a commit that referenced this pull request Sep 15, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.59.0-rc.1](v1.58.0...v1.59.0-rc.1)
(2025-09-15)


### Features

* **router:** add request latency and count metrics for router
deliveries
([#6288](#6288))
([c8dd8ef](c8dd8ef))


### Bug Fixes

* avoid running migrations for notifier from slaves
([#6303](#6303))
([761eb46](761eb46))
* **batchrouter:** support configurable column ordering in CSVs in sftp
([#6342](#6342))
([652215b](652215b))
* populate table level schemas createdAt updatedAt
([#6344](#6344))
([a76a509](a76a509))
* remove unwanted table level schemas
([#6296](#6296))
([761eb46](761eb46))
* **router:** kinesis rate exceeded errors are being aborted with http
400 ([#6329](#6329))
([f739d7f](f739d7f))
* update ID regex to include underscores in error cleanup
([#6315](#6315))
([bc1a751](bc1a751))


### Miscellaneous

* add logs for events coming with an incorrect source and sourceRunId
([#6309](#6309))
([17afa60](17afa60))
* add readme for OAuth module
([#6335](#6335))
([3c9f251](3c9f251))
* bump go-kit
([#6321](#6321))
([87499e0](87499e0))
* bump mvdan.cc/gofumpt to v0.9.1
([#6328](#6328))
([cf9f653](cf9f653))
* capture stats for failed transformer client requests
([#6300](#6300))
([e10d5c1](e10d5c1))
* clean up legacy MTU logic
([#6314](#6314))
([a2e753d](a2e753d))
* clean up logs to trace double-encoded HLL value issue
([#6310](#6310))
([c707aea](c707aea))
* drop unused services/oauth v1 and minor v2 tidy-ups
([#6275](#6275))
([c1b84c1](c1b84c1))
* improve googlesheets oauth flow and error handling
([#6340](#6340))
([738d420](738d420))
* optimize dtransform payloads and have compaction always enabled
([#6331](#6331))
([63af856](63af856))
* remove proc_error jobsdb
([#6287](#6287))
([5b92665](5b92665))
* renaming mirroring modes
([#6325](#6325))
([84687fb](84687fb))
* **router:** ignore throttling costs in pickup throttler
([#6316](#6316))
([af85b92](af85b92))
* sync release v1.58.0 to main branch
([#6294](#6294))
([565630e](565630e))
* unify adaptive and static throttling configuration
([#6327](#6327))
([077b0fb](077b0fb))
* update rudderlabs/build-scan-push-action to 1.7.0
([#6320](#6320))
([edb02d3](edb02d3))
* updating keydb client
([#6301](#6301))
([0f9e3ec](0f9e3ec))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
satishrudderstack pushed a commit that referenced this pull request Sep 16, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.59.0](v1.58.0...v1.59.0)
(2025-09-15)


### Features

* **router:** add request latency and count metrics for router
deliveries
([#6288](#6288))
([c8dd8ef](c8dd8ef))


### Bug Fixes

* avoid running migrations for notifier from slaves
([#6303](#6303))
([761eb46](761eb46))
* **batchrouter:** support configurable column ordering in CSVs in sftp
([#6342](#6342))
([652215b](652215b))
* populate table level schemas createdAt updatedAt
([#6344](#6344))
([a76a509](a76a509))
* remove unwanted table level schemas
([#6296](#6296))
([761eb46](761eb46))
* **router:** kinesis rate exceeded errors are being aborted with http
400 ([#6329](#6329))
([f739d7f](f739d7f))
* update ID regex to include underscores in error cleanup
([#6315](#6315))
([bc1a751](bc1a751))


### Miscellaneous

* add logs for events coming with an incorrect source and sourceRunId
([#6309](#6309))
([17afa60](17afa60))
* add readme for OAuth module
([#6335](#6335))
([3c9f251](3c9f251))
* bump go-kit
([#6321](#6321))
([87499e0](87499e0))
* bump mvdan.cc/gofumpt to v0.9.1
([#6328](#6328))
([cf9f653](cf9f653))
* capture stats for failed transformer client requests
([#6300](#6300))
([e10d5c1](e10d5c1))
* clean up legacy MTU logic
([#6314](#6314))
([a2e753d](a2e753d))
* clean up logs to trace double-encoded HLL value issue
([#6310](#6310))
([c707aea](c707aea))
* drop unused services/oauth v1 and minor v2 tidy-ups
([#6275](#6275))
([c1b84c1](c1b84c1))
* improve googlesheets oauth flow and error handling
([#6340](#6340))
([738d420](738d420))
* optimize dtransform payloads and have compaction always enabled
([#6331](#6331))
([63af856](63af856))
* remove proc_error jobsdb
([#6287](#6287))
([5b92665](5b92665))
* renaming mirroring modes
([#6325](#6325))
([84687fb](84687fb))
* **router:** ignore throttling costs in pickup throttler
([#6316](#6316))
([af85b92](af85b92))
* sync release v1.58.0 to main branch
([#6294](#6294))
([565630e](565630e))
* unify adaptive and static throttling configuration
([#6327](#6327))
([077b0fb](077b0fb))
* update rudderlabs/build-scan-push-action to 1.7.0
([#6320](#6320))
([edb02d3](edb02d3))
* updating keydb client
([#6301](#6301))
([0f9e3ec](0f9e3ec))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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