Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Excessive database connections #4193

Open
pintify opened this issue Feb 17, 2025 · 0 comments
Open

Excessive database connections #4193

pintify opened this issue Feb 17, 2025 · 0 comments

Comments

@pintify
Copy link

pintify commented Feb 17, 2025

Describe the bug
It seems the services open a lot of connections towards the databases (~30), instead of a few by service (~1-2). With all the services running in version 2.0 (broker, console, telemetry, ...) the total of connections towards the SQL database goes up to ~ 200.

To Reproduce
Simply launch the service while monitoring the connections in the database.

Expected behavior
It may be reasonable to have more than one connection open from a single service, but 30 by each seems too many. It makes harder to monitor properly the status of the database and the noise provoked by such quantity of connections does not help to detect possible attacks against the database for example.

Version of Kapua
2.0.0, but happens for a long time

Type of deployment
[X] Docker, with a MariaDB database

Main component affected
All SQL database related

Additional context
Add any other context about the problem here.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant