fluent/fluent-plugin-mongo — Issue #4: configure of ouput plugins raises an exception when mongod is down
Author: repeatedly
Created: 2011-11-27 18:45:00+00:00
State: open

Since version 0.5.0, ouput plugins check mongo's version to set :buffer_size_limit.
mongod_version method tries to connect a target mongod server,
but raises an exception when target mongod server is down.

For the safety of ouput operation, configure method should rescue an execption and
set :buffer_size_limit to 2MB if mongod_version raised an exception.