Last active
August 9, 2024 16:14
-
-
Save jsvd/84f4beb202ded3e8c3ee1cf008b32310 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# env var: | |
# keystore: | |
# pipeline.workers = default to cpu cores | |
❯ docker run docker.elastic.co/logstash/logstash-full:8.16.0-SNAPSHOT sh -c 'rm config/logstash.keystore && echo 1 | bin/logstash -e "" | grep pipeline.workers' | |
[2024-08-09T16:06:29,979][INFO ][logstash.javapipeline][main] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>10, [...] | |
# env var: 2 | |
# keystore: | |
# pipeline.workers = env var | |
❯ docker run -e PIPELINE_WORKERS="2" docker.elastic.co/logstash/logstash-full:8.16.0-SNAPSHOT sh -c 'rm config/logstash.keystore && echo 1 | bin/logstash -e "" | grep pipeline.workers' | |
found pipeline.workers in env: 2 | |
[2024-08-09T16:06:44,596][INFO ][logstash.javapipeline][main] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>2, [...] | |
# env var: | |
# keystore: 4 | |
# pipeline.workers = keystore | |
❯ docker run docker.elastic.co/logstash/logstash-full:8.16.0-SNAPSHOT sh -c 'echo 1 | bin/logstash -e "" | grep pipeline.workers' | |
found pipeline.workers in keystore: 4 | |
[2024-08-09T16:07:05,658][INFO ][logstash.javapipeline][main] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>4, [...] | |
# env var: 2 | |
# keystore: 4 | |
# pipeline.workers = keystore | |
❯ docker run -e PIPELINE_WORKERS="2" docker.elastic.co/logstash/logstash-full:8.16.0-SNAPSHOT sh -c 'echo 1 | bin/logstash -e "" | grep pipeline.workers' | |
found pipeline.workers in env: 2 | |
found pipeline.workers in keystore: 4 | |
[2024-08-09T16:07:21,354][INFO ][logstash.javapipeline][main] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>4, [...] | |
# env var: 2 | |
# keystore: 4 | |
# cli arg: 12 | |
# pipeline.workers = cli arg | |
❯ docker run -e PIPELINE_WORKERS="2" docker.elastic.co/logstash/logstash-full:8.16.0-SNAPSHOT sh -c 'echo 1 | bin/logstash -e "" -w 12 | grep pipeline.workers' | |
found pipeline.workers in env: 2 | |
found pipeline.workers in keystore: 4 | |
[2024-08-09T16:07:41,943][INFO ][logstash.javapipeline][main] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>12, [...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment