Use valid CPU limits (#5272)

Use 50% and 25% CPU limits instead of invalid 0.001. Fix #5271
This commit is contained in:
Alexandre Rio 2017-11-10 21:25:21 +01:00 committed by Victoria Bialas
parent ee14ae5e5c
commit d0cab2a0d5
1 changed files with 4 additions and 4 deletions

View File

@ -659,8 +659,8 @@ Each of these is a single value, analogous to its [docker service
create](/engine/reference/commandline/service_create.md) counterpart.
In this general example, the `redis` service is constrained to use no more than
50M of memory and `0.001` (0.1%) of available processing time (CPU), and has
`20M` of memory and `0.0001` CPU time reserved (as always available to it).
50M of memory and `0.50` (50%) of available processing time (CPU), and has
`20M` of memory and `0.25` CPU time reserved (as always available to it).
```none
version: '3'
@ -670,10 +670,10 @@ services:
deploy:
resources:
limits:
cpus: '0.001'
cpus: '0.50'
memory: 50M
reservations:
cpus: '0.0001'
cpus: '0.25'
memory: 20M
```