Skip to content

Use dedicated threads for background workers#151

Merged
ogaca-dd merged 1 commit intoDataDog:masterfrom
kevingosse:kevin/statsdthread
Apr 14, 2021
Merged

Use dedicated threads for background workers#151
ogaca-dd merged 1 commit intoDataDog:masterfrom
kevingosse:kevin/statsdthread

Conversation

@kevingosse
Copy link
Copy Markdown
Contributor

Long-running operations (> 500 ms) should always go to a dedicated thread.

I used to think it didn't matter much, but I just ran into a situation where the threadpool wasn't scaling properly, and keeping this threadpool worker just to wait on a queue was causing a significant drop in a throughput.

@ogaca-dd
Copy link
Copy Markdown
Contributor

@kevingosse: Thanks for the improvement!

@ogaca-dd ogaca-dd merged commit 532efe4 into DataDog:master Apr 14, 2021
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