Skip to content

Latest commit

 

History

History
86 lines (57 loc) · 4.43 KB

mem-cpu-combo.md

File metadata and controls

86 lines (57 loc) · 4.43 KB
copyright lastupdated keywords subcollection
years
2024
2024-10-09
applications in code engine, apps in code engine, job in code engine, memory and cpu combinations, memory in code engine, cpu in code engine, memory and CPU
codeengine

{{site.data.keyword.attribute-definition-list}}

Supported memory and CPU combinations

{: #mem-cpu-combo}

{{site.data.keyword.codeenginefull}} applications, jobs, and functions consume CPU and memory. These amounts can vary, depending on if your workload is compute-intensive, memory-intensive, or balanced. {: shortdesc}

The use of ephemeral storage is now bounded by memory. The ephemeral storage in {{site.data.keyword.codeengineshort}} cannot exceed the default value of 0.4 GB (400 MB) or the configured value for memory. If you need more than the default for ephemeral storage, you must increase your memory according to the valid combinations of vCPU and memory. {: important}

Consider the following examples of setting valid values for ephemeral storage:

  • If memory is set to 0.25 GB, you can set ephemeral storage up to the default value of 0.4 GB.
  • If ephemeral storage is set to 0.4 GB and memory is set to 2 GB, and you want to reduce the memory to 0.25 GB, this operation is valid because the ephemeral storage is set to its default value.
  • If ephemeral storage is set to 0.5 GB and memory is set to 2 GB, and you want to reduce the memory to 0.25 GB, this operation is not valid because the ephemeral storage is now greater than the memory and its default of 0.4 GB. The ephemeral storage cannot exceed the default value of 0.4 GB or the configured value for memory.
  • If ephemeral storage is set to 1 GB and memory is set to 4 GB, and you want to increase the ephemeral storage to 4 GB, this operation is valid because the ephemeral storage is less than or equal to the memory.
  • If ephemeral storage is set to 1 GB and memory is set to 4 GB, and you want to reduce the memory to 2 GB, this operation is valid because the ephemeral storage is less than or equal to the memory.

For more information about memory or CPU limitations, see Limits and quotas for {{site.data.keyword.codeengineshort}}.

Supported combinations for apps and jobs

{: #supported-combo}

See the following table for valid combinations of vCPU and memory for apps and jobs.

The default combination for apps and jobs is 1 vCPU and 4 GB memory. {: note}

CPU-intensive Balanced Memory-intensive
0.125 vCPU \n 0.25 GB 0.125 vCPU \n 0.5 GB 0.125 vCPU \n 1 GB
0.25 vCPU \n 0.5 GB 0.25 vCPU \n 1 GB 0.25 vCPU \n 2 GB
0.5 vCPU \n 1 GB 0.5 vCPU \n 2 GB 0.5 vCPU \n 4 GB
\n 1 vCPU \n 2 GB (default for apps and jobs) \n 1 vCPU \n 4 GB \n 1 vCPU \n 8 GB
2 vCPU \n 4 GB 2 vCPU \n 8 GB 2 vCPU \n 16 GB
4 vCPU \n 8 GB 4 vCPU \n 16 GB 4 vCPU \n 32 GB
6 vCPU \n 12 GB 6 vCPU \n 24 GB 6 vCPU \n 48 GB
8 vCPU \n 16 GB 8 vCPU \n 32 GB
10 vCPU \n 20 GB 10 vCPU \n 40 GB
12 vCPU \n 24 GB 12 vCPU \n 48 GB
{: caption="Valid vCPU and memory combinations" caption-side="bottom"}

Your existing apps and jobs might be using other memory and CPU combinations, and those will remain unaffected. However, these other combinations are not valid and only the valid combinations are supported. Therefore, any new apps or jobs as well as any changes to existing apps or jobs must comply with the list of valid choices. {: important}

Supported combinations for functions

{: #supported-combo-fun}

See the following list for valid combinations of CPU and memory for functions.

  • 0.25 vCPU and 1 GB memory
  • 0.5 vCPU and 2 GB memory
  • 1 vCPU and 4 GB memory (Default)

Units of measurement

{: #unit-measurements}

Decimal units such as kilobyte (KB), megabyte (MB), and gigabyte (GB) are commonly used to express the size of data. Binary units of measurement include kibibyte (KiB), mebibyte (MiB), and gibibyte (GiB). The following table compares the names, symbols, and values of decimal and binary units.

Binary name Binary value (base 2) Decimal name Decimal value (base 10)
kibibyte (KiB) 2^10 kilobyte (KB) 10^3
mebibyte (MiB) 2^20 megabyte (MB) 10^6
gibibyte (GiB) 2^30 gigabyte (GB) 10^9
tebibyte (TiB) 2^40 terabyte (TB) 10^12
{: caption="Comparison of binary and decimal units and values" caption-side="bottom"}