File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ## Limit Resource Usage
1+ ## Managing Application Resource Limits
22
33Deis Workflow supports restricting memory and CPU shares of each process. Limits set on a per-process type are given to
44Kubernetes as both a request and limit. Which means you guarantee 'X' amount of resource for a process as well as limit
55the process from using more than 'X'.
66
7+ ## Limiting Memory
8+
79If 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
1012Available units for memory are:
1113
@@ -34,6 +36,23 @@ web 64M
3436Unlimited
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+
3756You can also use ` deis limits:set -c ` to restrict CPU shares. CPU shares are tracked in milli-cores. One CPU core is
3857equivalent 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+ ```
You can’t perform that action at this time.
0 commit comments