Skip to content

Session timeout when using pool & parallel for #16146

Answered by ephys
BenCGI asked this question in Help & Questions
Discussion options

You must be logged in to vote

It does have both timeouts:

  • The pool.acquire option is used to configure the timeout used when acquiring a connection from the pool
  • The timeout option used when establishing a connection is also configurable in most dialects, but we do not have a unified option for it (something we should likely add). You can use the dialectOptions option to configure the connector library, like below:
new Sequelize({
  dialect: 'postgres',
  // options accepted by https://node-postgres.com/apis/client
  dialectOptions: {
    connectionTimeoutMillis: 10000,
  },
})

Each dialect uses different options

If you let me know which connector library you are using, I can look up what the configuration should lo…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ephys
Comment options

Answer selected by BenCGI
@BenCGI
Comment options

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