Skip to content

Allow usage of separate DB connection pools for request handling and background processing #1707

@nscuro

Description

@nscuro

Current Behavior

Dependency-Track maintains a single database connection pool. The pool defaults to a maximum of 20 connections.

The pool is shared by request handling, and background processing logic. This could cause issues when an increased volume of background tasks coincides with many concurrent users interacting with the REST API.

Proposed Behavior

To prevent API responsiveness from being compromised by background task processing, and vice versa, offer the option to maintain separate connection pools for each.

This would only be required for deployments of certain sizes and should thus not be the default.

Checklist

Sub-issues

Metadata

Metadata

Assignees

Labels

component/api-serverenhancementNew feature or requestp2Non-critical bugs, and features that help organizations to identify and reduce riskperformancesize/MMedium effort

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions