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 bulk size to metrics store #962

Merged

Conversation

danielmitterdorfer
Copy link
Member

With this commit we specify an explicit bulk size (called chunk_size
by the Elasticsearch Python client) to improve performance when sending
large amounts of metrics documents. After experimenting with different
bulk sizes we have settled for a bulk size of 5000 documents per bulk
(the default is 500 docs per bulk) which improved throughput by a factor
of 2 in our experiments.

With this commit we specify an explicit bulk size (called `chunk_size`
by the Elasticsearch Python client) to improve performance when sending
large amounts of metrics documents. After experimenting with different
bulk sizes we have settled for a bulk size of 5000 documents per bulk
(the default is 500 docs per bulk) which improved throughput by a factor
of 2 in our experiments.
@danielmitterdorfer danielmitterdorfer added enhancement Improves the status quo :Metrics How metrics are stored, calculated or aggregated labels Apr 14, 2020
@danielmitterdorfer danielmitterdorfer added this to the 1.5.0 milestone Apr 14, 2020
@danielmitterdorfer danielmitterdorfer self-assigned this Apr 14, 2020
@danielmitterdorfer
Copy link
Member Author

@elasticmachine test this please

Copy link
Contributor

@hub-cap hub-cap left a comment

Choose a reason for hiding this comment

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

lgtm

@danielmitterdorfer danielmitterdorfer merged commit 0d44cfe into elastic:master Apr 15, 2020
@danielmitterdorfer danielmitterdorfer deleted the metrics-chunk-size branch April 15, 2020 15:26
@danielmitterdorfer
Copy link
Member Author

Thanks for the review! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :Metrics How metrics are stored, calculated or aggregated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants