Google Cloud SQL 连接限制与文档中的不同

Google Cloud SQL connection limit is not the same as in the documentation

我昨天创建了一个 postgres 实例,镜像我们已经设置的一个。然而,默认的 'max_connections' 似乎设置为 25 而不是 100:https://cloud.google.com/sql/faq#sizeqps

连接到数据库时,我得到以下结果:

      name       | setting 
-----------------+---------
 max_connections | 25

如何将max_connections的数量设置为100?

呃哦,文档已经过时了。我们必须解决这个问题,感谢您的报告!

Cloud SQL 的 PostgreSQL 连接随实例大小而扩展。您可能正在使用 "micro" 实例。升级到 "small" 将为您提供 50 个并发连接,第一个非共享核心机器(1 CPU,3.7G RAM)将为您提供 100 个,更大的实例将为您提供超过 100 个。