Add workers and batch_size to root request (#10853) (#10910)

* Add workers and batch_size to root request

* Add batch delay per review recommendation
This commit is contained in:
Mike Place 2019-06-26 23:14:14 +02:00 committed by GitHub
parent c918082617
commit 20fc465510
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,11 @@ module LogStash
:ephemeral_id => service.agent.ephemeral_id, :ephemeral_id => service.agent.ephemeral_id,
:status => "green", # This is hard-coded to mirror x-pack behavior :status => "green", # This is hard-coded to mirror x-pack behavior
:snapshot => ::BUILD_INFO["build_snapshot"], :snapshot => ::BUILD_INFO["build_snapshot"],
:pipeline => {
:workers => LogStash::SETTINGS.get("pipeline.workers"),
:batch_size => LogStash::SETTINGS.get("pipeline.batch.size"),
:batch_delay => LogStash::SETTINGS.get("pipeline.batch.delay"),
}
} }
end end