Skip to content

Commit 53f5134

Browse files
authored
fix(docs): correct docs for limits:set --cpu flag (#537)
Fixes deis/workflow#536
1 parent 1e040b7 commit 53f5134

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/applications/managing-resource-limits.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Available units for memory are:
2424
Use `deis limits:set` to restrict memory by process type:
2525

2626
```
27-
$ deis limits:set web=128M
27+
$ deis limits:set web=64M
2828
Applying limits... done
2929
3030
=== indoor-whitecap Limits
@@ -48,12 +48,12 @@ Applying limits... done
4848
Unlimited
4949
5050
--- CPU
51-
web 250m
51+
Unlimited
5252
```
5353

5454
## Limiting CPU
5555

56-
You can also use `deis limits:set -c` to restrict CPU shares. CPU shares are tracked in milli-cores. One CPU core is
56+
You can also use `deis limits:set --cpu` to restrict CPU shares. CPU shares are tracked in milli-cores. One CPU core is
5757
equivalent to 1000 milli-cores. To dedicate half a core to your process, you would need 500 milli-cores or 500m.
5858

5959
| Unit | Amount |
@@ -64,7 +64,7 @@ equivalent to 1000 milli-cores. To dedicate half a core to your process, you wou
6464
| 100m | 100 milli-cores == 10% CPU core |
6565

6666
```
67-
$ deis limits:set web=250m -c
67+
$ deis limits:set web=250m --cpu
6868
Applying limits... done
6969
7070
=== indoor-whitecap Limits
@@ -102,10 +102,10 @@ Containers:
102102
the `limits:set` command will hang. If this happens, use CTRL-C
103103
to break out of `limits:set` and use `limits:unset` to revert.
104104

105-
To unset a CPU limit use `deis limits:unset web -c`:
105+
To unset a CPU limit use `deis limits:unset web --cpu`:
106106

107107
```
108-
$ deis limits:unset web -c
108+
$ deis limits:unset web --cpu
109109
Applying limits... done
110110
111111
=== indoor-whitecap Limits

0 commit comments

Comments
 (0)