数据库连接pool,超时5s,报异常
an activeRecord::connection TimeoutError occurred in redirect#show all pooled connections were in use
ActiveRecord::ConnectionTimeoutError:无法在5000秒内从池中获得连接。所有的集合连接都在使用中。
修改config/database.yml, 原来pool是10, 修改成20了。
ActiveRecord::ConnectionTimeoutError:无法在5000秒内从池中获得连接。所有的集合连接都在使用中。
修改config/database.yml, 原来pool是10, 修改成20了。
production: adapter: postgresql encoding: unicode pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 20 } %> host: 127.0.0.1 port: 5432 user: postgres password: database: db_production
阅读量: 664
发布于:
修改于:
发布于:
修改于: