Daijiro MORI
null+****@clear*****
Sun Sep 8 20:15:23 JST 2013
Daijiro MORI 2013-09-08 20:15:23 +0900 (Sun, 08 Sep 2013) New Revision: 0670571dc8f78ab4a92aa021e80b6816169cfbdb https://github.com/droonga/fluent-plugin-droonga/commit/0670571dc8f78ab4a92aa021e80b6816169cfbdb Message: Change default n_workers value to zero. Modified files: lib/droonga/engine.rb lib/fluent/plugin/out_droonga.rb Modified: lib/droonga/engine.rb (+4 -1) =================================================================== --- lib/droonga/engine.rb 2013-09-08 18:10:02 +0900 (636a4a8) +++ lib/droonga/engine.rb 2013-09-08 20:15:23 +0900 (b175222) @@ -27,9 +27,12 @@ module Droonga class Engine DEFAULT_OPTIONS = { :queue_name => "DroongaQueue", - :n_workers => 1, + :n_workers => 0, :with_server => false } + # TODO: It doesn't work fine when n_workers > 0 && number of databases > 1 + # since more than one ServerEngine instance can't be in a process. + # It causes dump_uncaught_error in the SignalThread. def initialize(options={}) @options = DEFAULT_OPTIONS.merge(options) Modified: lib/fluent/plugin/out_droonga.rb (+1 -1) =================================================================== --- lib/fluent/plugin/out_droonga.rb 2013-09-08 18:10:02 +0900 (7036581) +++ lib/fluent/plugin/out_droonga.rb 2013-09-08 20:15:23 +0900 (7a92d32) @@ -23,7 +23,7 @@ module Fluent config_param :name, :string, :default => "" config_param :proxy, :bool, :default => false - config_param :n_workers, :integer, :default => 1 + config_param :n_workers, :integer, :default => 0 config_param :database, :string, :default => "" config_param :queue_name, :string, :default => "DroongaQueue" config_param :handlers, :default => [] do |value| -------------- next part -------------- HTML����������������������������... Download