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

Enhance logic for splitting large payload requests by querying http.max_content_length from Elasticsearch #36534

Open
rodrigc opened this issue Sep 7, 2023 · 0 comments
Labels
Team:Elastic-Agent Label for the Agent team

Comments

@rodrigc
Copy link

rodrigc commented Sep 7, 2023

Describe the enhancement:

In this discussion thread: https://discuss.elastic.co/t/fix-to-libbeats-to-split-bulk-requests-which-are-too-large-not-working-in-elastic-agent-8-9-0/342136

I raised the point that the GET _cluster/settings API returns http.max_content_length.

My request is that beats and elastic-agent query http.max_content_length from Elasticsearch,
and use this value as part of setting the size of the payload in POST _bulk calls to the server.

A lot of work as gone into PR 34911: Split large batches on error instead of dropping them, but
I think querying http.max_content_length from the server could enhance this logic and make it more robust,
for very large payloads

Enhancement Request: 19624

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Sep 7, 2023
@cmacknz cmacknz added the Team:Elastic-Agent Label for the Agent team label Sep 8, 2023
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

No branches or pull requests

2 participants