Skip to content

chore: using go-kit maxprocs - #6433

Merged
fracasula merged 1 commit into
masterfrom
maxprocs
Oct 16, 2025
Merged

fracasula merged 1 commit into
masterfrom
maxprocs

Conversation

@fracasula

@fracasula fracasula commented Oct 13, 2025 •

Copy link
Copy Markdown
Collaborator

Description

Replacing Uber's automaxprocs with go-kit's maxprocs package for VPA in-place support.

Sidenotes

I'm leaving go.uber.org/automaxprocs for the regulation-worker.

Linear Ticket

< No Linear Link >

Security

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

@fracasula
fracasula requested review from atzoum and ktgowtham October 13, 2025 15:08
Comment thread runner/runner.go
"github.com/rudderlabs/rudder-go-kit/filemanager"
"github.com/rudderlabs/rudder-go-kit/jsonrs"
"github.com/rudderlabs/rudder-go-kit/logger"
_ "github.com/rudderlabs/rudder-go-kit/maxprocs"

@atzoum atzoum Oct 13, 2025 •

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.

t’s common for a processor pod to run with very low CPU requests during idle periods (e.g., around 0.2) and then suddenly require 10+ CPUs when traffic spikes. With the default MinProcs (1) and RequestsMultiplier (1.5), I’m concerned that we might limit the processor pods’ ability to scale up quickly, resulting in slower reactions compared to the current behavior.

Would it make sense to increase these values globally first in operator config?

MAXPROCS_MIN_PROCS: 5
MAXPROCS_REQUESTS_MULTIPLIER: 2

@fracasula fracasula Oct 14, 2025 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yeah we could do that but we don't even have the operator changes to inject the cpu requests via file mount either so nothing would happen anyway.

Comment thread main.go Resolved
@codecov

codecov Bot commented Oct 13, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.77%. Comparing base (b9ed172) to head (2b3ebe3).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6433      +/-   ##
==========================================
- Coverage   77.83%   77.77%   -0.07%     
==========================================
  Files         529      529              
  Lines       70344    70344              
==========================================
- Hits        54754    54709      -45     
- Misses      12770    12816      +46     
+ Partials     2820     2819       -1     

☔ 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.

# Conflicts:
#	go.mod
#	go.sum
@fracasula
fracasula merged commit 674ab55 into master Oct 16, 2025
@fracasula
fracasula deleted the maxprocs branch October 16, 2025 13:25
This was referenced Oct 27, 2025
mihir20 pushed a commit that referenced this pull request Oct 27, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.62.0-rc.1](v1.61.0...v1.62.0-rc.1)
(2025-10-27)


### Features

* introduce circuit breakers for oauth
([#6411](#6411))
([b9ed172](b9ed172))


### Bug Fixes

* deltalake fetch table attributes
([#6455](#6455))
([49907dc](49907dc))
* destination namespaces api to contain tablename filter
([#6388](#6388))
([61cffa4](61cffa4))
* repo cardinatlity for warehouse queries
([#6451](#6451))
([ac9adc4](ac9adc4))


### Miscellaneous

* always emit transformer_outgoing_request_latency metric
([#6454](#6454))
([33b742c](33b742c))
* avoid scanning all schemas and use limit 1
([#6396](#6396))
([8bb69ee](8bb69ee))
* bump rudder-go-kit to 0.63.4
([#6457](#6457))
([d499351](d499351))
* cleanup Avoid using beigntx within repo package and instead use
WithTx.
([#6389](#6389))
([21b7129](21b7129))
* improve cron tracker
([#6397](#6397))
([82407f4](82407f4))
* improve logging reporting event name trimming
([#6424](#6424))
([ce4d56d](ce4d56d))
* improve pending uploads
([#6399](#6399))
([717f6a6](717f6a6))
* improve populate table level schemas
([#6395](#6395))
([a0aa222](a0aa222))
* improve table level schemas
([#6398](#6398))
([a2d3786](a2d3786))
* remove monitor database
([#6393](#6393))
([a02c218](a02c218))
* remove unused oauthV2Enabled logger
([#6465](#6465))
([bf55861](bf55861))
* retaining both pickup query throttling configuration key options
([#6453](#6453))
([a51f395](a51f395))
* **router:** pickup query throttling should be enabled by default
([#6447](#6447))
([ff18dde](ff18dde))
* security improvements
([#6430](#6430))
([ce4d56d](ce4d56d))
* simplify pickup throttling configuration
([#6460](#6460))
([7fb035b](7fb035b))
* unused dependencies
([#6392](#6392))
([8e585b7](8e585b7))
* use org-wide docker registry mirror configuration
([#6444](#6444))
([f714b32](f714b32))
* using go-kit maxprocs
([#6433](#6433))
([674ab55](674ab55))

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


##
[1.62.0](v1.61.0...v1.62.0)
(2025-10-27)


### Features

* introduce circuit breakers for oauth
([#6411](#6411))
([b9ed172](b9ed172))


### Bug Fixes

* deltalake fetch table attributes
([#6455](#6455))
([49907dc](49907dc))
* destination namespaces api to contain tablename filter
([#6388](#6388))
([61cffa4](61cffa4))
* repo cardinatlity for warehouse queries
([#6451](#6451))
([ac9adc4](ac9adc4))


### Miscellaneous

* always emit transformer_outgoing_request_latency metric
([#6454](#6454))
([33b742c](33b742c))
* avoid scanning all schemas and use limit 1
([#6396](#6396))
([8bb69ee](8bb69ee))
* bump rudder-go-kit to 0.63.4
([#6457](#6457))
([d499351](d499351))
* cleanup Avoid using beigntx within repo package and instead use
WithTx.
([#6389](#6389))
([21b7129](21b7129))
* improve cron tracker
([#6397](#6397))
([82407f4](82407f4))
* improve logging reporting event name trimming
([#6424](#6424))
([ce4d56d](ce4d56d))
* improve pending uploads
([#6399](#6399))
([717f6a6](717f6a6))
* improve populate table level schemas
([#6395](#6395))
([a0aa222](a0aa222))
* improve table level schemas
([#6398](#6398))
([a2d3786](a2d3786))
* remove monitor database
([#6393](#6393))
([a02c218](a02c218))
* remove unused oauthV2Enabled logger
([#6465](#6465))
([bf55861](bf55861))
* retaining both pickup query throttling configuration key options
([#6453](#6453))
([a51f395](a51f395))
* **router:** pickup query throttling should be enabled by default
([#6447](#6447))
([ff18dde](ff18dde))
* security improvements
([#6430](#6430))
([ce4d56d](ce4d56d))
* simplify pickup throttling configuration
([#6460](#6460))
([7fb035b](7fb035b))
* unused dependencies
([#6392](#6392))
([8e585b7](8e585b7))
* use org-wide docker registry mirror configuration
([#6444](#6444))
([f714b32](f714b32))
* using go-kit maxprocs
([#6433](#6433))
([674ab55](674ab55))

---
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