Skip to main content

Runtime configuration and scaling

What you’ll learn

How to scale your application in CodeNOW in order to make it more efficient or more performant.

Prerequisites

Parameters

Summary

CodeNOW lets you set the following parameters:

  • Number of running instances: number of pods to be run, the default value is 1
  • CPU request: number of computing units that are guaranteed to be allocated
  • CPU limit: upper boundary of computing units to be allocated
  • Memory request: amount of memory that is guaranteed to be allocated
  • Memory limit: upper boundary of memory to be allocated

CPU Units

In Kubernetes, CPU requirements are measured using the cpu unit or its fractions, where 1 cpu = 1 vCPU/Core (for cloud providers) = 1 hyperthread (for bare-metal processors). For more information, see Kubernetes documentation.

CodeNOW lets you can specify the CPU requirements using the following units:

UnitDescriptionSize [cpu]
cpucpu/core1
mmillicpu/millicore1/1000

Memory Units

Memory is measured using bytes or multiples of bytes.

CodeNOW lets you specify the memory requirements using the following units:

UnitDescriptionSize [bytes]
BByte1
KKilobyte10^3
MMegabyte10^6
GGigabyte10^9
TTerabyte10^12
PPetabyte10^15
EExabyte10^18
KiBKibibyte2^10
MiBMebibyte2^20
GiBGibibyte2^30
TiBTebibyte2^40
PiBPebibyte2^50
EiBExbibyte2^60
tip

for additional information, see Kubernetes documentation

Set runtime configuration for component

  1. Go to the Runtime Configuration section in the detail of your application component.
  2. Select the branch for which you want to set the runtime configuration and click on Edit.
  3. Set the desired values for the parameters and click on Confirm.