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
Errors due to fast http client limited buffer not propagated to web UI, only showing in server logs #617
Comments
which version? can you give exact repro steps? |
I can reproduce the problem, which is due to asking for large payload:
The fix is easy though, it's to read the error and pass/change
Reopen if that's not answering your question |
Thanks. This works for CLI runs but I can't find an option for setting the buffer in an API run / |
And it seems that due to github's policy on opening/closing issues I can't reopen this one since it's marked as closed by a different account. |
it's a global option that should work for |
this being said we could also make it be a param for rest api - though the idea here was to limit resources consumption on the client/server |
My deployment setup for fortio was running servers at two sites and then using the load test to measure the link's behavior across them from both sides. It served a great job for this. I would vouch for making it a parameter to the rest ui and exposing it to the UI with a note as well - I would have probably figured it out if it was stated in the UI as a requirement for the fast http. OTOH, my applications that are going to be using the link are more likely to be using the standard golang client (and other languages) clients so the fast one wasn't a blocker for me - just a surprise that it was failing. |
I confirmed it works if you pass what I think is suboptimal here is the error only shows on the server logs not in the UI, making the configuration error harder to discover than it should |
updated the description |
then in ui trigger test against http://localhost:8080/echo?size=200000 - eg http://localhost:8080/fortio/?url=http%3A%2F%2Flocalhost%3A8080%2Fecho%3Fsize%3D200000&qps=10&t=3s&load=Start
shows
and in the server logs the actual problem:
these aren't bubbled up to the ui/visible
-----edited, was ----
Running
fortio server
and then running a load test against itself using{ "url": "http://localhost:8080/?size=131072:50,65536:25,32768:25", "qps": "100", "t": "10s", "p": "50, 95, 99", "jitter": "on", "uniform": "on", "nocatchup": "on", "stdclient": "on" }
works properly.
When I remove the
stdclient
and switch to the fast one about one third of the requests fail with 'broken pipe' while writing the response.The text was updated successfully, but these errors were encountered: