mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -04:00
parent
97a5d76ba4
commit
11754001e5
1 changed files with 4 additions and 3 deletions
|
@ -415,10 +415,11 @@ module LogStash; class Pipeline < BasePipeline
|
||||||
end
|
end
|
||||||
|
|
||||||
pipeline_workers.times do |t|
|
pipeline_workers.times do |t|
|
||||||
@worker_threads << Thread.new do
|
thread = Thread.new(batch_size, batch_delay, self) do |_b_size, _b_delay, _pipeline|
|
||||||
Util.set_thread_name("[#{pipeline_id}]>worker#{t}")
|
_pipeline.worker_loop(_b_size, _b_delay)
|
||||||
worker_loop(batch_size, batch_delay)
|
|
||||||
end
|
end
|
||||||
|
thread.name="[#{pipeline_id}]>worker#{t}"
|
||||||
|
@worker_threads << thread
|
||||||
end
|
end
|
||||||
|
|
||||||
# inputs should be started last, after all workers
|
# inputs should be started last, after all workers
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue