Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How c3p0 manage connections in slaves? #146

Open
yiwong2001 opened this issue Apr 3, 2020 · 0 comments
Open

How c3p0 manage connections in slaves? #146

yiwong2001 opened this issue Apr 3, 2020 · 0 comments

Comments

@yiwong2001
Copy link

Hi there,

I need help to understand how c3p0 works with rds cluster.

I have one web connects to RDS mysql. The RDS stack contains 1 master and 5 slaves. Each of nodes there can handle max to 1000 connections.

I configured min and max connections in c3p0 pool to 800.

Here is the confusion part. It looks like 800 connections are established on each of mysql nodes. As a result it could be 800*6 connections. Does it mean c3p0 established all 4800 connections, or it only hold 800 connections as set but shared by all data nodes? How c3p0 establish and manage connections in pool there?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant