aws-samples / aws-samples/aws-serverless-app-with-aurora-and-python-sql-alchemy-example

Question related Connection Pool settings

未关闭
#9 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
67
派生
16
PR 合并指标
30 天内没有已合并 PR

描述

Hey 👋

I saw that you used Pool Size = 1 and max overflow = 0

return create_engine(db_conn_string,
echo=debug_mode,
pool_size=1,
max_overflow=0,
pool_recycle=3600,
pool_pre_ping=True,
pool_use_lifo=True)

Was this by intention because of the RDS Proxy?
Could you explain why not a higher Pool Size was used as the RDS Proxy is handling the Connections anyway?

Would love to hear your reasons because I want to run this kind of setup for a productive use case.

Best regards

贡献指南

打开贡献指南

调研方向

从 issue 中展示的 create_engine 配置开始,重点关注 pool_size、max_overflow 以及 RDS Proxy 上下文。检查该示例在此入口点附近已有的文档或配置;完成的标准是记录一份清晰的说明,解释为什么选择这些值,以及对于所述设置,更大的 pool_size 是否合适。

由索引模型根据 Issue 内容生成。

评估

技术栈
aws, python, sqlalchemy
领域
databases, documentation
Issue 类型
文档
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。