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

Increase performance of Elasticsearch bulk forwarder. #1033

Merged
merged 1 commit into from Dec 27, 2022

Conversation

cresh
Copy link
Contributor

@cresh cresh commented Dec 15, 2022

We see drastic performance problems when using the Elasticsearch bulk forwarder. The ineffecient reduce in gen-request-bulk-body causes the problem because it uses str and thus copies the growing string for every element. Using concat and string/join instead shows a gain in performance of more than 90% in our benchmarks.

Copy link
Member

@jamtur01 jamtur01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jamtur01 jamtur01 merged commit 358426d into riemann:main Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants