[英]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.