这个问题是什么?是否yml文件没配置信息?
PUT /services/computedevicedata/functions/computedevicedata failed with 400. requestid: bed376a5-d185-4a57-b565-c5e13c0e693a, message: the ratio of Memory(in GB) to CPU(in core) must be between 1 and 4, actual: 0.25/2.00(0.12).
内存和cpu的比例出问题了,错误提示已经提醒你两者的比例最好在1到4之间。
我猜测这个问题是Serverless FC在部署前端应用时,YML文件中没有正确配置内存和CPU的比例,导致部署失败。正确的配置应该是内存(以GB为单位)与CPU(以核心为单位)的比例应该在1到4之间,而实际的比例是0.25/2.00(0.12),不符合要求。
message: the ratio of Memory(in GB) to CPU(in core) must be between 1 and 4, actual: 0.25/2.00(0.12). 内存和CPU的配置差太多了,比值1:4之间 比如内存4G cpu 1核—4核
此答案来自钉钉群“阿里函数计算官网客户”