mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- update file and zeromq workers_not_supported settings
This commit is contained in:
parent
a31fca8273
commit
a7c309c3d0
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue