Managed VM not running Cloud SQL Proxy

萝らか妹 提交于 2019-12-12 02:17:18

问题


Launching a Managed VM with a Java application, the following appengine-web.xml

<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
    <application>thmadmin-ben</application>
    <version>master</version>
    <threadsafe>true</threadsafe>
    <vm>true</vm>
    <manual-scaling>
        <instances>1</instances>
    </manual-scaling>
</appengine-web-app>

I don't appear to have a Cloud SQL proxy running on the managed VM. Do I need to add an app.yaml file or define something else in appengine-web.xml?


回答1:


Per the documentation, you need to specify the instances which you will be connecting to as follows and redeploy your application.

When using appengine-web.xml, the syntax would be:

<beta-settings>
  <setting name="cloud_sql_instances" value="<PROJECT-ID>:<REGION-NAME>:<SQL-INSTANCE-NAME>[, ...]" />
</beta-settings>

If this setting is not present, the Cloud SQL Proxy won't start.



来源:https://stackoverflow.com/questions/35732071/managed-vm-not-running-cloud-sql-proxy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!