【发布时间】:2019-02-16 22:33:58
【问题描述】:
我想彻底检查一下我对 Heroku 的 Postgres 连接限制的理解。
我目前使用 Postgres Standard 0 插件,其连接限制为 120。我还在两个 Standard 1x dynos 中运行 Django 应用程序。每个 dyno 使用 gunicorn 和两个 worker 运行应用程序。
那么首先我假设我的应用程序可以同时处理四个请求是否正确?
第二次我会达到 Postgres 连接限制吗?我假设不会,因为任何时候都只会有四个到 Postgres 的连接。
【问题讨论】:
-
我在 Heroku devcenter.heroku.com/articles/…找到了答案
标签: python django postgresql heroku gunicorn