它是一个使用Maven的Spring引导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以下是配额的链接:自由引号
如果能得到详细的帮助就太好了。
发布于 2020-11-23 14:18:35
在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-javahttps://stackoverflow.com/questions/64970102
复制相似问题