Cloud SQL Postgres 是否有类似 cron 的工具?
Does Cloud SQL Postgres have any cron-like tool?
我想使用 Cloud SQL 和 PostgreSQL 以及类似内部 cron 的工具。在扩展列表中我找不到类似的东西。
您知道任何 solution/alternative 不包括我们可以从中进行调用的额外 Compute Engine 实例吗?
您不能 运行 在 Cloud SQL 内部执行 cron,因为它是 fully managed,您只能访问数据库本身。
解决方法
如果您需要 运行 这每分钟插入和选择,那么您可以使用 Google's Task queues 向将执行所有操作的 App Engine 服务发送请求。
cron:
- description: "make some select/insert"
url: /tasks/populate
schedule: every 1 mins
target: populate_postgres
您有 28 free instance hours 一天的时间来使用 App Engine 实例。
我想使用 Cloud SQL 和 PostgreSQL 以及类似内部 cron 的工具。在扩展列表中我找不到类似的东西。
您知道任何 solution/alternative 不包括我们可以从中进行调用的额外 Compute Engine 实例吗?
您不能 运行 在 Cloud SQL 内部执行 cron,因为它是 fully managed,您只能访问数据库本身。
解决方法
如果您需要 运行 这每分钟插入和选择,那么您可以使用 Google's Task queues 向将执行所有操作的 App Engine 服务发送请求。
cron:
- description: "make some select/insert"
url: /tasks/populate
schedule: every 1 mins
target: populate_postgres
您有 28 free instance hours 一天的时间来使用 App Engine 实例。