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
strange latency peaks in fasthttp comparing with net/http #1608
Comments
What does your |
AD1. no customisation here, just:
AD2. Sadly profiling / debugging disabled on prod, but I can try to enable it for a short time. No repro on local env with |
Are you able to share more code? Just based on the information I have now there is nothing I can do I'm afraid. |
I have attached profiler to the app and results are strange. Those peaks look like GPC bug, but app in general is slow. |
How are you deploying this on GCP? |
@akuzia if you have it with fasthttp, net/http and with GC disabled then it's probably not cause by the Go process but something else in your Docker setup instead. |
@erikdubbelboer I've retested running compiled app natively with both vegeta and wrk, to rule out testing suite issues, results are pretty much the same. For a few requests latency spikes from ~200 microseconds to several milliseconds. compiled on: I agree that it does not look like an issue with fasthttp, probably smth to do with system network/sockets configuration. I'd gladly accept any further leads to potential source of an issue. |
Hi,
I have a very simple production service which basically do HTTP redirects and serves ~1000 rps.
Currently deployed on GCP Cloud Run and usually working on 1 instance on 1 CPU.
On net/http it works very stable:
95th percentile always below 2ms
I've tried to move to fasthttp, there is much improvement in case of 50th percentile (from 1.5ms to 0.8 ms)
but also nondeterministically a 2-3 time a day for around 30 min strange spikes in latency happen
No warnings, no instance restart, no memory / cpu peaks, no memory leak or alloc problems. Just stops after around 30 min.
What can it be?
Newest fasthttp on 1.20.
The text was updated successfully, but these errors were encountered: