Mongo engine creates 3 connections to db server per incoming connection. #10950
Labels
bug
database-access
Database access related issues and PRs
db/mongo
MongoDB related database access issues
Description
What happened:
While investigating #10869, the mongo client is found to create 3 connections per
mongo.Connect
.Once our mongo engine receives these 3 connections, then it creates 3 connections to the db server per incoming connection so 3 x 3 = 9 connections are established to db server in total
What you expected to happen:
Teleport should NOT multiply number of connections to the server
Reproduction Steps
As minimally and precisely as possible, describe step-by-step how to reproduce the problem.
TestDatabaseAccessMongoConnectionCount
in integration testServer Details
teleport version
): v9Client Details
tsh version
): n/aDebug Logs
For a single test client, that does one find, test server receives
Possible solutions
We may have to modify the mongo driver to disable some background connections that are not necessary for our proxy.
The text was updated successfully, but these errors were encountered: