目前我正在使用Sidekiq运行后台作业,在运行时出现了"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
这是我的sidekiq.yml文件,
production:
concurrency: 25
timeout: 300
运行时出现连接超时错误。
我在后台中遇到了这个错误。
could not obtain a database connection within 5 seconds (waited 5.82230675 seconds). The max pool size is currently 25; consider increasing it.
sidekiq.yml
文件中的timeout:300
改为timeout:1500
。 - usha