fluent/fluent-plugin-sql

How to config increase pool size of active connection for database?

zamanimehdi opened this issue · 1 comments

It seems that the default connection settings are not for the operating environment. The following error will occur when below configuration set to large number.
flush_thread_count = 100

Error:

2020-03-31 12:31:05 +0000 [warn]: #0 fluent/log.rb:342:warn: failed to flush the buffer. retry_time=2 next_retry_seconds=2020-03-31 12:31:08 +0000 chunk="5a225bcd579342d569b144a242212e7b" error_class=ActiveRecord::ConnectionTimeoutError error="could not obtain a connection from the pool within 5.000 seconds (waited 5.000 seconds); all pooled connections were in use"

How to config increase pool size of active connection for database?

There is no way to set such a value. PR is welcome!