Hello,
I am a bit confused regarding setting the optimal connections pool size (dataSource.setMaximumPoolSize(maxPoolSize)).
Correct me if my judgement is wrong. Instances on AppEngine have only a single core. Given that, the optimal max number of threads is 2 per instance (i.e. 2 per core). Since the optimal number of connections in a connection pool should be equal to the number of threads, this means the maximumPoolSize per instance should be 2?
The maximum we can set with AppEngine is 12, though.
My instance type is B4 and it is scaled. i am using HikariDataSource and Cloud SQL. What is the optimal poolSize or how can this be computed?
Thanks!