Database connection timeout error in postgresql

SaravanaKumAr

Currently am running backgroud jobs with sidekiq, while running its giving "ActiveRecord::ConnectionTimeoutError".

This is my current database.yml file,

production:
  adapter: postgresql
  encoding: unicode
  database: app_production
  username: password
  password:
  host: app.domain.com
  pool: 25

This is is my sidekiq.yml file,

production:
    concurrency: 25
    timeout: 300

While running its giving connection timeout error

This error was am getting in the backgroud,

could not obtain a database connection within 5 seconds (waited 5.82230675 seconds). The max pool size is currently 25; consider increasing it.
usha

Maximum number of connections allowed to your postgres database is 25. But you have set your concurrency for sidekiq as 25. So if you have all the concurrent threads for sidekiq running, you will not have any database connection available for your app server.

Either reduce the sidekiq concurrency or increase the pool size(I recommend increasing the pool size).

Postgres allows 100 concurrent connections by default

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Connection timeout numbers for PostgreSQL

From Dev

PDO sqlsrv database connection timeout

From Dev

PlaySlick Database Connection to PostgreSQL

From Dev

Java connection to postgresql database

From Dev

Error Transfer artifact : Connection Timeout

From Dev

Postgresql Error: connection terminated

From Dev

Set database connection timeout in CodeIgniter 3

From Dev

Issue accessing database on my network (connection timeout)

From Dev

Jubula PostgreSQL Database connection failed

From Dev

Titan graph database timeout error

From Dev

Moodle database connection error

From Dev

Weird error on connection with database

From Dev

Eclipse error database connection

From Dev

error in PHP and database connection

From Dev

Weird error on connection with database

From Dev

Error establishing in database connection

From Dev

connection error with Sqlite database

From Dev

Connection error to database in cloud

From Dev

Mysql Database error connection

From Dev

SSAS with Kerberos delegation gets connection timeout error

From Dev

Postgresql JDBC connection error on Android

From Dev

Oracle Database Connection Error Listener Refused the Connection

From Dev

create a connection with a postgresql database using sequel and puma

From Dev

Tracking out of database connection issues with Python and PostgreSQL

From Dev

Wine ODBC connection to local PostgreSQL database

From Dev

JDBC Connection Error to Oracle Database

From Dev

DotNetNuke Installation database connection error

From Dev

WordPress Error establishing a database connection

From Dev

Entity framework database connection error