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
|
||||
def register
|
||||
require "fileutils" # For mkdir_p
|
||||
|
||||
workers_not_supported
|
||||
|
||||
@files = {}
|
||||
now = Time.now
|
||||
@last_flush_cycle = now
|
||||
|
|
|
@ -62,7 +62,7 @@ class LogStash::Outputs::ZeroMQ < LogStash::Outputs::Base
|
|||
require "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!")
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue