-
Book Overview & Buying
-
Table Of Contents
Rancher Deep Dive
By :
One of the nice things about setting CPU and memory requests/limits for all Pods is that you can define namespace limits and quotas, which allows you to specify the total amount of memory and CPU used by all Pods running in a namespace. This can be very helpful when budgeting resources in your cluster; for example, if application A buys 16 CPUs and 64 GB of RAM for their production environment, you can limit their namespace to make sure they can't consume more than what they have paid for. This, of course, can be done in two modes, with the first being a hard limit that will block all new Pod creation events for that namespace. If we go back to our earlier example, the application team has purchased 64 GB of RAM for our cluster. Suppose you have four Pods, each with a limit of 16 GB of RAM. When they try to start up a fifth Pod, it will be stuck in scheduling until the quota increases or another Pod in the namespace releases the space...