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

fix(apigateway): set GOMAXPROCS to 2 when executing climc #22009

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

zexi
Copy link
Member

@zexi zexi commented Jan 22, 2025

What this PR does / why we need it:

k3s 部署的节点默认会设置 pod pid limit 到 1024 限制一个容器能启动的线程总数,climc pod 在多核的宿主机上运行时,go runtime 会根据 ncpu 启动很多线程来运行 goroutine ,就会出现 fatal error: newosproc 的错误

Does this PR need to be backport to the previous release branch?:

/area apigateway
/cc @swordqiu @wanyaoqi @ioito

@zexi zexi merged commit 6199873 into yunionio:master Jan 22, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants