-
QuestionHello! I even tried with --session-affinity parameter when deploying (It attempts to route the users to the same node) and it did not make much of a difference. Do you have any advice as to where I should start to solve this issue ? I am using nicegui==1.4.21 and using the same setup as the FastAPI example that you have in the examples folder. Screencast.from.14-04-2024.16.11.51.webm |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I am going to answer myself here in case someone else has the same issue 😆 |
Beta Was this translation helpful? Give feedback.
I am going to answer myself here in case someone else has the same issue 😆
The key is to add the option --no-cpu-throttling too along with --session-affinity. This way the CloudRun keeps the CPU alive between requests and does not kill the backend to just restart it again a few hundred milliseconds later. This seems to solve the problem.