受管VM未运行Cloud SQL Proxy [英] Managed VM not running Cloud SQL Proxy

查看:157
本文介绍了受管VM未运行Cloud SQL Proxy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Java应用程序启动托管VM,以下appengine-web.xml

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>

我似乎没有在托管虚拟机上运行Cloud SQL代理。我需要添加一个app.yaml文件或在appengine-web.xml中定义其他内容吗?

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?

推荐答案

根据文档,您需要指定您将要连接的实例,并重新部署您的应用程序。

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

使用appengine-web.xml时,语法如下:

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>

如果此设置不存在,云端SQL代理将无法启动。

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

这篇关于受管VM未运行Cloud SQL Proxy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆