-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fastify under-pressure how to find out which routes are reasons #1027
Comments
|
@mcollina thanks. This project's source code is big, I need to find out the reason first. I'll add a demo if I can reproduce it. |
@mcollina I still can't fix this problem. My server just used 33% CPU and 50% memory. Do we have any way to utilize 100% CPU? |
I'm sorry but I don't understand the question. The full point of under-pressure is to prevent the server from overloading, keeping it responsive at all times. The fact that your server "go" at 33% of CPU can mean all sorts of things. Usually you are exahusting some other limited resources, such as a connection pool or an OS buffer, or file descriptor limit. If you remove under-pressure, could you get it to go 100%. |
@meotimdihia Did you figure out the exact issue or external resource that is causing this? I am looking into the issue, expecting a hint to reproduce and fix it. |
@deepaknf it was like as mcollina said " under-pressure is to prevent the server from overloading, keeping it responsive at all times." only. If the problem happens, you should optimize your code or upgrade your server. |
I guess the original question was more about how to identify the routes that are causing issues, right? |
@meotimdihia I was wondering to find the route, req has all the information about it as mcollina mentioned. Do you expect anything else in this issue? |
I think
|
@meotimdihia did you tried using the req param to get the info on the current route under pressure as @mcollina suggested? |
@marcoturi I tried it, but it is not helpful because when the server is under pressure then any request will cause this problem. |
Use a Cluster on your server |
Do we have a way to find out which routes are the problem?
Please give me a tip/guide. I don't know how to do it.
The text was updated successfully, but these errors were encountered: