logstash-input-beats 6.7.2-java → 6.8.1-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cfe0b8587cd80a4285628570381bf998f5765e4d779ee02173b18c90cea621cc
4
- data.tar.gz: 9f7b15e3627e6b6a594b9e2227185a7875b321d0a7062639d06332047480a59e
3
+ metadata.gz: d91fa10d8b1456fdc6a180867ed0a97469b8f6da7791b948710b5946282aa77f
4
+ data.tar.gz: d63fcf6fe46309ef34d5e4c0e28b322a72057064d3c6e1397446c758811d0a5c
5
5
  SHA512:
6
- metadata.gz: 7f4f396f596f515f4194083e8e590a83a84e4d6f1e222f7a12de1a3dcb7483c830654f806781ab1fa494568f562fbfccfed09f0a40780858fcec70bf4a46c1e0
7
- data.tar.gz: 1307df00e5d5edc2325020dbd8dd0f1902dcf4404412869f254a2b9303560267cebae254cf4852138533b8a6281ce599fb2d86312c2077792982338d9f471e3e
6
+ metadata.gz: a38aebb075a5d3ab1ac026026c162b93a06b26650a3c45284cf6553ed4e0b5608b39a8fea5c88feb15f12ca605967171e14c8d3212be12d3bd4aed68eb67c5c7
7
+ data.tar.gz: 9582e7adee36063b8c96d8d75423981bab56b40406d2a9bfee462a3bd51cae77b9ec69cb506f9307a0c3ad63c2eebc584a3f2ae6d51efb4d4f3e5407cc9a7839
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 6.8.1
2
+ - Added logging the best Netty's `maxOrder` setting when big payload trigger an unpooled allocation [#493](https://github.com/logstash-plugins/logstash-input-beats/pull/493)
3
+
4
+ ## 6.8.0
5
+ - Introduce expert only `event_loop_threads` to tune netty event loop threads count [#490](https://github.com/logstash-plugins/logstash-input-beats/pull/490)
6
+
1
7
  ## 6.7.2
2
8
  - Restore accidentally removed Lumberjack event parse source lines [#486](https://github.com/logstash-plugins/logstash-input-beats/pull/486)
3
9
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.7.2
1
+ 6.8.1
data/docs/index.asciidoc CHANGED
@@ -217,6 +217,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ
217
217
  | <<plugins-{type}s-{plugin}-client_inactivity_timeout>> |<<number,number>>|No
218
218
  | <<plugins-{type}s-{plugin}-ecs_compatibility>> | <<string,string>>|No
219
219
  | <<plugins-{type}s-{plugin}-enrich>> |<<string,string>>|No
220
+ | <<plugins-{type}s-{plugin}-event_loop_threads>> |<<number,number>>|No
220
221
  | <<plugins-{type}s-{plugin}-executor_threads>> |<<number,number>>|No
221
222
  | <<plugins-{type}s-{plugin}-host>> |<<string,string>>|No
222
223
  | <<plugins-{type}s-{plugin}-include_codec_tag>> |<<boolean,boolean>>|__Deprecated__
@@ -339,6 +340,20 @@ input {
339
340
  }
340
341
  --------------------------------------------------
341
342
 
343
+ [id="plugins-{type}s-{plugin}-event_loop_threads"]
344
+ ===== `event_loop_threads`
345
+
346
+ * Value type is <<number,number>>
347
+ * Defaults to 0.
348
+
349
+ When setting `0`, the actual default is `available_processors * 2`
350
+
351
+ This is an expert-level setting, and generally should not need to be set
352
+ {plugin-uc} plugin is implemented based on a non-blocking mechanism, requiring a number of event loop and executor threads.
353
+ The event loop threads are responsible to communicate with clients (accept incoming connections, enqueue/dequeue tasks and respond) and executor threads handle tasks.
354
+ This configuration intends to limit or increase the number of threads to be created for the event loop.
355
+ See <<plugins-{type}s-{plugin}-executor_threads>> configuration if you need to set executor threads count.
356
+
342
357
  [id="plugins-{type}s-{plugin}-executor_threads"]
343
358
  ===== `executor_threads`
344
359
 
@@ -141,6 +141,10 @@ class LogStash::Inputs::Beats < LogStash::Inputs::Base
141
141
  # Beats handler executor thread
142
142
  config :executor_threads, :validate => :number, :default => LogStash::Config::CpuCoreStrategy.maximum
143
143
 
144
+ # Expert only setting which set's Netty Event Loop Group thread count
145
+ # defaults to zero where Netty's DEFAULT_EVENT_LOOP_THREADS (NettyRuntime.availableProcessors() * 2) will be applied
146
+ config :event_loop_threads, :validate => :number, :default => 0
147
+
144
148
  # Flag to determine whether to add host information (provided by the beat in the 'hostname' field) to the event
145
149
  config :add_hostname, :validate => :boolean, :default => false, :deprecated => 'This option will be removed in the future as beats determine the event schema'
146
150
 
@@ -243,7 +247,7 @@ class LogStash::Inputs::Beats < LogStash::Inputs::Base
243
247
  end # def register
244
248
 
245
249
  def create_server
246
- server = org.logstash.beats.Server.new(@host, @port, @client_inactivity_timeout, @executor_threads)
250
+ server = org.logstash.beats.Server.new(@host, @port, @client_inactivity_timeout, @event_loop_threads, @executor_threads)
247
251
  server.setSslHandlerProvider(new_ssl_handshake_provider(new_ssl_context_builder)) if @ssl_enabled
248
252
  server
249
253
  end
@@ -8,4 +8,4 @@ require_jar('io.netty', 'netty-transport', '4.1.100.Final')
8
8
  require_jar('io.netty', 'netty-handler', '4.1.100.Final')
9
9
  require_jar('io.netty', 'netty-transport-native-unix-common', '4.1.100.Final')
10
10
  require_jar('org.javassist', 'javassist', '3.24.0-GA')
11
- require_jar('org.logstash.beats', 'logstash-input-beats', '6.7.2')
11
+ require_jar('org.logstash.beats', 'logstash-input-beats', '6.8.1')
@@ -13,7 +13,8 @@ describe LogStash::Inputs::Beats do
13
13
  let(:certificate) { BeatsInputTest.certificate }
14
14
  let(:port) { BeatsInputTest.random_port }
15
15
  let(:client_inactivity_timeout) { 400 }
16
- let(:threads) { 1 + rand(9) }
16
+ let(:event_loop_threads) { 1 + rand(4) }
17
+ let(:executor_threads) { 1 + rand(9) }
17
18
  let(:queue) { Queue.new }
18
19
  let(:config) do
19
20
  {
@@ -21,7 +22,8 @@ describe LogStash::Inputs::Beats do
21
22
  "ssl_certificate" => certificate.ssl_cert,
22
23
  "ssl_key" => certificate.ssl_key,
23
24
  "client_inactivity_timeout" => client_inactivity_timeout,
24
- "executor_threads" => threads,
25
+ "event_loop_threads" => event_loop_threads,
26
+ "executor_threads" => executor_threads,
25
27
  "type" => "example",
26
28
  "tags" => "beats"
27
29
  }
@@ -36,7 +38,7 @@ describe LogStash::Inputs::Beats do
36
38
  let(:port) { 9001 }
37
39
 
38
40
  it "sends the required options to the server" do
39
- expect(org.logstash.beats.Server).to receive(:new).with(host, port, client_inactivity_timeout, threads)
41
+ expect(org.logstash.beats.Server).to receive(:new).with(host, port, client_inactivity_timeout, event_loop_threads, executor_threads)
40
42
  subject.register
41
43
  end
42
44
  end
@@ -529,8 +531,8 @@ describe LogStash::Inputs::Beats do
529
531
  subject(:plugin) { LogStash::Inputs::Beats.new(config) }
530
532
 
531
533
  before do
532
- @server = org.logstash.beats.Server.new(host, port, client_inactivity_timeout, threads)
533
- expect( org.logstash.beats.Server ).to receive(:new).with(host, port, client_inactivity_timeout, threads).and_return @server
534
+ @server = org.logstash.beats.Server.new(host, port, client_inactivity_timeout, event_loop_threads, executor_threads)
535
+ expect( org.logstash.beats.Server ).to receive(:new).with(host, port, client_inactivity_timeout, event_loop_threads, executor_threads).and_return @server
534
536
  expect( @server ).to receive(:listen)
535
537
 
536
538
  subject.register
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-beats
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.7.2
4
+ version: 6.8.1
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-20 00:00:00.000000000 Z
11
+ date: 2024-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -327,7 +327,7 @@ files:
327
327
  - vendor/jar-dependencies/io/netty/netty-transport-native-unix-common/4.1.100.Final/netty-transport-native-unix-common-4.1.100.Final.jar
328
328
  - vendor/jar-dependencies/io/netty/netty-transport/4.1.100.Final/netty-transport-4.1.100.Final.jar
329
329
  - vendor/jar-dependencies/org/javassist/javassist/3.24.0-GA/javassist-3.24.0-GA.jar
330
- - vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/6.7.2/logstash-input-beats-6.7.2.jar
330
+ - vendor/jar-dependencies/org/logstash/beats/logstash-input-beats/6.8.1/logstash-input-beats-6.8.1.jar
331
331
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
332
332
  licenses:
333
333
  - Apache License (2.0)