Thanks to visit codestin.com
Credit goes to github.com

Skip to content

postgreSQLClient.rxGetConnection() has no timeout or maxWaitQueueSize #142

@iranna90

Description

@iranna90

If there are no connections available in the pool then postgreSQLClient.rxGetConnection() waits until a connection is available, If we have some slow query then the wait queue is growing indefinitely as waiters queue does not have any maxLimit and because of this we have response times going high/spiking as waiters queue grows, Is it a good idea to add 'maxWaitersQueueSize' parameter and any new connection request will be failed immediately after this size reached and caller can return a default response(operating in degraded mode), Or was there a specific reason we did not add this sizeLimit on waiters queue ?

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