fluent / fluent-plugin-mongo

MongoDB input and output plugin for Fluentd
https://docs.fluentd.org/output/mongo
173 stars 61 forks source link

configure of ouput plugins raises an exception when mongod is down #4

Closed repeatedly closed 13 years ago

repeatedly commented 13 years ago

Since version 0.5.0, ouput plugins check mongo's version to set :buffer_chunk_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_chunk_limit to 2MB if mongod_version raised an exception.