- update file and zeromq workers_not_supported settings

This commit is contained in:
Jordan Sissel 2013-10-18 16:28:09 -07:00
parent a31fca8273
commit a7c309c3d0
2 changed files with 4 additions and 1 deletions

View file

@ -45,6 +45,9 @@ class LogStash::Outputs::File < LogStash::Outputs::Base
public public
def register def register
require "fileutils" # For mkdir_p require "fileutils" # For mkdir_p
workers_not_supported
@files = {} @files = {}
now = Time.now now = Time.now
@last_flush_cycle = now @last_flush_cycle = now

View file

@ -62,7 +62,7 @@ class LogStash::Outputs::ZeroMQ < LogStash::Outputs::Base
require "logstash/util/zeromq" require "logstash/util/zeromq"
self.class.send(:include, LogStash::Util::ZeroMQ) self.class.send(:include, LogStash::Util::ZeroMQ)
if @mode == "server" && @workers > 1 if @mode == "server"
workers_not_supported("With 'mode => server', only one zeromq socket may bind to a port and may not be shared among threads. Going to single-worker mode for this plugin!") workers_not_supported("With 'mode => server', only one zeromq socket may bind to a port and may not be shared among threads. Going to single-worker mode for this plugin!")
end end