【问题标题】:Connection Active Google Cloud SQL连接活动 Google Cloud SQL
【发布时间】:2014-11-06 04:36:20
【问题描述】:

我在 Google Cloud SQL 和 Google Cloud 上设置了 wordpress。 我只有 2 个最小插件设置 Gapps 引擎和 Batchache 管理器 没有帖子,没有其他插件。 我没有访客或追随者。

我的问题是我仍然与 Google Coud SQL 保持有效连接,每小时收费 0.025。

我有 1 个连接始终保持打开状态。 我想在不使用时关闭此连接。

这些是我的完整进程列表

+----+------+---------------+------+---------+------+
| Id |    User | Host | db | Command | Time | State | Info |1 
| 12 | root | 27.32.---.--- | NULL | Query | 0 | NULL | show full processl ist 
| +----+------+---------------+------+---------+------+-------+------------------- ----+ 1 row in set (0.33 sec) – 

【问题讨论】:

  • Google Developers' Console -> Cloud SQL -> your instance -> Edit Activation Policy -> "On Demand" 实例将打开以处理传入连接,并在几分钟不活动后关闭.

标签: wordpress google-app-engine google-cloud-sql


【解决方案1】:

App Engine 上的 WordPress 针对高流量网站进行了优化,因此 batcache 可以让 Cloud SQL 保持活力。

你可以调整它。请参阅https://wordpress.org/plugins/google-app-engine/other_notes/ 或搜索“在应用引擎上优化 wordpress batcache”。

【讨论】:

    猜你喜欢
    • 2021-03-27
    • 1970-01-01
    • 2020-01-23
    • 1970-01-01
    • 1970-01-01
    • 2017-08-18
    • 2013-10-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多