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
bug report
当我对容器CPU资源做了限制后,此时CPU满载实验中--cpu-percent参数的限制好像是按整台机器的性能做的计算,不受CPU限制参数的影响。 例如:docker run --cpu-shares 1024 --cpu-quota 100000 --cpu-period=100000 tomcat 启动容器,
--cpu-percent
docker run --cpu-shares 1024 --cpu-quota 100000 --cpu-period=100000 tomcat
命令一:--cpu-percent 100 blade create docker cpu fullload --cpu-percent 100 --blade-tar-file /root/chaosblade-0.9.0-linux-amd64.tar.gz --container-id 31e0e5e4ac86 此时docker stats显示利用率100%
blade create docker cpu fullload --cpu-percent 100 --blade-tar-file /root/chaosblade-0.9.0-linux-amd64.tar.gz --container-id 31e0e5e4ac86
命令二:--cpu-percent 50 blade create docker cpu fullload --cpu-percent 50 --blade-tar-file /root/chaosblade-0.9.0-linux-amd64.tar.gz --container-id 31e0e5e4ac86 此时docker stats显示利用率还是100%
blade create docker cpu fullload --cpu-percent 50 --blade-tar-file /root/chaosblade-0.9.0-linux-amd64.tar.gz --container-id 31e0e5e4ac86
--cpu-percent计算时,可以兼顾下容器上设置的资源限制。
blade create docker cpu fullload --cpu-percent 100 --blade-tar-file /root/chaosblade-0.9.0-linux-amd64.tar.gz --container-id xxx
blade create docker cpu fullload --cpu-percent 50 --blade-tar-file /root/chaosblade-0.9.0-linux-amd64.tar.gz --container-id xxx
The text was updated successfully, but these errors were encountered:
老哥你解决了吗,我这设置那个负载也没啥用,超过20都是直接百分之百
Sorry, something went wrong.
No branches or pull requests
Issue Description
bug report
Describe what happened (or what feature you want)
当我对容器CPU资源做了限制后,此时CPU满载实验中
--cpu-percent
参数的限制好像是按整台机器的性能做的计算,不受CPU限制参数的影响。例如:
docker run --cpu-shares 1024 --cpu-quota 100000 --cpu-period=100000 tomcat
启动容器,命令一:--cpu-percent 100
blade create docker cpu fullload --cpu-percent 100 --blade-tar-file /root/chaosblade-0.9.0-linux-amd64.tar.gz --container-id 31e0e5e4ac86
此时docker stats显示利用率100%
命令二:--cpu-percent 50
blade create docker cpu fullload --cpu-percent 50 --blade-tar-file /root/chaosblade-0.9.0-linux-amd64.tar.gz --container-id 31e0e5e4ac86
此时docker stats显示利用率还是100%
Describe what you expected to happen
--cpu-percent
计算时,可以兼顾下容器上设置的资源限制。How to reproduce it (as minimally and precisely as possible)
docker run --cpu-shares 1024 --cpu-quota 100000 --cpu-period=100000 tomcat
blade create docker cpu fullload --cpu-percent 100 --blade-tar-file /root/chaosblade-0.9.0-linux-amd64.tar.gz --container-id xxx
blade create docker cpu fullload --cpu-percent 50 --blade-tar-file /root/chaosblade-0.9.0-linux-amd64.tar.gz --container-id xxx
Tell us your environment
Anything else we need to know?
The text was updated successfully, but these errors were encountered: