logstash-plugins / logstash-input-beats

Apache License 2.0
87 stars 81 forks source link

Introduces expert only event loop thread count setting. #490

Closed mashhurs closed 10 months ago

mashhurs commented 10 months ago

Description

By default, netty event loop creates available_processors * 2 thread count. This may sometimes lead a resource problem, especially when multiple beats-input pipelines are defined in a single machine. This PR introduces a configuration to limit a number of threads for netty event loop threads.

How to locally test

input {
    beats {
        codec => json
        port => 5001
        event_loop_threads => 2
        executor_threads => 2
    }
}
output {
    stdout { codec => rubydebug }
}
image