Skip to content

postgres Connection Timeout  #57

@saugatadutta

Description

@saugatadutta

We are seeing this issue recently, where PostgreSQL has not been under much load but all DB statements are getting connection time-outs. We have set a DB_CONNECTTION_TIMEOUT set at 10 secs.

host: DB_HOST,
    port: DB_PORT,
    database: DB_NAME,
    user: DB_USER,
    password: DB_PASSWORD,
    pg: pg,
    max: 15,
    connectionTimeoutMillis: 10000,
    statementTimeout: 10000,
   keepAlive: true,
   idleTimeoutMillis: 10000

err: {
message: "timeout exceeded when trying to connect"
stack: "Error: timeout exceeded when trying to connect
at Timeout.setTimeout [as _onTimeout] (/app/node_modules/pg-pool/index.js:199:27)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)"
type: "Error"
}

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