09 November 2016

SQLAlchemy 中的 QueuePool 出现 TimeoutError

表现 咱在使用 Flask-SQLAlchemy 或者 SQLAlchemy 中有时候会出现类似这样的错: TimeoutError: QueuePool limit of size 10 overflow 10 reached, connection timed out, timeout 30 出现这个错的根本原因是因为该进程对数据库的连接池满了,且等待之前的 session 超时。 出现这个错的时候一般后端的表现为有部分请求非常慢,

Page 1 / 1