From d0cab2a0d56d62a6c0c5a7d131fde202e9e61e01 Mon Sep 17 00:00:00 2001 From: Alexandre Rio Date: Fri, 10 Nov 2017 21:25:21 +0100 Subject: [PATCH] Use valid CPU limits (#5272) Use 50% and 25% CPU limits instead of invalid 0.001. Fix #5271 --- compose/compose-file/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compose/compose-file/index.md b/compose/compose-file/index.md index def0012544..0a382971fd 100644 --- a/compose/compose-file/index.md +++ b/compose/compose-file/index.md @@ -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 ```