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

Config different max connc #119

Open
davejohnston opened this issue Sep 28, 2023 · 0 comments
Open

Config different max connc #119

davejohnston opened this issue Sep 28, 2023 · 0 comments
Assignees

Comments

@davejohnston
Copy link

Your Question

Is it possible to configure a different MaxConnectionCount for the sources and replica DBs used by the resolver?

The document you expected this should be explained

I looked at the offical documentation, but it looks like it sets a global MaxConnection for all connections

DB.Use(
  dbresolver.Register(dbresolver.Config{ /* xxx */ }).
  SetConnMaxIdleTime(time.Hour).
  SetConnMaxLifetime(24 * time.Hour).
  SetMaxIdleConns(100).
  SetMaxOpenConns(200)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants