concept limit in category openshift

appears as: limits, limit, limit, limits, The limit
OpenShift in Action

This is an excerpt from Manning's book OpenShift in Action.

Resource requests also can be combined with a resource limit, which is similar to a request but sets the maximum amount of resources guaranteed to the pod. Setting requests and limits also allows the user to set a quality of service level by default:

  • BestEffort—Neither a resource nor a limit is specified. This is for low-priority applications that can live with very low amounts of CPU and memory.
  • Let’s add memory and CPU requests and limits that are slightly larger than the default request values you defined in your limit range. Replace the {} in the resources section, and edit the file to look like the following listing, adding a larger quota request and limit for CPU and memory resources.

    Listing 9.4. Editing the deployment config to increase limits and resource requests
    resources: requests: cpu: "750m" memory: "500Mi" limits: cpu: "1" memory: "1000Mi"

    Saving the new configuration file will trigger a new deployment for app-cli. This new deployment will incorporate your new resource requests and limits. Once the build completes, your app-cli deployment will be available with more guaranteed resources. You can confirm this by looking at the web interface page for the latest deployment, or from the command line by running the following oc describe command:

    The limit for app-gui is 300 millicores, the default limit range for the image-uploader project. Using the same steps, you can verify that its CPU limits match the ratio of 300/1,000 millicores.

    9.3. Limit ranges

    For each project in OpenShift, a limit range, defined as a LimitRange when working with the OpenShift API, provides resource constraints for most objects that exist in a project (the documentation is at http://mng.bz/tB5m.) The objects are the types of OpenShift components that users deploy to serve applications and data. Limit ranges apply to the maximum CPU, memory, and total object count for each component. The limits for each component are outlined in table 9.1.