perf: keep a fixed PostgreSQL pool without overflow connections

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-11 13:25:26 +03:00
co-authored by Claude Opus 5.5
parent 0b0421ad2f
commit 9c3959d768
7 changed files with 117 additions and 6 deletions
+3 -2
View File
@@ -67,8 +67,9 @@ services:
deploy:
resources:
limits:
# соединения реплик: API_REPLICAS × (pool_size + max_overflow)
# + migrate ≤ max_connections (100), расчёт — REPORT.md
# соединения реплик: API_REPLICAS × pool_size (переполнения нет,
# max_overflow 0) + migrate ≤ max_connections (100): 2 × 10 + 1,
# при поочерёдной замене 3 × 10 + 1; расчёт — REPORT.md
cpus: "2.0"
memory: 1G