maxSize pool connection

21 views
Skip to first unread message

Jorge Bo

unread,
Feb 9, 2023, 9:18:48 AM2/9/23
to kmongo
Hi,  i have question regarding the following log:

Opened connection [connectionId{localValue:1058, serverValue:40975}]

i have noticed that the value of localValue keeps increasing. what does this value mean?
Is it related the maximum number of connections in the pool? Why is it increasing more than the maxSize default value 100?

Thanks,
Jorge

Current client configuration:

private val mongoClient: CoroutineClient =
KMongo.createClient(
MongoClientSettings
.builder()
.applyToConnectionPoolSettings {
it.maxConnectionLifeTime(30, TimeUnit.MINUTES)
.maxConnectionIdleTime(10, TimeUnit.MILLISECONDS)
}
.applyToSocketSettings {
it.connectTimeout(20000, TimeUnit.MILLISECONDS)
}
.applyConnectionString(ConnectionString(AppConfiguration.mongoUrl))
.readPreference(ReadPreference.secondaryPreferred())
.retryWrites(true)
.build()
).coroutine

zigzago

unread,
Apr 11, 2023, 8:44:01 AM4/11/23
to kmongo
Reply all
Reply to author
Forward
0 new messages