Jiv*_*thy 4 google-cloud-platform google-cloud-functions
Firebase 部署失败。
因为“HTTP 错误:400,无法创建 Cloud Run 服务 ssrjivayuhomeopathyclinic。spec.template.spec.containers.resources.limits.cpu:为 cpu 指定的值无效。对于指定值,maxScale 不得超过 10”
是否如配额中所述每月刷新一次?
Firebase 部署失败并出现错误!
项目是 nextjs 托管在 firebase 中,ssr 托管在 gcp 中。
我之前删除了该功能并部署了,当时它有效
但我被配额困住了。
谁能告诉我,当它刷新或我在这里完成时!
functions: HTTP Error: 400, Could not create Cloud Run service ssrjivayuhomeopathyclinic. spec.template.spec.containers.resources.limits.cpu: Invalid value specified for cpu. For the specified value, maxScale may not exceed
10.
Consider running your workload in a region with greater capacity, decreasing your requested cpu-per-instance, or requesting an increase in quota for this region if you are seeing sustained usage near this limit, see https://cloud.google.com/run/quotas. Your project may gain access to further scaling by adding billing information to your account.
! functions: failed to create function projects/jivayu-homeopathy-clinic/locations/asia-east1/functions/ssrjivayuhomeopathyclinic
Failed to create function projects/jivayu-homeopathy-clinic/locations/asia-east1/functions/ssrjivayuhomeopathyclinic
Run Code Online (Sandbox Code Playgroud)
我认为我遇到了完全相同的问题,我通过将 maxInstances 添加到函数中来解决它,如下所示:
exports.helloworld = onRequest(
{timeoutSeconds: 15, cors: true, maxInstances: 10},
(req, res) => {
res.send("I am a function.");
},
);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1032 次 |
| 最近记录: |