Commit b1addb1
committed
Increase database connection pool size to 20
The postgres.js default pool size is 10, which equals the concurrency
of ParallelMessageQueue. Under federation load, all 10 workers can
simultaneously hold or wait for database connections, leaving none
available for HTTP handlers and KV store queries. This causes the
server to stop responding to API requests while still answering
OPTIONS (CORS preflight) requests, which need no database access.
Increasing the pool size to 20 provides enough headroom for the 10
queue workers plus concurrent HTTP handlers and KV store operations.
#3881 parent db1b361 commit b1addb1
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
0 commit comments