Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint

2014-08-20 Thread S Ahmed
2 years later ... OK this sounds like the best approach as it lets you scale things out as you grow and actually need more servers (then you just have to manage which database to switch too). The cons of this approach is that most ORM's don't support this. On Fri, Jun 1, 2012 at 2:37 PM, Christ

Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint

2012-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ahmed, On 5/31/12 9:33 AM, S Ahmed wrote: >> It would be easier if all databases were hosted by a single >> instance of MySQL -- then you could use Tomcat-pool's feature of >> being able to provide credentials when obtaining connections from >> the po

Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint

2012-05-31 Thread S Ahmed
>It would be easier if all databases were hosted by a single instance >of MySQL -- then you could use Tomcat-pool's feature of being able to >provide credentials when obtaining connections from the pool -- and >get the right database. That way, a much smaller number of connections >could be maintai

Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint

2012-05-30 Thread Pid *
On 31 May 2012, at 00:49, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > André, > > On 5/30/12 6:18 PM, André Warnier wrote: >> Taking the same hypothetical case and figures : >> >> Assuming that you need a total of (1 * 4 connections) = 4 >> connections.

Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint

2012-05-30 Thread Pid *
On 30 May 2012, at 23:19, "André Warnier" wrote: >> On Wed, May 30, 2012 at 10:07 AM, Christopher Schultz < >> ch...@christopherschultz.net> wrote: > .. >>> >>> If my environment and requirements match yours, you'd need 1 * >>> max_pool_size * 66KiB at peak usage. That's about 640MiB for each

Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint

2012-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 5/30/12 6:18 PM, André Warnier wrote: > Taking the same hypothetical case and figures : > > Assuming that you need a total of (1 * 4 connections) = 4 > connections. Assuming that it takes 10ms to set up one such > connection, and

Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint

2012-05-30 Thread André Warnier
On Wed, May 30, 2012 at 10:07 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: .. If my environment and requirements match yours, you'd need 1 * max_pool_size * 66KiB at peak usage. That's about 640MiB for each connection you want in 10k pools. For a (uniform) max pool size o

Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint

2012-05-30 Thread S Ahmed
Chris, Great thanks that is exactly what I was looking for, just to get an idea at this point. And yes it was for mysql. I was thinking one could create a smarter pool, one that created more connections for sites used more often, and less for others. Much appreciated. On Wed, May 30, 2012 at 1

Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint

2012-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ahmed, On 5/29/12 9:29 AM, S Ahmed wrote: > If my requirement for a hosted application is to give each > customer a separate instance of mysql, I am curious how feasible > that would be. You can certainly do this. > What is the memory footprint for