You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "lawrence191 (via GitHub)" <gi...@apache.org> on 2023/06/29 11:38:41 UTC
[GitHub] [incubator-streampark] lawrence191 opened a new issue, #2821: [Bug] 无法通过limit-factor控制Pod资源limit/request的值
lawrence191 opened a new issue, #2821:
URL: https://github.com/apache/incubator-streampark/issues/2821
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/incubator-streampark/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
### Java Version
jdk 281
### Scala Version
2.12.x
### StreamPark Version
2.1.0
### Flink Version
1.15.4
### deploy mode
None
### What happened
在streampark页面设置参数如下:
-Dkubernetes.jobmanager.cpu=1 -Dkubernetes.jobmanager.cpu.limit-factor=2 -Dkubernetes.taskmanager.cpu=1 -Dkubernetes.taskmanager.cpu.limit-factor=2
按照flink官方文档:https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/deployment/config/#kubernetes
目前的设置limit的值应该是request的2倍,从日志中可以 看到参数读取到了,但是最终在pod中limit与request的值并未生效,limit与request一样都为1000m的cpu资源。
测试了在flink的bin目录下,手动的创建flink的session,添加一样的参数,则是正常设置了pod的cpu的limit/request。
### Error Exception
_No response_
### Screenshots
streampark页面:
![image](https://github.com/apache/incubator-streampark/assets/15275116/dc2c72e8-cd7a-4716-8297-6be7cb873d79)
streampark日志:
![image](https://github.com/apache/incubator-streampark/assets/15275116/e36ad7a5-01e2-4a54-85e5-daba733ab465)
Pod的cpu资源:
![image](https://github.com/apache/incubator-streampark/assets/15275116/bb534c12-b006-437d-bef3-76334857d7aa)
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!(您是否要贡献这个PR?)
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-streampark] lawrence191 closed issue #2821: [Bug] 无法通过limit-factor控制Pod资源limit/request的值
Posted by "lawrence191 (via GitHub)" <gi...@apache.org>.
lawrence191 closed issue #2821: [Bug] 无法通过limit-factor控制Pod资源limit/request的值
URL: https://github.com/apache/incubator-streampark/issues/2821
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org