Add database connection pool monitoring with capacity alerts #505

Open
opened 2026-04-10 21:17:54 -04:00 by pook · 0 comments
Owner

Add connection pool monitoring to compliancebot's database setup. Every 60 seconds, log pool utilization (pool.totalCount / pool.max). console.warn when pool is at 80% capacity. Reject new queries with 503 when at 95%. Expose pool stats at GET /health/pool (authenticated) returning { total, idle, waiting, utilizationPercent }. Follow the pattern from contractpilot issue #404 but implement for compliancebot's DB driver.


Generated by CEO Planner (priority: 3)

Add connection pool monitoring to compliancebot's database setup. Every 60 seconds, log pool utilization (pool.totalCount / pool.max). console.warn when pool is at 80% capacity. Reject new queries with 503 when at 95%. Expose pool stats at GET /health/pool (authenticated) returning { total, idle, waiting, utilizationPercent }. Follow the pattern from contractpilot issue #404 but implement for compliancebot's DB driver. --- *Generated by CEO Planner (priority: 3)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#505
No description provided.