Skip to content

Feature request: be able to change the Pool options "max" and "min" at runtime #55

@capaj

Description

@capaj

I would like to use this lib with a Postgre on AWS aurora serverless. Problem is that aurora serverless scales up at runtime so I need to tweak the max connections value to be able to utilize serverless as it scales up. Is this possible with tarn.js?

Looking at the code it seems like theoretically it could work like this:

const p = new Pool({max: 90}) // one ACU
// when scaling occurs
p.max = 180 // two ACUs
p.check()

is this assumption correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions