Component Scaling

🕓 5 minutes

What you’ll learn

How to horizontally scale your deployed application in the CodeNOW environment so that your application will be more efficient and performant.

Prerequisites

Steps

  1. Go to "Deploy application" , find the "Runtime Configuration" section and expand it.

    • There you see all your application components with their configuration for horizontal scaling. You are able to change them for every component that is a part of your application.
    • The value can be changed for the following parameters:
      • "resources.requests.memory"
        • the desired amount of memory that will be guaranteed to be allocated
      • "replicaCount"
        • the desired number of pods to be run
      • "resources.limits.cpu"
        • the desired number of computing units that will be guaranteed to be allocated
      • "resources.limits.memory"
        • the upper boundary of memory to be allocated
      • "resources.requests.cpu"
        • the upper boundary of computing units to be allocated
    • For detailed information of these parameters see: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
  2. You can also change runtime configuration in the already deployed application.

    • To achieve this, go to deployed application details, find the "Runtime configuration" and follow STEP 1.

Screenshots

Step 1.1

deploy_app

Step 1.2

runtime_config_section

Step 2.1

dep_app_details

Step 2.2

runtime_config

What’s next?

You might be interested in our other tutorials: