mirror of https://github.com/docker/docs.git
resource_constraints.md: Fixed broken table format (#1348)
+ small typo fix
This commit is contained in:
parent
761f46cea9
commit
9b25ec62c0
|
@ -104,8 +104,8 @@ the container's cgroup on the host machine.
|
||||||
|-----------------------|-----------------------------|
|
|-----------------------|-----------------------------|
|
||||||
| `--cpus=<value>` | Specify how much of the available CPU resources a container can use. For instance, if the host machine has two CPUs and you set `--cpus="1.5"`, the container will be guaranteed to be able to access at most one and a half of the CPUs. This is the equivalent of setting `--cpu-period="100000"` and `--cpu-quota="150000"`. Available in Docker 1.13 and higher. |
|
| `--cpus=<value>` | Specify how much of the available CPU resources a container can use. For instance, if the host machine has two CPUs and you set `--cpus="1.5"`, the container will be guaranteed to be able to access at most one and a half of the CPUs. This is the equivalent of setting `--cpu-period="100000"` and `--cpu-quota="150000"`. Available in Docker 1.13 and higher. |
|
||||||
| `--cpu-period=<value>`| Specify the CPU CFS scheduler period, which is used alongside `--cpu-quota`. Defaults to 1 second, expressed in micro-seconds. Most users do not change this from the default. If you use Docker 1.13 or higher, use `--cpus` instead. |
|
| `--cpu-period=<value>`| Specify the CPU CFS scheduler period, which is used alongside `--cpu-quota`. Defaults to 1 second, expressed in micro-seconds. Most users do not change this from the default. If you use Docker 1.13 or higher, use `--cpus` instead. |
|
||||||
| `--cpu-quota=<value>`: impose a CPU CFS quota on the container. The number of microseconds per `--cpu-period` that the container is guaranteed CPU access. In other words, `cpu-quota / cpu-period`. If you use Docker 1.13 or higher, use `--cpus` instead. |
|
| `--cpu-quota=<value>` | Impose a CPU CFS quota on the container. The number of microseconds per `--cpu-period` that the container is guaranteed CPU access. In other words, `cpu-quota / cpu-period`. If you use Docker 1.13 or higher, use `--cpus` instead. |
|
||||||
| `--cpuset-cpus`: limit the specific CPUs or cores a container can use. A comma-separated list or hyphen-separated range of CPUs a container can use, if you have more than one CPU. The first CPU is numbered 0. A valid value might be `0-3` (to use the first, second, third, and fourth CPU) or `1,3` (to use the second and fourth CPU). |
|
| `--cpuset-cpus` | Limit the specific CPUs or cores a container can use. A comma-separated list or hyphen-separated range of CPUs a container can use, if you have more than one CPU. The first CPU is numbered 0. A valid value might be `0-3` (to use the first, second, third, and fourth CPU) or `1,3` (to use the second and fourth CPU). |
|
||||||
| `--cpu-shares` | Set this flag to a value greater or less than the default of 1024 to increase or reduce the container's weight, and give it access to a greater or lesser proportion of the host machine's CPU cycles. This is only enforced when CPU cycles are constrained. When plenty of CPU cycles are available, all containers use as much CPU as they need. In that way, this is a soft limit. `--cpu-shares` does not prevent containers from being scheduled in swarm mode. It prioritizes container CPU resources for the available CPU cycles. It does not guarantee or reserve any specific CPU access. |
|
| `--cpu-shares` | Set this flag to a value greater or less than the default of 1024 to increase or reduce the container's weight, and give it access to a greater or lesser proportion of the host machine's CPU cycles. This is only enforced when CPU cycles are constrained. When plenty of CPU cycles are available, all containers use as much CPU as they need. In that way, this is a soft limit. `--cpu-shares` does not prevent containers from being scheduled in swarm mode. It prioritizes container CPU resources for the available CPU cycles. It does not guarantee or reserve any specific CPU access. |
|
||||||
|
|
||||||
If you have 1 CPU, each of the following commands will guarantee the container at
|
If you have 1 CPU, each of the following commands will guarantee the container at
|
||||||
|
@ -129,7 +129,7 @@ In Docker 1.13 and higher, you can configure your container to use the
|
||||||
realtime scheduler, for tasks which cannot use the CFS scheduler. You need to
|
realtime scheduler, for tasks which cannot use the CFS scheduler. You need to
|
||||||
[make sure the host machine's kernel is configured correctly](#configure-the-host-machines-kernel)
|
[make sure the host machine's kernel is configured correctly](#configure-the-host-machines-kernel)
|
||||||
before you can [configure the Docker daemon](#configure-the-docker-daemon) or
|
before you can [configure the Docker daemon](#configure-the-docker-daemon) or
|
||||||
[configure individuyal containers](#configure-individual-containers).
|
[configure individual containers](#configure-individual-containers).
|
||||||
|
|
||||||
>**Warning**: CPU scheduling and prioritization are advanced kernel-level
|
>**Warning**: CPU scheduling and prioritization are advanced kernel-level
|
||||||
features. Most users do not need to change these values from their defaults.
|
features. Most users do not need to change these values from their defaults.
|
||||||
|
|
Loading…
Reference in New Issue