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

[8.15] fix: Update FlushBytes parsing/defaults (backport #13576) #13595

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jul 5, 2024

Motivation/summary

Updates the FlushBytes setting to default to 1 mib and only override to 24kb if the user has explicitly set it to 24kb.

Checklist

How to test these changes

  1. Spin up an APM Server and send data to it (without this fix).
  2. Look at the request length for Elasticsearch requests and verify they're smaller than 50kb and very close to 24kb (26kb)
  3. Now start apm sever with the code in this PR and send data to it
  4. Verify that the flush size is significantly higher than before and if you sent enough data it should be ~1MB.

Related issues

Fixes #13024


This is an automatic backport of pull request #13576 done by [Mergify](https://mergify.com).

Updates the `FlushBytes` setting to default to 1 mib and only override
to 24kb if the user has explicitly set it to 24kb.

Fixes #13024
---------

Signed-off-by: Marc Lopez Rubio <marc5.12@outlook.com>
(cherry picked from commit a453a88)
@mergify mergify bot requested a review from a team as a code owner July 5, 2024 02:16
@mergify mergify bot added the backport label Jul 5, 2024
@mergify mergify bot assigned marclop Jul 5, 2024
@@ -9,6 +9,7 @@ https://github.com/elastic/apm-server/compare/8.14\...main[View commits]
- Avoid data race due to reuse of `bytes.Buffer` in ES bulk requests {pull}13155[13155]
- APM Server now relies on the Elasticsearch apm-data plugin's index templates, which reverts some unsafe uses of `flattened` field types {pull}12066[12066]
- Add `error.id` to jaeger errors {pull}13196[13196]
- Fix a performance regression for apm servers which don't specify `output.elasticsearch.flush_bytes` {pull}13576[13576]
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll see whether this makes it to 8.14.3.

@mergify mergify bot merged commit 2def5b2 into 8.15 Jul 5, 2024
16 checks passed
@mergify mergify bot deleted the mergify/bp/8.15/pr-13576 branch July 5, 2024 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants