How to have more control on mongoDB pool size

I am using Java Drivers, and want to have more control on pool size. Specifically I want to increase pool size exponentially whenever the requirement reaches the current pools size, i.e suppose first time it increased by 2, then again by 4, then by 8, so totals will be 2, 6, 12…

Hi @Divyansh_N_A ,

There is no way currently to do that with any MongoDB driver. This functionality has not been requested by any other user (and I’ve not seen it in any other connection pool implementation), so I’m wondering why you think it’s needed.

Regards,
Jeff

1 Like

@Jeffrey_Yemin
Can you just point me to where and how it is done in the source codes? Thanks