Add database connection pool monitoring with capacity alerts #505
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#505
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)