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

[Question] 是否支持按照系统资源动态调整线程池参数 #1586

Open
1 task done
ccl125 opened this issue Dec 26, 2024 · 2 comments
Open
1 task done

[Question] 是否支持按照系统资源动态调整线程池参数 #1586

ccl125 opened this issue Dec 26, 2024 · 2 comments

Comments

@ccl125
Copy link

ccl125 commented Dec 26, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Question

比如根据系统的cpu利用率,jvm的运行情况,下游服务的资源状况等这些特定的资源参数,动态调整线程池中线程的数量呢?
我们目前的业务场景是可以根据配置中心动态的修改线程池的参数,但是参数的配置还是要靠人来操作,期望能够根据系统和上下游的负载等一些指标,来动态的去调整参数。
看了下文档,好像没有这部分的内容,动态变更也只是说的运行时动态变化,我理解还是监听的人为的操作或者一些告警监控来实现的吧?

@q1979635364
Copy link

同,期望有一些自动化调整线程池参数的策略可以使用

@ccl125
Copy link
Author

ccl125 commented Jan 13, 2025

是的,就是看下有没有类似的实现,比如各个下游和自身的资源等等都是一种扩缩容的策略,实现对应的策略,可能是各种HPA指标,当没有达到配置的阈值的时候就动态的扩容,直到达到系统预期的利用率。当流量高的时候超过策略配置的缩容阈值就缩容。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants