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

Cherry-pick #14421 to 7.x: Improve hash performance on Prometheus collector #14639

Merged
merged 1 commit into from
Nov 21, 2019

Conversation

exekias
Copy link
Contributor

@exekias exekias commented Nov 20, 2019

Cherry-pick of PR #14421 to 7.x branch. Original message:

Running a profile of metricbeat revealed that we are spending good chunk of time in the prometheus collector metricset on doing MapStr.String() which in turn does JSON encoding. This PR generates hashes using XXHash which has documented performance gains.

* Improve hash performance on Prometheus collector

* Update auditbeat to use cespare/xxhash

* Fixing build

(cherry picked from commit d5bfe6b)
@exekias exekias merged commit 94ef3df into elastic:7.x Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants