简体   繁体   English

无法在云中更改 memory 分配 Function

[英]Unable to change memory allocation in Cloud Function

I am trying to increase the the Memory Allocation for some of my Cloud Function for past few hours.在过去的几个小时里,我正在尝试为我的一些云 Function 增加 Memory 分配。 If I change it and deploy the Memory Allocation keeps staying in 512 MiB.如果我更改它并部署 Memory,分配将保持在 512 MiB。 It was working when I tried it few days back.几天前我尝试时它正在工作。

This is what I am doing,这就是我正在做的,

Click on edit in function点击function中的编辑

Change Memory allocated to 2 GiB and click Next & Deploy将分配给 2 GiB 的 Memory 更改为 Next & Deploy

The memory allocated remain 512 MiB after deploying部署后分配的 memory 仍为 512 MiB

What am I doing wrong?我究竟做错了什么? Can someone help me out on this please?有人可以帮我解决这个问题吗?

I'm unable to repro your experience using Cloud Console and gcloud .无法重现您使用 Cloud Console 和gcloud的体验。

gcloud functions describe ${NAME} \
--region=${REGION} \
--project=${PROJECT} \
--format="value(availableMemoryMb)"
256

Then revise it in the Console to 256MB and:然后在控制台中将其修改为256MB并且:

gcloud functions describe ${NAME} \
--region=${ERGION} \
--project=${PROJECT} \
--format="value(availableMemoryMb)"
512

Then revise it to 1024MB using gcloud deploy :然后使用gcloud deploy其修改为1024MB

gcloud functions deploy ${NAME} \
--trigger-http \
--entry-point=${FUNCTION} \
--region=${REGION} \
--project=${PROJECT} \
--memory=1024MB

gcloud functions describe ${NAME} \
--region=${ERGION} \
--project=${PROJECT} \
--format="value(availableMemoryMb)"
1024

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 具有 memory 分配管理的云 Function 调度程序 - Cloud Function scheduler with memory allocation management 云存储中的 Memory 问题 Function - Memory issues in a Cloud Storage Function 无法部署 firebase 云 function - Unable to deploy firebase cloud function 无法从 GKE 集群访问云 function - Unable to access cloud function from GKE Cluster 是否有必要在 Firebase 云 Function 中释放 memory - is it necessary to free memory in Firebase Cloud Function Memory 分配错误调用 XGBoost C function XGBoosterUpdateOneIter 失败:std::bad_alloc - Memory allocation error Call to XGBoost C function XGBoosterUpdateOneIter failed: std::bad_alloc 无法使用云形成创建lambda function - Unable to create lambda function using cloud formation 创建一个 firebase 云 function 检测 emailVerified 变化 - Create a firebase cloud function that detects emailVerified change 无法在 Flutter 中使用可调用云 Function - Unable to use a Callable Cloud Function in Flutter PySpark GCP 上的 PandasUDF - Memory 分配 - PySpark PandasUDF on GCP - Memory Allocation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM