Can I change the db connection pool size dynamically?

291 Views Asked by At

We are preparing to migrate the spring 4 based legacy service to Kubernetes, also known as K8s.

Since rdbms is used, there is a limitation that the number of connection pools must be fixed at startup.

However, we want to use the auto scale function of k8s, but the problem is that the method of changing the pool size variably at runtime does not come up easily.

I am using dbcp2, is there any possible solution?

0

There are 0 best solutions below