Stay organized with collections
Save and categorize content based on your preferences.
Configure memory and vCPU limits (1st gen)
You can provision Cloud Run functions with different amounts of memory to control
the limit on how much memory a function can use. The amount of allocated
memory you choose corresponds to an amount of allocated CPU for your function.
Available memory and CPU tiers are shown in the following table:
Memory
CPU
128MB
.083 vCPU
256MB
.167 vCPU
512MB
.333 vCPU
1024MB
.583 vCPU
2048MB
1 vCPU
4096MB
2 vCPU
8192MB
2 vCPU
Not available
4 vCPU
Not available
8 vCPU
By default, the memory allocated for a function is 256MB or 256 MiB depending
on the Cloud Run functions product version.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["Cloud Run functions can be provisioned with varying memory amounts, which directly correlates to the allocated CPU for the function."],["The memory and CPU tiers available range from 128MB with .083 vCPU to 8192MB with 2 vCPU, as outlined in the provided table."],["By default, a function is allocated 256MB of memory, however, this can be changed."],["You can adjust the allocated memory for a function during deployment using the `--memory` flag in the gcloud CLI or through the \"Memory allocated\" field in the Google Cloud console."],["Memory and CPU allocations impact the costs associated with running Cloud Run functions, detailed information regarding pricing can be found on the Cloud Run functions Pricing page."]]],[]]