常见问题解决库

Postgres 流量上来就报 'remaining connection slots reserved'。修复方法:合理化池子大小、前面放 PgBouncer 走 transaction 模式、清掉 idle-in-transaction 连接。