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

Max-life-time expire cause application latency #2203

Open
bantify opened this issue May 27, 2024 · 1 comment
Open

Max-life-time expire cause application latency #2203

bantify opened this issue May 27, 2024 · 1 comment

Comments

@bantify
Copy link

bantify commented May 27, 2024

I use hikari cp as per below configuration:

cm {
    database = {
      data-source-class = "org.mariadb.jdbc.Driver"
      socket-file       = "/var/lib/maxscale/maxscale.sock"
      host              = "localhost"
      port              = 3306
      name              = "webdb"
      user              = "xxxxxxxxxx"
      password          = "xxxxxxxxxxxxx"
      pool-size         = 24
      max-life-time     = 600000
      socket-timeout    = 60000
    }
  }

Here max-life-time is 10 minutes. We see also application latency high in every 10 minutes.
Also we see connections drop to 0 in every 10 minutes and it takes (few seconds) time to create 24 new connections.

During the time application response becomes high.

Please help.

@svendiedrichsen
Copy link

I think this could help: #2035

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

2 participants