Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Configurare i limiti di memoria e vCPU (1ª gen.)
Puoi eseguire il provisioning delle funzioni Cloud Run con quantità diverse di memoria per controllare il limite di memoria utilizzabile da una funzione. La quantità di memoria allocata che scegli corrisponde a una quantità di CPU allocata per la funzione.
I livelli di memoria e CPU disponibili sono riportati nella tabella seguente:
Memoria
CPU
128 MB
0,083 vCPU
256 MB
0,167 vCPU
512 MB
0,333 vCPU
1024 MB
0,583 vCPU
2048 MB
1 vCPU
4096 MB
2 vCPU
8192 MB
2 vCPU
Non disponibile
4 vCPU
Non disponibile
8 vCPU
Per impostazione predefinita, la memoria allocata per una funzione è 256 MB o 256 MiB a seconda della versione del prodotto Funzioni Cloud Run.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-04-10 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."]]],[]]