为什么将springboot(java)应用程序部署到googleappengine会给灵活和标准环境带来错误?

goucqfw6  于 2021-07-08  发布在  Java
关注(0)|答案(1)|浏览(301)

它是一个使用maven的spring-boot java应用程序。我正在使用intelij进行开发。
我利用300美元,因为我得到默认从gcp和使用它。
对于灵活的环境,app.yaml配置

runtime: java
env: flex

错误如下:请求的示例数量已超过gce的默认配额

[INFO] GCLOUD: ERROR: (gcloud.app.deploy) Error Response: [8] Flex operation projects/dqnews/regions/asia-south1/operations/c9221a49-6939-4778-88a8-01f73f444cce error [RESOURCE_EXHAUSTED]: An internal error occurred while processing task /app-engine-flex/insert_flex_deployment/flex_create_resources>2020-11-23T13:30:57.284Z11582.fw.0: The requested amount of instances has exceeded GCE's default quota. Please see https://cloud.google.com/compute/quotas for more information on GCE resources

当我使用标准环境时

runtime: java
env: standard

错误显示如下

Java 6 applications are prevented from being deployed to Google App Engine from any version of the SDK, including older ones. If you need to continue to deploy Java 6 applications for compatibility reasons, you can request that your application be whitelisted for Java 6 deployment by visiting

以下是的链接quotas:free quotes
如果能得到详细的帮助就太好了。
如果我需要增加我的报价,如何和哪个部分要增加?
如果我提到错误,那么标准/灵活的app.yaml配置是什么?
为什么会出现Java6错误?

l3zydbqr

l3zydbqr1#

在gae中,有两种可能的java版本:
https://cloud.google.com/appengine/docs/java
在app.yaml中,您可以设置:

service: demo
runtime: java11
instance_class: F1

然后在app.yaml路径中:

gcloud init
gcloud components install app-engine-java

相关问题