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

How to provide cpu-quota and cpu-period values while creating a service in swarm mode? #29579

Closed
adityacs opened this issue Dec 20, 2016 · 5 comments

Comments

@adityacs
Copy link

We can assign cpu-quota and cpu-period using docker run command. How to achieve the same using docker service create command?.

In docker 1.12, swarm mode, there is only "--limit-cpus" option.

@allencloud
Copy link
Contributor

Maybe we can find more details in issue: #25303

@adityacs
Copy link
Author

Thanks

@thaJeztah
Copy link
Member

@adityacs --limit-cpus / --cpus actually sets these values under the hood; see #27921, #27958

@adityacs
Copy link
Author

@thaJeztah Thanks. Didn't know this. Good to see this feature.
Working for me :)

@cpuguy83
Copy link
Member

Closing as this is resolved.

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

5 participants