Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output: make it go zoom #19

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.0.1
- Fix: improves throughput by allowing pipeline workers to share a plugin instance _concurrently_ instead of _sequentially_
yaauie marked this conversation as resolved.
Show resolved Hide resolved

## 1.0.0
- Introduces the load balancing mechanism to distribute the requests among the `hosts` [#16](https://github.com/logstash-plugins/logstash-integration-logstash/pull/16)

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1
3 changes: 3 additions & 0 deletions lib/logstash/outputs/logstash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
require "stud/interval" # Stud::stoppable_sleep

class LogStash::Outputs::Logstash < LogStash::Outputs::Base

concurrency :shared

extend LogStash::PluginMixins::ValidatorSupport::RequiredHostOptionalPortValidationAdapter

include LogStash::PluginMixins::HttpClient[:with_deprecated => false]
Expand Down
1 change: 1 addition & 0 deletions spec/unit/logstash_output_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
it { is_expected.to be_a_kind_of Class }
it { is_expected.to be <= LogStash::Outputs::Base }
it { is_expected.to have_attributes(:config_name => "logstash") }
it { is_expected.to have_attributes(:concurrency => :shared) }
end

describe "a plugin instance with minimal config" do
Expand Down