I'm not sure to be appropriate to issue the problem in this place, because this is involved with other system and plugins like buf_file, fluent-plugin-s3 and out_copy.
But it would be helpful if there is a workaround against this issue.
DETAILED DESCRIPTION:
out_forest logged error messages like below after the instance went into lb.
2015-05-08 19:30:00 +0900 [error]: plugin/out_forest.rb:145:rescue in plant: failed to configure/start sub output copy: Net::ReadTimeout
2015-05-08 19:30:00 +0900 [error]: plugin/out_forest.rb:146:rescue in plant: /opt/td-agent/embedded/lib/ruby/2.1.0/net/protocol.rb:158:in `rescue in rbuf_fill'
/opt/td-agent/embedded/lib/ruby/2.1.0/net/protocol.rb:152:in `rbuf_fill'
/opt/td-agent/embedded/lib/ruby/2.1.0/net/protocol.rb:134:in `readuntil'
/opt/td-agent/embedded/lib/ruby/2.1.0/net/protocol.rb:144:in `readline'
/opt/td-agent/embedded/lib/ruby/2.1.0/net/http/response.rb:39:in `read_status_line'
/opt/td-agent/embedded/lib/ruby/2.1.0/net/http/response.rb:28:in `read_new'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/aws-sdk-v1-1.63.0/lib/aws/core/http/patch.rb:29:in `block in new_transport_request'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/aws-sdk-v1-1.63.0/lib/aws/core/http/patch.rb:26:in `catch'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/aws-sdk-v1-1.63.0/lib/aws/core/http/patch.rb:26:in `new_transport_request'
/opt/td-agent/embedded/lib/ruby/2.1.0/net/http.rb:1378:in `request'
/opt/td-agent/embedded/lib/ruby/2.1.0/net/http.rb:1371:in `block in request'
/opt/td-agent/embedded/lib/ruby/2.1.0/net/http.rb:853:in `start'
/opt/td-agent/embedded/lib/ruby/2.1.0/net/http.rb:1369:in `request'
...
...
...
2015-05-08 20:16:51 +0900 [error]: plugin/out_forest.rb:140:rescue in plant: failed to configure sub output copy: Other 's3' plugin already use same buffer_path: type = s3, buffe
r_path = /tmp/td-agent/s3-buffer/media_auth_log.ip-10-0-1-49
2015-05-08 20:16:51 +0900 [error]: plugin/out_forest.rb:141:rescue in plant: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.7/lib/fluent/plugin/buf_file.rb:97:in `c
onfigure'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.7/lib/fluent/output.rb:197:in `configure'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.7/lib/fluent/output.rb:488:in `configure'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-mixin-config-placeholders-0.3.0/lib/fluent/mixin/config_placeholders.rb:105:in `configure'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-s3-0.5.7/lib/fluent/plugin/out_s3.rb:42:in `configure'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.7/lib/fluent/plugin/out_copy.rb:43:in `block in configure'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.7/lib/fluent/plugin/out_copy.rb:34:in `each'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.7/lib/fluent/plugin/out_copy.rb:34:in `configure'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-forest-0.3.0/lib/fluent/plugin/out_forest.rb:132:in `block in plant'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-forest-0.3.0/lib/fluent/plugin/out_forest.rb:128:in `synchronize'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-forest-0.3.0/lib/fluent/plugin/out_forest.rb:128:in `plant'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-forest-0.3.0/lib/fluent/plugin/out_forest.rb:168:in `emit'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.7/lib/fluent/event_router.rb:88:in `emit_stream'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.7/lib/fluent/event_router.rb:79:in `emit'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.7/lib/fluent/plugin/in_forward.rb:164:in `on_message'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.7/lib/fluent/plugin/in_forward.rb:238:in `call'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.7/lib/fluent/plugin/in_forward.rb:238:in `block in on_read_msgpack'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.7/lib/fluent/plugin/in_forward.rb:237:in `feed_each'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.7/lib/fluent/plugin/in_forward.rb:237:in `on_read_msgpack'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/cool.io-1.3.0/lib/cool.io/io.rb:123:in `on_readable'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/cool.io-1.3.0/lib/cool.io/io.rb:186:in `on_readable'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/cool.io-1.3.0/lib/cool.io/loop.rb:88:in `run_once'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/cool.io-1.3.0/lib/cool.io/loop.rb:88:in `run'
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.7/lib/fluent/plugin/in_forward.rb:91:in `run'
2015-05-08 20:16:51 +0900 [error]: plugin/out_forest.rb:142:rescue in plant: Cannot output messages with tag 'media_auth_log.ip-10-0-1-49'
...
# same errors (= failed to configure) were repeated until the instance went out from lb.
DIRECT ROOT CAUSE:
plant method is invoked when sub plugin is not created and a message comes.
Finally, start method of out_copy plugin is failed by any errors like troubles of network connection and plant method is also failed to create sub plugin.
Again, plant method is invoked when a second message comes because sub plugin is not created yet.
I want to ask how to avoid the problem.
I'm not sure to be appropriate to issue the problem in this place, because this is involved with other system and plugins like buf_file, fluent-plugin-s3 and out_copy.
But it would be helpful if there is a workaround against this issue.
DETAILED DESCRIPTION:
out_forest
logged error messages like below after the instance went into lb.DIRECT ROOT CAUSE:
plant method
is invoked when sub plugin is not created and a message comes.plant method
is also failed to create sub plugin.plant method
is invoked when a second message comes because sub plugin is not created yet.REPRODUCED MANUAL:
td-agent.conf
I reproduced the situation by stopping any outbound network connections.
I sent a log to td-agent.
And, out_copy was failed to send log to s3 via out_s3 due to open timeout.
After that, I restored outbound network connection.
I sent a log to td-agent.
out_copy was failed to be configure.
This error was repeated against every log.
Thank you for reading a long post.