Skip to content

Commit fbf34f2

Browse files
committed
Improved 'executor_threads' description with integrations from logstash-plugins#409
1 parent 64f4780 commit fbf34f2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/index.asciidoc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,17 @@ Refer to <<plugins-{type}s-{plugin}-ecs_metadata,ECS mapping>> for detailed info
230230
* Value type is <<number,number>>
231231
* Default value is 1 executor thread per CPU core
232232

233-
The number of parallel executor threads to be used to process incoming beats requests.
233+
The number of threads to be used to process incoming beats requests.
234+
By default Beats input will create a number of threads equals to 2*CPU cores to handle incoming connections,
235+
reading from the established sockets and execute most of the tasks related to network connection managements,
236+
except the parsing of Lumberjack protocol that's offloaded to a dedicated thread pool.
237+
238+
Generally you don't need to touch this setting.
239+
In case you are sending very large events and observing "OutOfDirectMemory" exceptions,
240+
you may want to reduce this number to half or 1/4 of the CPU cores.
241+
This will reduce the number of threads decompressing batches of data into direct memory.
242+
However, this will only be a mitigating tweak, as the proper solution may require resizing your Logstash deployment,
243+
either by increasing number of Logstash nodes or increasing the JVM's Direct Memory.
234244

235245
[id="plugins-{type}s-{plugin}-host"]
236246
===== `host`

0 commit comments

Comments
 (0)