Skip to content

Does KEDA Reuse DB Connections Across ScaledObjects #6955

@smartaquarius10

Description

@smartaquarius10

We are using a PostgreSQL database to control the scaling of replicas across different deployments.

Each deployment has its own ScaledObject, which queries the same database table using a distinct query like

Select Count(*) from table where deployment = deployment1

I’d like to understand how KEDA handles database connections:

Does KEDA open a new connection to the database for each ScaledObject, or does it reuse connections from a pool?

Currently, it feels like KEDA is creating new connection per scaleobject. Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Ready To Ship

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions