We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
gopool是否可以开放WorkerCount()接口,用于业务监控gopool内goroutines数量,为gopool SetCap阈值提供依据
服务由于某些原因偶发Goroutines毛刺,导致CPU&Mem瞬间上涨,影响服务稳定性。因此想基于gopool.SetCap限制Goroutines数量,但Cap的阈值不太好确定(服务可以提供整个实例的Goroutines数量,但无法确定gopool协程池部分的Goroutines数量)。
No response
The text was updated successfully, but these errors were encountered:
看着应该可以,你有意愿提个 pr 来加一下么?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Summary
gopool是否可以开放WorkerCount()接口,用于业务监控gopool内goroutines数量,为gopool SetCap阈值提供依据
Motivation
服务由于某些原因偶发Goroutines毛刺,导致CPU&Mem瞬间上涨,影响服务稳定性。因此想基于gopool.SetCap限制Goroutines数量,但Cap的阈值不太好确定(服务可以提供整个实例的Goroutines数量,但无法确定gopool协程池部分的Goroutines数量)。
Explanation
No response
The text was updated successfully, but these errors were encountered: