Limit amount of connections for one DB from pmm-agent

Description

User story:

For PG we want to execute some checks on all DBs in each instance. Some our customers have hundreds DBs in one instance. With current implementation check may be started simultaneously for all DBs which may create spike load on DBMS. We should limit amount of concurrent jobs and a amount of opened connections for DBMS instance.

UI/UX:

 

Acceptance criteria:

 

Out of scope:

 

Suggested implementation:

1) Use one runner for jobs and actions

2) Use semaphore to limit total amount of jobs/actions

3) Use semaphore to limit amount of connections per DBMS instance

How to test:

Just check that action and jobs works. For example create some backup with PMM, open QAN and invoke explain for some query there, etc...

Details:

How to test

None

How to document

None

Smart Checklist

Activity

vasyl.yurkovych July 7, 2022 at 10:48 AM

please add How to test section

Artem Gavrilov June 13, 2022 at 4:31 PM

Sorry, I created ticket before I investigated the scope. Description added.

Done

Details

Assignee

Reporter

Priority

Needs QA

Yes

Needs Doc

Yes

Planned Version/s

Fix versions

Story Points

Smart Checklist

Created June 8, 2022 at 4:50 PM
Updated March 6, 2024 at 1:07 AM
Resolved August 23, 2022 at 12:04 PM