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

[Bug] K8s application set pod limit can not be used #4129

Open
2 of 3 tasks
zongyonghao opened this issue Oct 31, 2024 · 1 comment
Open
2 of 3 tasks

[Bug] K8s application set pod limit can not be used #4129

zongyonghao opened this issue Oct 31, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@zongyonghao
Copy link

Search before asking

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

Java Version

1.8

Scala Version

2.12.x

StreamPark Version

2.1.5

Flink Version

1.18.1

deploy mode

None

What happened

我使用k8s application模式设置pod请求的limit值不生效,我的配置参考flink官网配置的如下:
-Dkubernetes.jobmanager.cpu.amount=0.2
-Dkubernetes.taskmanager.cpu.amount=0.2
-Dkubernetes.jobmanager.cpu.limit=1.0
-Dkubernetes.taskmanager.cpu.limit=1.0

上面的-Dkubernetes.jobmanager.cpu.amount -Dkubernetes.taskmanager.cpu.amount生效了,但是运行起来发现limit没有生效。现在是limit值和request值都被设置成200m了

Error Exception

No response

Screenshots

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!(您是否要贡献这个PR?)

Code of Conduct

@zongyonghao zongyonghao added the bug Something isn't working label Oct 31, 2024
@NullHunt
Copy link

it is incorrect, try this

-Dkubernetes.jobmanager.cpu.amount=0.01
-Dkubernetes.taskmanager.cpu.amount=0.01
-Dkubernetes.jobmanager.cpu.limit-factor=100
-Dkubernetes.taskmanager.cpu.limit-factor=100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants