Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/309.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么将SpringBoot(Java)应用程序部署到Google应用程序引擎会给灵活和标准环境带来错误?_Java_Spring Boot_Google App Engine_Google Cloud Platform_App Engine Flexible - Fatal编程技术网

为什么将SpringBoot(Java)应用程序部署到Google应用程序引擎会给灵活和标准环境带来错误?

为什么将SpringBoot(Java)应用程序部署到Google应用程序引擎会给灵活和标准环境带来错误?,java,spring-boot,google-app-engine,google-cloud-platform,app-engine-flexible,Java,Spring Boot,Google App Engine,Google Cloud Platform,App Engine Flexible,这是一个使用Maven的Spring boot Java应用程序。 我正在使用Intelij进行开发 我正在使用默认从GCP获得的$300并使用它 对于灵活的环境,app.yaml配置为 runtime: java env: flex 错误如下:请求的实例数量已超过GCE的默认配额 [INFO] GCLOUD: ERROR: (gcloud.app.deploy) Error Response: [8] Flex operation projects/dqnews/regions/asia-s

这是一个使用Maven的Spring boot Java应用程序。 我正在使用Intelij进行开发

我正在使用默认从GCP获得的$300并使用它

对于灵活的环境,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
以下是配额的链接:

如果能得到详细的帮助就太好了

  • 如果我需要增加报价,如何增加报价以及增加哪一部分
  • 如果我提到错误,标准/灵活的app.yaml配置将是什么
  • 为什么会出现Java6错误

  • 在GAE中,有两种可能的Java版本:

    在app.yaml中,您可以设置:

    service: demo
    runtime: java11
    instance_class: F1
    
    然后在app.yaml路径中:

    gcloud init
    gcloud components install app-engine-java
    

    为什么你认为配额是相关的?这个错误并没有说明配额,而是说您无法部署Java6应用程序。看一看。