mirror of https://github.com/docker/docs.git
Merge pull request #7416 from artdgn/master
Clarifying some confusing explanations for limiting cpus resource.
This commit is contained in:
commit
30807046cd
|
@ -726,8 +726,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.50` (50%) of available processing time (CPU), and has
|
||||
`20M` of memory and `0.25` CPU time reserved (as always available to it).
|
||||
50M of memory and `0.50` (50% of a single core) of available processing time (CPU),
|
||||
and has `20M` of memory and `0.25` CPU time reserved (as always available to it).
|
||||
|
||||
```none
|
||||
version: '3'
|
||||
|
|
|
@ -96,8 +96,9 @@ This `docker-compose.yml` file tells Docker to do the following:
|
|||
- Pull [the image we uploaded in step 2](part2.md) from the registry.
|
||||
|
||||
- Run 5 instances of that image as a service
|
||||
called `web`, limiting each one to use, at most, 10% of the CPU (across all
|
||||
cores), and 50MB of RAM.
|
||||
called `web`, limiting each one to use, at most, 10% of a single core of
|
||||
CPU time (this could also be e.g. "1.5" to mean 1 and half core for each),
|
||||
and 50MB of RAM.
|
||||
|
||||
- Immediately restart containers if one fails.
|
||||
|
||||
|
|
Loading…
Reference in New Issue