简体   繁体   English

使用CloudRun和Google SQL,cloud run会自动使用连接池吗?

[英]Using CloudRun and Google SQL, will cloud run automatically use connection pooling?

Hoping somone from Google SQL/ Cloud Run can answer this question.希望来自 Google SQL/ Cloud Run 的人能回答这个问题。

I am using Google SQL for hosting of my Postgres DB.我正在使用 Google SQL 托管我的 Postgres 数据库。 I am then spinning up multiple instances of Cloud Run containers which all connect directly to the SQL DB.然后我启动了多个 Cloud Run 容器实例,它们都直接连接到 SQL 数据库。

My question is, will cloud Run/Google SQL automatically implement smart db connection pooling here?我的问题是,cloud Run/Google SQL 会在这里自动实现智能数据库连接池吗? Or do I need to manually configure something to get connection pooling或者我是否需要手动配置一些东西来获得连接池

You need to handle your connection pooling at code level in this Cloud SQL docuemnt is mentioned您需要在此Cloud SQL 文档中以代码级别处理连接池

In the document are some code examples in various programming languages, at this time, most SQL connectors create a connection pool by default.文档中有一些各种编程语言的代码示例,此时,大多数SQL连接器默认创建一个连接池。

Cloud Run and other GCP managed services not add any pooling strategy because this could reduce the visibility for the developers. Cloud Run 和其他 GCP 托管服务不添加任何池化策略,因为这会降低开发人员的可见性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 terraform 谷歌云运行添加云 sql 连接 - terraform google cloud run add cloud sql connection 将 .NET 核心应用程序从 Google App Engine 迁移到 Google Cloud Run - SQL 连接问题 - Migrate .NET Core app from Google App Engine to Google Cloud Run - SQL connection issues Cloud Run 可以自动使用最新的摘要吗? - Can Cloud Run automatically use latest digest? 云 sql 连接中的 Google 身份验证错误 - Error from Google Authentication in cloud sql connection 谷歌云构建、云运行、云 SQL Prisma 迁移 - Google Cloud Build, Cloud Run, Cloud SQL Prisma Migration 将数据导入云 SQL 使用云 SQL 客户端连接结束 - Import Data into Cloud SQL Using Cloud SQL Client Connection Ended 从 Google Cloud Run 到数据库的间歇性连接失败 - Intermittend connection failures to databases from Google Cloud Run Google App Engine 上的 Django 连接到云 SQL,无法连接 - Django on Google App Engine connection to Cloud SQL, cannot connect 如何使用 Google Cloud SQL 配置 sailsjs 数据库连接 - How to configure sailsjs DB connection with Google Cloud SQL GCP Cloud Run Cloud - 云 SQL 实例“${process.env.INSTANCE_CONNECTION_NAME}”不可访问 - GCP Cloud Run Cloud - Cloud SQL instance "${process.env.INSTANCE_CONNECTION_NAME}" is not reachable
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM