-
Notifications
You must be signed in to change notification settings - Fork 46
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
HTTP 400: Message size too large #636
Comments
@ThomasHappyHotel Can you try reducing the max request size through The default is 2MiB and the value is represented as bytes e.g. The error indicates an unintentional issue with our ingestion service so this should at least resolve the errors until we identify and fix the underlying issue. |
@jakedipity Thank you for the feedback and the workaround. I just change the setting as recommended to 1 MiB and restarted the agent. |
@jakedipity I reduced the buffer size in steps up to 131072, but the error still occurs. The workaround does not seem to work. |
@ThomasHappyHotel The agent has built in logic to loosely control the maximum size of a batch, but this doesn't work if all or most of the size is in a single line. Normally in a Kubernetes environment large lines are split up into partial lines which the agent consumes. Can you share some information about your system and which version of the agent you are running? Do you also know if there's potentially any large lines in any of the files the agent is watching? |
Additionally, can you share the agent's initial output, specifically the config output section. |
@jakedipity It was hard to diagnose because the exit happened mostly in the middle of the night and old logfiles were already rotated. Luckily yesterday it happened also while I was working. Is it possible to increase the ingestion buffer size to a bigger value, i.e. 6 MiB, so that the agent will be able to ingest and not exit? Would there be any performance issues? |
@ThomasHappyHotel Unfortunately there currently isn't a way to ingest such large chunks of data. Our ingestion service has some technical limits that limit each batch of lines to around 1 - 2 MiB. I'll open an internal ticket to see if we can better accommodate larger batch sizes in the future. In the meantime the best option is trying to exclude the particularly long line with exclusion rules. If it's coming from a particular file that doesn't require monitoring you can use file level exclusion rules: If the file includes logs you want then you can also use a line level exclusion rule: |
@jakedipity FYI: I just tried the suggested I found that the Maximum length for that workaround is about 10k characters. |
@ThomasHappyHotel Yeah it's a very crude generic work around. It sounds like you got it to stick with a slightly smaller length check. It sounds like we need a feature to reject lines larger than a configurable length. |
Since November 26th, our agent has been shutting down with the following error:
In another issue I found that I can expand the agent logs with
RUST_LOG=info,mz_http::client=debug
. Now we get:How can I get the agent to run stably again?
P.S.: Can I make the agent restart automatically so that I do not lose logs? I have
Restart=on-failure
in the service file, but it does not seem to work (at least for this error).The text was updated successfully, but these errors were encountered: