Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GOMAXPROCS settings for moco-agent and mysqld_exporter #570

Closed
wants to merge 1 commit into from

Conversation

yamatcha
Copy link
Contributor

@yamatcha yamatcha commented Sep 12, 2023

If GOMAXPROCS is not specified, go program is executed in multi process.
Resource limits is calculated with adding up all processes.
If the total CPU resource usage of the multi process exceeds resource limits, the CPU resource of the process will be limited.
This can causes response latency.

In this PR solves this problem by setting default GOMAXPROCS and providing custom enviornment variables.

@yamatcha yamatcha self-assigned this Sep 12, 2023
@ymmt2005
Copy link
Member

@yamatcha Could you give me the background for this PR?

@yamatcha yamatcha closed this Oct 16, 2023
@ymmt2005 ymmt2005 deleted the set-gomaxprocs branch October 16, 2023 00:33
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.

2 participants