Skip to content

Commit 834c407

Browse files
committed
doc(limits): give examples for limits:unset
1 parent cdfb920 commit 834c407

1 file changed

Lines changed: 36 additions & 2 deletions

File tree

src/applications/managing-resource-limits.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
## Limit Resource Usage
1+
## Managing Application Resource Limits
22

33
Deis Workflow supports restricting memory and CPU shares of each process. Limits set on a per-process type are given to
44
Kubernetes as both a request and limit. Which means you guarantee 'X' amount of resource for a process as well as limit
55
the process from using more than 'X'.
66

7+
## Limiting Memory
8+
79
If you set a limit that is out of range for your cluster, Kubernetes will be unable to schedule your application
8-
processes into the cluster.
10+
processes into the cluster!
911

1012
Available units for memory are:
1113

@@ -34,6 +36,23 @@ web 64M
3436
Unlimited
3537
```
3638

39+
If you would like to remove any configured memory limits use `deis limits:unset web`:
40+
41+
```
42+
$ deis limits:unset web
43+
Applying limits... done
44+
45+
=== indoor-whitecap Limits
46+
47+
--- Memory
48+
Unlimited
49+
50+
--- CPU
51+
web 250m
52+
```
53+
54+
## Limiting CPU
55+
3756
You can also use `deis limits:set -c` to restrict CPU shares. CPU shares are tracked in milli-cores. One CPU core is
3857
equivalent to 1000 milli-cores. To dedicate half a core to your process, you would need 500 milli-cores or 500m.
3958

@@ -82,3 +101,18 @@ Containers:
82101
If you restrict resources to the point where containers do not start,
83102
the `limits:set` command will hang. If this happens, use CTRL-C
84103
to break out of `limits:set` and use `limits:unset` to revert.
104+
105+
To unset a CPU limit use `deis limits:unset web -c`:
106+
107+
```
108+
$ deis limits:unset web -c
109+
Applying limits... done
110+
111+
=== indoor-whitecap Limits
112+
113+
--- Memory
114+
Unlimited
115+
116+
--- CPU
117+
Unlimited
118+
```

0 commit comments

Comments
 (0)